(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-redirect-redirect"],{"20cf":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,r.default)({url:"/api/address/del",method:"post",data:t})},e.addressEdit=function(t){return(0,r.default)({url:"/api/address/edit",method:"post",data:t})},e.article=function(t,e){return(0,r.default)({url:"/api/article/list/"+e,method:"GET",data:t})},e.cartDel=function(t){return(0,r.default)({url:"/api/cart/del",method:"post",data:t})},e.delcollect=function(t){return(0,r.default)({url:"/api/collect/del",method:"post",data:t})},e.details=function(t,e){return(0,r.default)({url:"/api/article/details/"+e,method:"get",data:t})},e.getAddressList=function(t){return(0,r.default)({url:"/api/address/list",method:"get",data:t})},e.getCartList=function(t){return(0,r.default)({url:"/api/cart/list",method:"get",data:t})},e.getCartNum=function(t){return(0,r.default)({url:"/api/cart/num",method:"post",data:t})},e.getUserInfo=function(t){return(0,r.default)({url:"/api/user",method:"get",data:t})},e.getcollectList=function(t){return(0,r.default)({url:"/api/collect/user",method:"get",data:t})},e.myteam=function(t){return(0,r.default)({url:"/api/user/team",method:"get",data:t})},e.orderData=function(t){return(0,r.default)({url:"/api/order/data",method:"get",data:t})},e.setAddressDefault=function(t){return(0,r.default)({url:"/api/address/default/set",method:"post",data:t})},e.spread=function(t){return(0,r.default)({url:"/api/spread/people",method:"POST",data:t})},e.spreadBanner=function(t){return(0,r.default)({url:"/api/spread/banner",method:"get",data:t})},e.sqdl=function(t){return(0,r.default)({url:"/api/user/apply",method:"POST",data:t})},e.transfer_accounts=function(t){return(0,r.default)({url:"/api/user/trade",method:"post",data:t})};var r=n(a("5696"))},5154:function(t,e,a){"use strict";a.r(e);var n=a("cdb2"),r=a("9ca3");for(var u in r)["default"].indexOf(u)<0&&function(t){a.d(e,t,(function(){return r[t]}))}(u);var d=a("f0c5"),i=Object(d["a"])(r["default"],n["b"],n["c"],!1,null,"d53cbdd6",null,!1,n["a"],void 0);e["default"]=i.exports},"72e7":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 r=n(a("5530")),u=a("20cf"),d=a("26cb"),i=a("14ce"),o={computed:(0,r.default)({},(0,d.mapState)(["urlFile"])),onLoad:function(t){this.loadH5()},methods:(0,r.default)((0,r.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,i.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,u.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=o},"9ca3":function(t,e,a){"use strict";a.r(e);var n=a("72e7"),r=a.n(n);for(var u in n)["default"].indexOf(u)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(u);e["default"]=r.a},cdb2:function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){}));var n=function(){var t=this.$createElement,e=this._self._c||t;return e("v-uni-view")},r=[]}}]);