(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/auth/wxLogin"],{183:function(n,e,t){"use strict";(function(n,e){var o=t(4);t(26);o(t(25));var r=o(t(184));n.__webpack_require_UNI_MP_PLUGIN__=t,e(r.default)}).call(this,t(1)["default"],t(2)["createPage"])},184:function(n,e,t){"use strict";t.r(e);var o=t(185),r=t(187);for(var i in r)["default"].indexOf(i)<0&&function(n){t.d(e,n,(function(){return r[n]}))}(i);var c,u=t(34),a=Object(u["default"])(r["default"],o["render"],o["staticRenderFns"],!1,null,null,null,!1,o["components"],c);a.options.__file="pages/auth/wxLogin.vue",e["default"]=a.exports},185:function(n,e,t){"use strict";t.r(e);var o=t(186);t.d(e,"render",(function(){return o["render"]})),t.d(e,"staticRenderFns",(function(){return o["staticRenderFns"]})),t.d(e,"recyclableRender",(function(){return o["recyclableRender"]})),t.d(e,"components",(function(){return o["components"]}))},186:function(n,e,t){"use strict";var o;t.r(e),t.d(e,"render",(function(){return r})),t.d(e,"staticRenderFns",(function(){return c})),t.d(e,"recyclableRender",(function(){return i})),t.d(e,"components",(function(){return o}));var r=function(){var n=this,e=n.$createElement;n._self._c},i=!1,c=[];r._withStripped=!0},187:function(n,e,t){"use strict";t.r(e);var o=t(188),r=t.n(o);for(var i in o)["default"].indexOf(i)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(i);e["default"]=r.a},188:function(n,e,t){"use strict";(function(n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(163),r={data:function(){return{code:null}},computed:{},onLoad:function(n){},onUnload:function(){},mounted:function(){},methods:{loginByMp:function(){var e=this.code,t=n.getStorageSync("tuiUserId");n.showLoading({title:"处理中..."}),(0,o.loginByMp)({code:e,tuiUserId:t}).then((function(e){200==e.code||40163==e.code?(n.hideLoading(),n.showToast({icon:"none",title:"登录成功"}),n.setStorageSync("AppToken",e.token),n.setStorageSync("userInfo",JSON.stringify(e.user)),n.$emit("refreshLogin"),n.reLaunch({url:"/pages/home/index"})):(n.hideLoading(),n.showToast({icon:"none",title:e.msg}))})).catch((function(e){console.log(e),n.hideLoading(),n.showToast({icon:"none",title:"登录接口调用失败"})}))},checkWeixin:function(){var n=window.navigator.userAgent.toLowerCase();return"micromessenger"==n.match(/micromessenger/i)},getUrlCode:function(n){return decodeURIComponent((new RegExp("[?|&]"+n+"=([^&;]+?)(&|#|;|$)").exec(location.href)||[,""])[1].replace(/\+/g,"%20"))||null}}};e.default=r}).call(this,t(2)["default"])}},[[183,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/auth/wxLogin.js.map