(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/redirect/redirect"],{"095b":function(e,t,n){"use strict";n.r(t);var r=n("2d6e"),o=n.n(r);for(var a in r)"default"!==a&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=o.a},"0e46":function(e,t,n){"use strict";(function(e){n("30ba");r(n("66fd"));var t=r(n("f61e"));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"])},"2d6e":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n("f9a9"),o=n("26cb"),a=n("b71f");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,o.mapState)(["urlFile"])),onLoad:function(e){this.loadMp(e)},methods:i(i({},(0,o.mapMutations)("user",["login","setUserInfo"])),{},{loadMp:function(t){var n=this,r=n.$api.prePage().userInfo,o=e.getStorageSync("spread_code")||"";(0,a.wechatMpAuth)({code:t.code,iv:r.target.iv,encryptedData:r.target.encryptedData,spread_code:o}).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"])},d675:function(e,t,n){"use strict";var r;n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return r}));var o=function(){var e=this,t=e.$createElement;e._self._c},a=[]},f61e:function(e,t,n){"use strict";n.r(t);var r=n("d675"),o=n("095b");for(var a in o)"default"!==a&&function(e){n.d(t,e,(function(){return o[e]}))}(a);var c,i=n("f0c5"),u=Object(i["a"])(o["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],c);t["default"]=u.exports}},[["0e46","common/runtime","common/vendor"]]]);