(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-redirect-redirect"],{"65ec":function(t,e,n){"use strict";n.r(e);var a=n("b18a"),u=n.n(a);for(var r in a)"default"!==r&&function(t){n.d(e,t,(function(){return a[t]}))}(r);e["default"]=u.a},b18a:function(t,e,n){"use strict";var a=n("4ea4");n("ac1f"),n("466d"),n("5319"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u=a(n("5530")),r=n("b726"),o=n("26cb"),d=n("ce75"),i={computed:(0,u.default)({},(0,o.mapState)(["urlFile"])),onLoad:function(t){this.loadH5()},methods:(0,u.default)((0,u.default)({},(0,o.mapMutations)("user",["login","setUserInfo"])),{},{loadH5:function(){var t=this,e=window.location.href,n=e.match(/code=([0-9]|[a-z]|[A-Z])*/g)[0].replace("code=",""),a=uni.getStorageSync("spread")||"";(0,d.wechatAuth)({code:n,spread:a}).then((function(e){var n=e.data;t.wchatAuth(n)})).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 n=uni.getStorageSync("present")||"/pages/index/index";"pages/product/product"==n&&(n="/pages/index/index"),t.data.phone?uni.switchTab({url:n,fail:function(t){console.log(t),uni.navigateTo({url:n,fail:function(t){console.log(t),uni.switchTab({url:"/pages/index/index"})}})}}):uni.showModal({title:"提示",content:"请先绑定手机号",showCancel:!1,success:function(t){uni.navigateTo({url:"/pages/set/phone"})},fail:function(t){console.log(t)}})})).catch((function(t){uni.showModal({title:"错误",content:JSON.stringify(t),showCancel:!1})}))}})};e.default=i},b726:function(t,e,n){"use strict";var a=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.lookSubpoints=r,e.lookOneself=o,e.orderData=d,e.getUserInfo=i,e.userinfo=c,e.spreadBanner=l,e.getAddressList=s,e.addressEdit=f,e.addressDel=p,e.setAddressDefault=h,e.getCartList=g,e.getCartNum=m,e.cartDel=v,e.getcollectList=w,e.delcollect=b;var u=a(n("c9b6"));function r(t,e){return(0,u.default)({url:"/api/tree/children/"+e,method:"get",data:t})}function o(t){return(0,u.default)({url:"/api/tree/points",method:"get",data:t})}function d(t){return(0,u.default)({url:"/api/order/data",method:"get",data:t})}function i(t){return(0,u.default)({url:"/api/userinfo",method:"get",data:t})}function c(t){return(0,u.default)({url:"/api/userinfo",method:"get",data:t})}function l(t){return(0,u.default)({url:"/api/spread/banner",method:"get",data:t})}function s(t){return(0,u.default)({url:"/api/address/list",method:"get",data:t})}function f(t){return(0,u.default)({url:"/api/address/edit",method:"post",data:t})}function p(t){return(0,u.default)({url:"/api/address/del",method:"post",data:t})}function h(t){return(0,u.default)({url:"/api/address/default/set",method:"post",data:t})}function g(t){return(0,u.default)({url:"/api/cart/list",method:"get",data:t})}function m(t){return(0,u.default)({url:"/api/cart/num",method:"post",data:t})}function v(t){return(0,u.default)({url:"/api/cart/del",method:"post",data:t})}function w(t){return(0,u.default)({url:"/api/collect/user",method:"get",data:t})}function b(t){return(0,u.default)({url:"/api/collect/del",method:"post",data:t})}},d144:function(t,e,n){"use strict";var a;n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return a}));var u=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view")},r=[]},da48:function(t,e,n){"use strict";n.r(e);var a=n("d144"),u=n("65ec");for(var r in u)"default"!==r&&function(t){n.d(e,t,(function(){return u[t]}))}(r);var o,d=n("f0c5"),i=Object(d["a"])(u["default"],a["b"],a["c"],!1,null,"4beed6ac",null,!1,a["a"],o);e["default"]=i.exports}}]);