(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/redirect/redirect"],{5296:function(e,t,n){"use strict";n.r(t);var r=n("b8ea"),a=n.n(r);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);t["default"]=a.a},9053:function(e,t,n){"use strict";var r;n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return r}));var a=function(){var e=this,t=e.$createElement;e._self._c},o=[]},"95e5":function(e,t,n){"use strict";n.r(t);var r=n("9053"),a=n("5296");for(var o in a)"default"!==o&&function(e){n.d(t,e,(function(){return a[e]}))}(o);var c,i=n("f0c5"),u=Object(i["a"])(a["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],c);t["default"]=u.exports},b609:function(e,t,n){"use strict";(function(e){n("e27b");r(n("66fd"));var t=r(n("95e5"));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"])},b8ea:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n("ef8a"),a=n("26cb"),o=n("08dc");function c(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?c(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(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,a.mapState)(["urlFile"])),onLoad:function(e){this.loadMp(e)},methods:i(i({},(0,a.mapMutations)("user",["login","setUserInfo"])),{},{loadMp:function(t){var n=this,r=n.$api.prePage().userInfo,a=e.getStorageSync("spread_code")||"";(0,o.wechatMpAuth)({code:t.code,iv:r.target.iv,encryptedData:r.target.encryptedData,spread_code:a}).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"])}},[["b609","common/runtime","common/vendor"]]]);