(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-redirect-redirect"],{2521:function(t,e,n){"use strict";n("7a82");var a=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("ac1f"),n("5319"),n("466d"),n("e9c4");var i=a(n("5530")),u=n("482f"),o=n("26cb"),r=n("016a"),c={computed:(0,i.default)({},(0,o.mapState)(["urlFile"])),onLoad:function(t){this.loadH5()},methods:(0,i.default)((0,i.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,r.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,u.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},"482f":function(t,e,n){"use strict";n("7a82");var a=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.getUserInfo=function(t){return(0,i.default)({url:"/api/userinfo",method:"get",data:t})},e.login=function(t){return(0,i.default)({url:"/api/login",method:"post",data:t})},e.loginMobile=function(t){return(0,i.default)({url:"/api/login/mobile",method:"post",data:t})},e.register=function(t){return(0,i.default)({url:"/api/register",method:"post",data:t})},e.verify=function(t){return(0,i.default)({url:"/api/register/verify",method:"post",data:t})};var i=a(n("ff1c"))},a2d1:function(t,e,n){"use strict";n.r(e);var a=n("b983"),i=n("bde6");for(var u in i)["default"].indexOf(u)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(u);var o=n("f0c5"),r=Object(o["a"])(i["default"],a["b"],a["c"],!1,null,"67b164e6",null,!1,a["a"],void 0);e["default"]=r.exports},b983:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var a=function(){var t=this.$createElement,e=this._self._c||t;return e("v-uni-view")},i=[]},bde6:function(t,e,n){"use strict";n.r(e);var a=n("2521"),i=n.n(a);for(var u in a)["default"].indexOf(u)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(u);e["default"]=i.a}}]);