(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/auth"],{52:function(e,n,t){"use strict";(function(e,n){var r=t(4);t(26);r(t(25));var o=r(t(53));e.__webpack_require_UNI_MP_PLUGIN__=t,n(o.default)}).call(this,t(1)["default"],t(2)["createPage"])},53:function(e,n,t){"use strict";t.r(n);var r=t(54),o=t(56);for(var s in o)["default"].indexOf(s)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(s);var c,a=t(36),u=Object(a["default"])(o["default"],r["render"],r["staticRenderFns"],!1,null,null,null,!1,r["components"],c);u.options.__file="pages/index/auth.vue",n["default"]=u.exports},54:function(e,n,t){"use strict";t.r(n);var r=t(55);t.d(n,"render",(function(){return r["render"]})),t.d(n,"staticRenderFns",(function(){return r["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return r["recyclableRender"]})),t.d(n,"components",(function(){return r["components"]}))},55:function(e,n,t){"use strict";var r;t.r(n),t.d(n,"render",(function(){return o})),t.d(n,"staticRenderFns",(function(){return c})),t.d(n,"recyclableRender",(function(){return s})),t.d(n,"components",(function(){return r}));try{r={tnLoading:function(){return t.e("tuniao-ui/components/tn-loading/tn-loading").then(t.bind(null,196))}}}catch(a){if(-1===a.message.indexOf("Cannot find module")||-1===a.message.indexOf(".vue"))throw a;console.error(a.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范，文档：https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范，需手动引入，并在 components 中注册该组件")}var o=function(){var e=this,n=e.$createElement;e._self._c},s=!1,c=[];o._withStripped=!0},56:function(e,n,t){"use strict";t.r(n);var r=t(57),o=t.n(r);for(var s in r)["default"].indexOf(s)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(s);n["default"]=o.a},57:function(e,n,t){"use strict";(function(e,r){var o=t(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var s=o(t(58)),c={data:function(){return{}},onLoad:function(n){var t=this;e.login({success:function(e){console.error(e),t.loginByCode(e.code)},fail:function(n){e.redirectTo({url:"/pages/index/index"})}})},methods:{loginByCode:function(n){var t=this;e.setStorageSync("loginStatus","false"),r.getUserInfo({success:function(r){console.error(r),s.default.post("/slbMpAutoLogin",{code:n,appType:"ma",encryptedData:r.encryptedData,iv:r.iv},{login:!1,warn:!1,loading:!1}).then((function(n){console.error(n),n.success?(e.setStorageSync("loginStatus","true"),e.setStorageSync("userMap",JSON.stringify(n.resultMap)),e.setStorageSync("userNo",n.resultMap.accountName),t.getUserInfo()):(console.error(12345),e.setStorageSync("loginStatus","false"),e.removeStorageSync("userMap"),e.removeStorageSync("userNo"),e.removeStorageSync("userInfo"),e.redirectTo({url:"/pages/index/index"})),console.error(n)}))}})},getUserInfo:function(){var n=this;s.default.post("/slbWxma/getPersonlInfo",{}).then((function(t){console.warn(t),t.success&&(n.personInfo=t.resultMap.userInfo||{},e.setStorageSync("userInfo",JSON.stringify(t.resultMap.userInfo)),e.redirectTo({url:"/pages/index/index"})),console.warn(t)}))}}};n.default=c}).call(this,t(2)["default"],t(1)["default"])}},[[52,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/index/auth.js.map