(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/redirect/redirect"],{"3aee":function(e,t,n){"use strict";n.r(t);var r=n("f75d"),a=n("5190");for(var c in a)["default"].indexOf(c)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(c);var o=n("f0c5"),i=Object(o["a"])(a["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],void 0);t["default"]=i.exports},5190:function(e,t,n){"use strict";n.r(t);var r=n("aa6c"),a=n.n(r);for(var c in r)["default"].indexOf(c)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(c);t["default"]=a.a},a6d9:function(e,t,n){"use strict";(function(e,t){var r=n("4ea4");n("2500");r(n("66fd"));var a=r(n("3aee"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(a.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},aa6c:function(e,t,n){"use strict";(function(e){var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n("9523")),c=n("490a"),o=n("26cb"),i=n("37ce");function u(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 f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){(0,a.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d={computed:f({},(0,o.mapState)(["urlFile"])),onLoad:function(e){this.loadMp(e)},methods:f(f({},(0,o.mapMutations)("user",["login","setUserInfo"])),{},{loadMp:function(t){var n=this,r=n.$api.prePage().userInfo,a=e.getStorageSync("spread_code")||"";(0,i.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,c.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=d}).call(this,n("543d")["default"])},f75d:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){}));var r=function(){var e=this.$createElement;this._self._c},a=[]}},[["a6d9","common/runtime","common/vendor"]]]);