(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-redirect-redirect"],{2129:function(t,e,n){"use strict";n.r(e);var a=n("eca2"),i=n.n(a);for(var r in a)"default"!==r&&function(t){n.d(e,t,(function(){return a[t]}))}(r);e["default"]=i.a},3754:function(t,e,n){"use strict";n.r(e);var a=n("99df"),i=n("2129");for(var r in i)"default"!==r&&function(t){n.d(e,t,(function(){return i[t]}))}(r);var u,o=n("f0c5"),c=Object(o["a"])(i["default"],a["b"],a["c"],!1,null,"e34dcdde",null,!1,a["a"],u);e["default"]=c.exports},"99df":function(t,e,n){"use strict";var a;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return a}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view")},r=[]},eca2: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 i=a(n("5530")),r=n("edf3"),u=n("2f62"),o=n("0dab"),c={computed:(0,i.default)({},(0,u.mapState)(["urlFile"])),onLoad:function(t){this.loadH5()},methods:(0,i.default)((0,i.default)({},(0,u.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,o.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"),uni.switchTab({url:n,fail:function(t){uni.navigateTo({url:n,fail:function(t){uni.navigateTo({url:"/pages/index/index"})}})}})})).catch((function(t){uni.showModal({title:"错误",content:JSON.stringify(t),showCancel:!1})}))}})};e.default=c},edf3:function(t,e,n){"use strict";var a=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.login=r,e.register=u,e.verify=o,e.getUserInfo=c,e.loginMobile=d;var i=a(n("5799"));function r(t){return(0,i.default)({url:"/api/login",method:"post",data:t})}function u(t){return(0,i.default)({url:"/api/register",method:"post",data:t})}function o(t){return(0,i.default)({url:"/api/register/verify",method:"post",data:t})}function c(t){return(0,i.default)({url:"/api/userinfo",method:"get",data:t})}function d(t){return(0,i.default)({url:"/api/login/mobile",method:"post",data:t})}}}]);