(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/login/login"],{79:function(n,e,t){"use strict";(function(n,e){var o=t(4);t(26);o(t(25));var i=o(t(80));n.__webpack_require_UNI_MP_PLUGIN__=t,e(i.default)}).call(this,t(1)["default"],t(2)["createPage"])},80:function(n,e,t){"use strict";t.r(e);var o=t(81),i=t(83);for(var c in i)["default"].indexOf(c)<0&&function(n){t.d(e,n,(function(){return i[n]}))}(c);t(85);var r,s=t(32),u=Object(s["default"])(i["default"],o["render"],o["staticRenderFns"],!1,null,"b237504c",null,!1,o["components"],r);u.options.__file="pages/login/login.vue",e["default"]=u.exports},81:function(n,e,t){"use strict";t.r(e);var o=t(82);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"]}))},82:function(n,e,t){"use strict";var o;t.r(e),t.d(e,"render",(function(){return i})),t.d(e,"staticRenderFns",(function(){return r})),t.d(e,"recyclableRender",(function(){return c})),t.d(e,"components",(function(){return o}));var i=function(){var n=this,e=n.$createElement;n._self._c;n._isMounted||(n.e0=function(e){n.isChecked=!n.isChecked})},c=!1,r=[];i._withStripped=!0},83:function(n,e,t){"use strict";t.r(e);var o=t(84),i=t.n(o);for(var c in o)["default"].indexOf(c)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(c);e["default"]=i.a},84:function(n,e,t){"use strict";(function(n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(74),i={data:function(){return{isChecked:!1,mobile:"",password:"",verify_code:"",countDown:0,isEdit:!1,isSend:!0,isPhone:!1,timer:null}},methods:{loginIn:function(){if(this.mobile)if(this.isPhone||this.password)if(this.isChecked){var e=this.isPhone?{mobile:this.mobile,verify_code:this.verify_code}:{mobile:this.mobile,password:this.password};n.showLoading({title:"登陆中..."}),n.login({success:function(t){t.code;(0,o.phoneLogin)(e).then((function(e){200==e.code?(n.setStorageSync("token",e.data.token),n.redirectTo({url:"../index/index"})):n.showModal({content:e.message||"登陆失败",showCancel:!1}),n.hideLoading()})).catch((function(e){n.hideLoading()}))}})}else n.showModal({content:"请先阅读并勾选隐私协议",showCancel:!1});else n.showModal({content:"请输入密码",showCancel:!1});else n.showModal({content:"请输入手机号",showCancel:!1})},sendCode:function(){var e=this,t=this;return t.countDown?(n.showModal({content:"验证码已发送，请稍后重试",showCancel:!1}),!1):t.mobile&&11==t.mobile.length?void(0,o.sendCode)({mobile:t.mobile}).then((function(o){if(200!=o.code)return e.countDown=0,clearInterval(e.timer),e.isEdit=!1,n.showModal({content:o.msg||"获取验证码失败",showCancel:!1}),!1;t.isEdit=!0,n.showModal({content:"验证码发送成功",showCancel:!1}),t.countDown=60,t.timer=setInterval((function(){t.countDown--,t.countDown||(t.countDown=0,clearInterval(t.timer))}),1e3)})).finally((function(){e.isEdit=!1})):(n.showModal({content:"手机号格式不正确",showCancel:!1}),!1)}}};e.default=i}).call(this,t(2)["default"])},85:function(n,e,t){"use strict";t.r(e);var o=t(86),i=t.n(o);for(var c in o)["default"].indexOf(c)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(c);e["default"]=i.a},86:function(n,e,t){}},[[79,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/login/login.js.map