(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-redirect-redirect"],{5068:function(e,t,n){"use strict";var r,u=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view")},a=[];n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return r}))},c4c6:function(e,t,n){"use strict";var r=n("ee27");Object.defineProperty(t,"__esModule",{value:!0}),t.login=a,t.register=o,t.verify=i,t.getUserInfo=c,t.loginMobile=s,t.bangding=f;var u=r(n("5921"));function a(e){return(0,u.default)({url:"/api/User/login",method:"post",data:e})}function o(e){return(0,u.default)({url:"/api/User/register",method:"post",data:e})}function i(e){return(0,u.default)({url:"/api/register/verify",method:"post",data:e})}function c(e){return(0,u.default)({url:"/api/User/index",method:"post",data:e})}function s(e){return(0,u.default)({url:"/api/login/mobile",method:"post",data:e})}function f(e){return(0,u.default)({url:"/api/user/bindPhone",method:"POST",data:e})}},c6ec:function(e,t,n){"use strict";n.r(t);var r=n("e234"),u=n.n(r);for(var a in r)"default"!==a&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=u.a},e234:function(e,t,n){"use strict";var r=n("ee27");n("ac1f"),n("466d"),n("5319"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u=r(n("f3f3")),a=n("c4c6"),o=n("2f62"),i=n("7893"),c={computed:(0,u.default)({},(0,o.mapState)(["urlFile"])),onLoad:function(e){this.loadH5()},methods:(0,u.default)({},(0,o.mapMutations)("user",["login","setUserInfo"]),{loadH5:function(){var e=this,t=window.location.href,n=t.match(/code=([0-9]|[a-z]|[A-Z])*/g)[0].replace("code=",""),r=uni.getStorageSync("spread")||"";(0,i.wechatAuth)({code:n,spread:r}).then((function(t){var n=t.data;e.wchatAuth(n.userinfo)})).catch((function(e){uni.showModal({title:"错误",content:JSON.stringify(e),showCancel:!1})}))},wchatAuth:function(e){console.log(e);var t=this;uni.setStorageSync("token",e.token),(0,a.getUserInfo)({}).then((function(e){t.login(),t.setUserInfo(e.data.user);var n=uni.getStorageSync("present")||"/pages/user/user";"pages/product/product"==n&&(n="/pages/user/user"),uni.switchTab({url:n,fail:function(e){uni.navigateTo({url:n,fail:function(e){uni.navigateTo({url:"/pages/user/user"})}})}})})).catch((function(e){uni.showModal({title:"错误",content:JSON.stringify(e),showCancel:!1})}))}})};t.default=c},e4de:function(e,t,n){"use strict";n.r(t);var r=n("5068"),u=n("c6ec");for(var a in u)"default"!==a&&function(e){n.d(t,e,(function(){return u[e]}))}(a);var o,i=n("f0c5"),c=Object(i["a"])(u["default"],r["b"],r["c"],!1,null,"ce2b7bfe",null,!1,r["a"],o);t["default"]=c.exports}}]);