(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/login/login"],{196:function(n,e,t){"use strict";(function(n,e){var o=t(4);t(26);o(t(25));var r=o(t(197));n.__webpack_require_UNI_MP_PLUGIN__=t,e(r.default)}).call(this,t(1)["default"],t(2)["createPage"])},197:function(n,e,t){"use strict";t.r(e);var o=t(198),r=t(200);for(var i in r)["default"].indexOf(i)<0&&function(n){t.d(e,n,(function(){return r[n]}))}(i);t(203);var a,s=t(32),u=Object(s["default"])(r["default"],o["render"],o["staticRenderFns"],!1,null,null,null,!1,o["components"],a);u.options.__file="pages/login/login.vue",e["default"]=u.exports},198:function(n,e,t){"use strict";t.r(e);var o=t(199);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"]}))},199:function(n,e,t){"use strict";var o;t.r(e),t.d(e,"render",(function(){return r})),t.d(e,"staticRenderFns",(function(){return a})),t.d(e,"recyclableRender",(function(){return i})),t.d(e,"components",(function(){return o}));try{o={uButton:function(){return Promise.all([t.e("common/vendor"),t.e("node-modules/uview-ui/components/u-button/u-button")]).then(t.bind(null,312))}}}catch(s){if(-1===s.message.indexOf("Cannot find module")||-1===s.message.indexOf(".vue"))throw s;console.error(s.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范，文档：https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范，需手动引入，并在 components 中注册该组件")}var r=function(){var n=this,e=n.$createElement;n._self._c},i=!1,a=[];r._withStripped=!0},200:function(n,e,t){"use strict";t.r(e);var o=t(201),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},201:function(n,e,t){"use strict";var o=t(4);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(t(93)),i=o(t(95)),a=t(202),s={mixins:[a.wxLoginMixins],data:function(){return{loginForm:{telephone:"15020221010",password:"kinit2022"}}},computed:{title:function(){return this.$store.state.app.title},logo:function(){return this.$store.state.app.logo},logoImage:function(){return this.$store.state.app.logoImage},privacy:function(){return this.$store.state.app.privacy},agreement:function(){return this.$store.state.app.agreement},isResetPassword:function(){return this.$store.state.auth.isResetPassword}},methods:{handlePrivacy:function(){var n="隐私政策";this.$tab.navigateTo("/pages/common/webview/index?title=".concat(n,"&url=").concat(this.privacy))},handleUserAgrement:function(){var n="用户协议";this.$tab.navigateTo("/pages/common/webview/index?title=".concat(n,"&url=").concat(this.agreement))},handleLogin:function(){var n=this;return(0,i.default)(r.default.mark((function e(){return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:""===n.loginForm.telephone?n.$modal.msgError("请输入您的手机号"):""===n.loginForm.password?n.$modal.msgError("请输入您的密码"):(n.$modal.loading("正在登录中..."),n.pwdLogin());case 1:case"end":return e.stop()}}),e)})))()},pwdLogin:function(){var n=this;return(0,i.default)(r.default.mark((function e(){return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:n.$store.dispatch("auth/Login",n.loginForm).then((function(){n.$modal.closeLoading(),n.loginSuccess()}));case 1:case"end":return e.stop()}}),e)})))()},loginSuccess:function(){this.isResetPassword?this.$tab.reLaunch("/pages/index"):this.$tab.reLaunch("/pages/mine/pwd/index")},wxLogin:function(n){var e=this;this.onGetPhoneNumber(n).then((function(n){e.loginSuccess()}))}}};e.default=s},203:function(n,e,t){"use strict";t.r(e);var o=t(204),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},204:function(n,e,t){}},[[196,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/login/login.js.map