(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/redirect/redirect"],{"75ea":function(e,t,n){"use strict";(function(e){n("b755");r(n("66fd"));var t=r(n("a966"));function r(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=n,e(t.default)}).call(this,n("543d")["createPage"])},a966:function(e,t,n){"use strict";n.r(t);var r=n("e1ed"),c=n("d62c");for(var a in c)"default"!==a&&function(e){n.d(t,e,(function(){return c[e]}))}(a);var o,i=n("f0c5"),u=Object(i["a"])(c["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],o);t["default"]=u.exports},c829:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n("c6b6"),c=n("26cb"),a=n("9836");function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f={computed:i({},(0,c.mapState)(["urlFile"])),onLoad:function(e){this.loadMp(e)},methods:i(i({},(0,c.mapMutations)("user",["login","setUserInfo"])),{},{loadMp:function(t){var n=this,r=n.$api.prePage().userInfo,c=e.getStorageSync("spread_code")||"";(0,a.wechatMpAuth)({code:t.code,iv:r.target.iv,encryptedData:r.target.encryptedData,spread_code:c}).then((function(e){var t=e.data;n.wchatAuth(t)})).catch((function(t){e.showModal({title:"错误",content:JSON.stringify(t),showCancel:!1})}))},wchatAuth:function(t){var n=this;e.setStorageSync("token",t.token),(0,r.getUserInfo)({}).then((function(t){n.login(),n.setUserInfo(t.data);var r=e.getStorageSync("present")||"/pages/index/index";"pages/product/product"==r&&(r="/pages/index/index"),e.switchTab({url:r,fail:function(t){e.navigateTo({url:r,fail:function(t){e.navigateTo({url:"/pages/index/index"})}})}})})).catch((function(t){e.showModal({title:"错误",content:JSON.stringify(t),showCancel:!1})}))}})};t.default=f}).call(this,n("543d")["default"])},d62c:function(e,t,n){"use strict";n.r(t);var r=n("c829"),c=n.n(r);for(var a in r)"default"!==a&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=c.a},e1ed:function(e,t,n){"use strict";var r;n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return r}));var c=function(){var e=this,t=e.$createElement;e._self._c},a=[]}},[["75ea","common/runtime","common/vendor"]]]);