(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-redirect-redirect"],{1841:function(t,e,a){"use strict";a.r(e);var n=a("a584"),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},"6b8f":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=[]},a584: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("aee8"),d=a("26cb"),o=a("cf70"),i={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,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,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=i},aae5:function(t,e,a){"use strict";a.r(e);var n=a("6b8f"),r=a("1841");for(var u in r)["default"].indexOf(u)<0&&function(t){a.d(e,t,(function(){return r[t]}))}(u);var d=a("f0c5"),o=Object(d["a"])(r["default"],n["b"],n["c"],!1,null,"d53cbdd6",null,!1,n["a"],void 0);e["default"]=o.exports},aee8: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.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.getCommissionInfo=function(t){return(0,r.default)({url:"/api/brokerage/list",method:"get",data:t})},e.getStoreDetail=function(t,e){return(0,r.default)({url:"/api/store_detail/"+e,method:"get",data:t})},e.getStoreList=function(t){return(0,r.default)({url:"/api/store_list",method:"get",data:t})},e.getUser=function(t){return(0,r.default)({url:"/api/user",method:"get",data:t})},e.getUserInfo=function(t){return(0,r.default)({url:"/api/userinfo",method:"get",data:t})},e.getcollectList=function(t){return(0,r.default)({url:"/api/collect/user",method:"get",data:t})},e.jfzz=function(t){return(0,r.default)({url:"/api/user/transfer_account",method:"post",data:t})},e.lookSubpoints=function(t){return(0,r.default)({url:"/api/user/getLowerUser",method:"get",data:t})},e.myspread=function(t){return(0,r.default)({url:"/api/spread/people",method:"POST",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.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.yjzye=function(t){return(0,r.default)({url:"/api/user/transformation",method:"post",data:t})},e.yuezz=function(t){return(0,r.default)({url:"/api/user/transfer_nowMoney",method:"post",data:t})};var r=n(a("3dfe"))}}]);