(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-redirect-redirect"],{"122d":function(t,e,a){"use strict";a("7a82");var n=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("ac1f"),a("5319"),a("466d"),a("e9c4");var u=n(a("5530")),r=a("2280"),d=a("26cb"),o=a("ba96"),i={computed:(0,u.default)({},(0,d.mapState)(["urlFile"])),onLoad:function(t){this.loadH5()},methods:(0,u.default)((0,u.default)({},(0,d.mapMutations)("user",["login","setUserInfo"])),{},{loadH5:function(){var t=this,e=window.location.href,a=e.match(/code=([0-9]|[a-z]|[A-Z])*/g)[0].replace("code=",""),n=uni.getStorageSync("spread")||"";(0,o.wechatAuth)({code:a,spread:n}).then((function(e){var a=e.data;t.wchatAuth(a)})).catch((function(t){uni.showModal({title:"错误",content:JSON.stringify(t),showCancel:!1})}))},wchatAuth:function(t){var e=this;uni.setStorageSync("token",t.token),(0,r.getUserInfo)({}).then((function(t){e.login(),e.setUserInfo(t.data);var a=uni.getStorageSync("present")||"/pages/index/index";"pages/product/product"==a&&(a="/pages/index/index"),uni.switchTab({url:a,fail:function(t){uni.navigateTo({url:a,fail:function(t){uni.navigateTo({url:"/pages/index/index"})}})}})})).catch((function(t){uni.showModal({title:"错误",content:JSON.stringify(t),showCancel:!1})}))}})};e.default=i},2280:function(t,e,a){"use strict";a("7a82");var n=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.addressDel=function(t){return(0,u.default)({url:"/api/address/del",method:"post",data:t})},e.addressEdit=function(t){return(0,u.default)({url:"/api/address/edit",method:"post",data:t})},e.cartDel=function(t){return(0,u.default)({url:"/api/cart/del",method:"post",data:t})},e.delcollect=function(t){return(0,u.default)({url:"/api/collect/del",method:"post",data:t})},e.getAddressList=function(t){return(0,u.default)({url:"/api/address/list",method:"get",data:t})},e.getCartList=function(t){return(0,u.default)({url:"/api/cart/list",method:"get",data:t})},e.getCartNum=function(t){return(0,u.default)({url:"/api/cart/num",method:"post",data:t})},e.getSpreadPeople=function(t){return(0,u.default)({url:"/api/spread/people",method:"post",data:t})},e.getUserInfo=function(t){return(0,u.default)({url:"/api/userinfo",method:"get",data:t})},e.getcollectList=function(t){return(0,u.default)({url:"/api/collect/user",method:"get",data:t})},e.orderData=function(t){return(0,u.default)({url:"/api/order/data",method:"get",data:t})},e.setAddressDefault=function(t){return(0,u.default)({url:"/api/address/default/set",method:"post",data:t})},e.spreadBanner=function(t){return(0,u.default)({url:"/api/spread/banner",method:"get",data:t})},e.user_apply=function(t){return(0,u.default)({url:"/api/user/user_apply",method:"get",data:t})};var u=n(a("78c5"))},"391f":function(t,e,a){"use strict";a.r(e);var n=a("49d5"),u=a("7cd6");for(var r in u)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return u[t]}))}(r);var d=a("f0c5"),o=Object(d["a"])(u["default"],n["b"],n["c"],!1,null,"d53cbdd6",null,!1,n["a"],void 0);e["default"]=o.exports},"49d5":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return u})),a.d(e,"a",(function(){}));var n=function(){var t=this.$createElement,e=this._self._c||t;return e("v-uni-view")},u=[]},"7cd6":function(t,e,a){"use strict";a.r(e);var n=a("122d"),u=a.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);e["default"]=u.a}}]);