(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/login/login"],{"092c":function(e,n,t){"use strict";t.d(n,"b",(function(){return i})),t.d(n,"c",(function(){return r})),t.d(n,"a",(function(){return o}));var o={uSticky:function(){return t.e("components/uview-ui/components/u-sticky/u-sticky").then(t.bind(null,"fb61"))},uNavbar:function(){return t.e("components/uview-ui/components/u-navbar/u-navbar").then(t.bind(null,"816a"))},mploginPopup:function(){return t.e("components/mplogin-popup/mplogin-popup").then(t.bind(null,"a373"))},uInput:function(){return Promise.all([t.e("common/vendor"),t.e("components/uview-ui/components/u-input/u-input")]).then(t.bind(null,"2fc6"))},uVerificationCode:function(){return t.e("components/uview-ui/components/u-verification-code/u-verification-code").then(t.bind(null,"983d"))},uCheckbox:function(){return t.e("components/uview-ui/components/u-checkbox/u-checkbox").then(t.bind(null,"7f15"))},uModal:function(){return t.e("components/uview-ui/components/u-modal/u-modal").then(t.bind(null,"37df"))}},i=function(){var e=this,n=e.$createElement,t=(e._self._c,e.$getImageUri("/images/login_bg.png")),o=e.phoneLogin&&1==e.loginType?e.telephone.length:null;e._isMounted||(e.e0=function(n){e.phoneLogin=!e.phoneLogin},e.e1=function(n){e.isAgreement=!0,e.showModel=!1},e.e2=function(n){e.showModel=!1}),e.$mp.data=Object.assign({},{$root:{m0:t,g0:o}})},r=[]},"39cd":function(e,n,t){"use strict";var o=t("6f1f"),i=t.n(o);i.a},6393:function(e,n,t){"use strict";t.r(n);var o=t("092c"),i=t("bddc");for(var r in i)["default"].indexOf(r)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(r);t("39cd");var a=t("828b"),u=Object(a["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);n["default"]=u.exports},"6f1f":function(e,n,t){},"958c":function(e,n,t){"use strict";(function(e,n){var o=t("47a9");t("3712");o(t("3240"));var i=o(t("6393"));e.__webpack_require_UNI_MP_PLUGIN__=t,n(i.default)}).call(this,t("3223")["default"],t("df3c")["createPage"])},bddc:function(e,n,t){"use strict";t.r(n);var o=t("e520"),i=t.n(o);for(var r in o)["default"].indexOf(r)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(r);n["default"]=i.a},e520:function(e,n,t){"use strict";(function(e){var o=t("47a9");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=o(t("7eb4")),r=o(t("7ca3")),a=o(t("ee10")),u=t("8f59"),c=t("7a03"),s=t("25af"),l=o(t("d3f1")),d=t("0aec"),f=t("f4fb"),p=o(t("3f13")),g=t("d0d1"),h=t("e4fb");function m(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function b(e){for(var n=1;n1?e.navigateBack({success:function(){var e=(0,d.currentPage)(),n=e.onLoad,t=e.options;n&&n(t)}}):p.default.get(g.BACK_URL)?t.$Router.replace(p.default.get(g.BACK_URL)):t.$Router.pushTab("/pages/index/index"),p.default.remove(g.BACK_URL);case 6:case"end":return o.stop()}}),o)})))()},changeLoginType:function(){this.loginType==v.ACCOUNT_LOGIN?this.loginType=v.SMS_CODE_LOGIN:this.loginType==v.SMS_CODE_LOGIN&&(this.loginType=v.ACCOUNT_LOGIN)},$sendSms:function(){var e=this;this.$refs.uCode.canGetCode&&(this.telephone?(0,c.sendSms)({mobile:this.telephone,key:f.SMSType.LOGIN}).then((function(n){1==n.code&&(e.$refs.uCode.start(),e.$toast({title:n.msg}))})):this.$toast({title:"请输入手机号"}))},appWxLogin:function(){var n=this;return(0,a.default)(i.default.mark((function t(){return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n.isAgreement){t.next=2;break}return t.abrupt("return",n.showModel=!0);case 2:e.login({provider:"weixin",success:function(t){e.showLoading({title:"登录中...",mask:!0});var o=t.authResult,i=o.openid,r=o.access_token;(0,c.opLogin)({openid:i,access_token:r}).then((function(t){e.hideLoading(),1==t.code&&n.loginHandle(t.data)})).catch((function(){e.hideLoading()}))}});case 3:case"end":return t.stop()}}),t)})))()},handleSubmitInfo:function(e){var n=this;return(0,a.default)(i.default.mark((function t(){var o,r;return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return o=n.loginData,t.next=3,(0,c.updateUser)(e,o.token);case 3:r=t.sent,1==r.code&&n.loginHandle(o);case 5:case"end":return t.stop()}}),t)})))()},closePopup:function(){this.showLoginPop=!1}}),computed:b(b({},(0,u.mapGetters)(["appConfig"])),{},{isOaWxAutoLogin:function(){return this.appConfig.wechat_h5},$getImageUri:function(){var e=this;return function(n){return e.$store.state.app.config.base_domain+n}},disable:function(){return(!this.mobile||!this.password||0!=this.loginType)&&(11!=this.telephone.length||!this.smsCode||1!=this.loginType)}})};n.default=w}).call(this,t("df3c")["default"])}},[["958c","common/runtime","common/vendor"]]]);