(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-redirect-redirect"],{"072b":function(t,e,a){"use strict";var r;a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return u})),a.d(e,"a",(function(){return r}));var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view")},u=[]},"0fba":function(t,e,a){"use strict";a.r(e);var r=a("895e"),n=a.n(r);for(var u in r)"default"!==u&&function(t){a.d(e,t,(function(){return r[t]}))}(u);e["default"]=n.a},"1cdd":function(t,e,a){"use strict";a.r(e);var r=a("072b"),n=a("0fba");for(var u in n)"default"!==u&&function(t){a.d(e,t,(function(){return n[t]}))}(u);var d,o=a("f0c5"),i=Object(o["a"])(n["default"],r["b"],r["c"],!1,null,"277a1e7d",null,!1,r["a"],d);e["default"]=i.exports},"763d":function(t,e,a){"use strict";var r=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.lookSubpoints=u,e.lookOneself=d,e.spread=o,e.myspread=i,e.orderData=f,e.getUserInfo=l,e.userinfo=c,e.spreadBanner=s,e.getAddressList=p,e.addressEdit=h,e.addressDel=m,e.setAddressDefault=g,e.getCartList=v,e.getCartNum=w,e.cartDel=b,e.getcollectList=y,e.delcollect=S,e.transfer=_,e.yuetransfer=O,e.cashtransfer=k,e.share=A,e.upload=M,e.edit=x,e.coupon_verific=L,e.write_off=U,e.getMyYhq=C;var n=r(a("4bb5"));function u(t,e){return(0,n.default)({url:"/api/tree/children/"+e,method:"get",data:t})}function d(t){return(0,n.default)({url:"/api/tree/points",method:"get",data:t})}function o(t){return(0,n.default)({url:"/api/user/spread",method:"post",data:t})}function i(t){return(0,n.default)({url:"/api/spread/people",method:"POST",data:t})}function f(t){return(0,n.default)({url:"/api/order/data",method:"get",data:t})}function l(t){return(0,n.default)({url:"/api/userinfo",method:"get",data:t})}function c(t){return(0,n.default)({url:"/api/userinfo",method:"get",data:t})}function s(t){return(0,n.default)({url:"/api/spread/banner",method:"get",data:t})}function p(t){return(0,n.default)({url:"/api/address/list",method:"get",data:t})}function h(t){return(0,n.default)({url:"/api/address/edit",method:"post",data:t})}function m(t){return(0,n.default)({url:"/api/address/del",method:"post",data:t})}function g(t){return(0,n.default)({url:"/api/address/default/set",method:"post",data:t})}function v(t){return(0,n.default)({url:"/api/cart/list",method:"get",data:t})}function w(t){return(0,n.default)({url:"/api/cart/num",method:"post",data:t})}function b(t){return(0,n.default)({url:"/api/cart/del",method:"post",data:t})}function y(t){return(0,n.default)({url:"/api/collect/user",method:"get",data:t})}function S(t){return(0,n.default)({url:"/api/collect/del",method:"post",data:t})}function _(t){return(0,n.default)({url:"/api/trade",method:"post",data:t})}function O(t){return(0,n.default)({url:"/api/yue/trade",method:"post",data:t})}function k(t){return(0,n.default)({url:"/api/cash/trade",method:"post",data:t})}function A(t){return(0,n.default)({url:"/api/game",method:"get",data:t})}function M(t){return(0,n.default)({url:"/api/upload/image",method:"post",data:t})}function x(t){return(0,n.default)({url:"/api/user/edit",method:"post",data:t})}function L(t){return(0,n.default)({url:"/api/coupon_verific",method:"post",data:t})}function U(t){return(0,n.default)({url:"/api/write_off",method:"get",data:t})}function C(t){return(0,n.default)({url:"/api/coupon_user",method:"get",data:t})}},"895e":function(t,e,a){"use strict";var r=a("4ea4");a("ac1f"),a("466d"),a("5319"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(a("5530")),u=a("763d"),d=a("26cb"),o=a("d54a"),i={computed:(0,n.default)({},(0,d.mapState)(["urlFile"])),onLoad:function(t){this.loadH5()},methods:(0,n.default)((0,n.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=",""),r=uni.getStorageSync("spread")||"";(0,o.wechatAuth)({code:a,spread:r}).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"),window.location.href=e.$store.state.baseURL+e.$store.state.urlFile+"/#"+a})).catch((function(t){uni.showModal({title:"错误",content:JSON.stringify(t),showCancel:!1})}))}})};e.default=i}}]);