(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/login/login"],{201:function(e,n,t){"use strict";(function(e,n){var r=t(4);t(26);r(t(25));var o=r(t(202));e.__webpack_require_UNI_MP_PLUGIN__=t,n(o.default)}).call(this,t(1)["default"],t(2)["createPage"])},202:function(e,n,t){"use strict";t.r(n);var r=t(203),o=t(205);for(var a in o)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(a);t(207);var u,c=t(33),i=Object(c["default"])(o["default"],r["render"],r["staticRenderFns"],!1,null,"b237504c",null,!1,r["components"],u);i.options.__file="pages/login/login.vue",n["default"]=i.exports},203:function(e,n,t){"use strict";t.r(n);var r=t(204);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"]}))},204:function(e,n,t){"use strict";var r;t.r(n),t.d(n,"render",(function(){return o})),t.d(n,"staticRenderFns",(function(){return u})),t.d(n,"recyclableRender",(function(){return a})),t.d(n,"components",(function(){return r}));try{r={uButton:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-button/u-button")]).then(t.bind(null,347))}}}catch(c){if(-1===c.message.indexOf("Cannot find module")||-1===c.message.indexOf(".vue"))throw c;console.error(c.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},a=!1,u=[];o._withStripped=!0},205:function(e,n,t){"use strict";t.r(n);var r=t(206),o=t.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(a);n["default"]=o.a},206:function(e,n,t){"use strict";(function(e){var r=t(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=r(t(63)),a=r(t(65)),u={data:function(){return{code:"",openId:"",isShow:!1,isNew:!1}},methods:{getPhoneNumber:function(n){var t=this;return(0,a.default)(o.default.mark((function r(){var a;return o.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if("getPhoneNumber:ok"!=n.detail.errMsg){r.next=7;break}return r.next=3,t.$api.login.getTel({code:n.detail.code});case 3:a=r.sent,0==a.status?(e.setStorageSync("telNum",a.data.telNum),t.isNew?e.reLaunch({url:"/pages/realName/realName"}):e.reLaunch({url:"/pages/home/index"})):t.$common.msgToast(a.msg),r.next=8;break;case 7:t.$common.msgToast("请不要拒绝哟~重新点击登录");case 8:case"end":return r.stop()}}),r)})))()},getOpenId:function(){var n=this;return(0,a.default)(o.default.mark((function t(){return o.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.login({provider:"weixin",success:function(){var t=(0,a.default)(o.default.mark((function t(r){var a;return o.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return console.log("res.code",r.code),n.code=r.code,t.next=4,n.$api.login.login({code:r.code});case 4:a=t.sent,0==a.status?(a.data.accountInfo.isNew||!e.getStorageSync("telNum")?(n.isShow=!0,n.isNew=a.data.accountInfo.isNew):e.reLaunch({url:"/pages/home/index"}),e.setStorageSync("token",a.data.token)):n.$common.msgToast(a.msg);case 6:case"end":return t.stop()}}),t)})));function r(e){return t.apply(this,arguments)}return r}()});case 1:case"end":return t.stop()}}),t)})))()}},onLoad:function(){this.getOpenId()}};n.default=u}).call(this,t(2)["default"])},207:function(e,n,t){"use strict";t.r(n);var r=t(208),o=t.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(a);n["default"]=o.a},208:function(e,n,t){}},[[201,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/login/login.js.map