| 1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/login/mobilelogin"],{"2e4b":function(e,n,t){"use strict";(function(e){t("630e");u(t("66fd"));var n=u(t("2f0c"));function u(e){return e&&e.__esModule?e:{default:e}}e(n.default)}).call(this,t("f266")["createPage"])},"2f0c":function(e,n,t){"use strict";t.r(n);var u=t("4e71"),r=t("73e0");for(var o in r)"default"!==o&&function(e){t.d(n,e,(function(){return r[e]}))}(o);t("769a");var i,a=t("f0c5"),c=Object(a["a"])(r["default"],u["b"],u["c"],!1,null,null,null,!1,u["a"],i);n["default"]=c.exports},"3a19":function(e,n,t){},"4e71":function(e,n,t){"use strict";t.d(n,"b",(function(){return r})),t.d(n,"c",(function(){return o})),t.d(n,"a",(function(){return u}));var u={faNavbar:function(){return t.e("components/fa-navbar/fa-navbar").then(t.bind(null,"6858"))},uForm:function(){return t.e("uview-ui/components/u-form/u-form").then(t.bind(null,"3e66"))},uFormItem:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-form-item/u-form-item")]).then(t.bind(null,"8413"))},uInput:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-input/u-input")]).then(t.bind(null,"b3e3"))},uButton:function(){return t.e("uview-ui/components/u-button/u-button").then(t.bind(null,"6829"))},uGrid:function(){return t.e("uview-ui/components/u-grid/u-grid").then(t.bind(null,"248c"))},uGridItem:function(){return t.e("uview-ui/components/u-grid-item/u-grid-item").then(t.bind(null,"408c"))},uIcon:function(){return t.e("uview-ui/components/u-icon/u-icon").then(t.bind(null,"ba52"))},uVerificationCode:function(){return t.e("uview-ui/components/u-verification-code/u-verification-code").then(t.bind(null,"f082"))}},r=function(){var e=this,n=e.$createElement,t=(e._self._c,{backgroundColor:e.theme.bgColor,color:e.theme.color}),u={backgroundColor:e.theme.bgColor,color:e.theme.color};e.$mp.data=Object.assign({},{$root:{a0:t,a1:u}})},o=[]},"73e0":function(e,n,t){"use strict";t.r(n);var u=t("a931"),r=t.n(u);for(var o in u)"default"!==o&&function(e){t.d(n,e,(function(){return u[e]}))}(o);n["default"]=r.a},"769a":function(e,n,t){"use strict";var u=t("3a19"),r=t.n(u);r.a},a931:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var u=o(t("a34a")),r=t("59de");function o(e){return e&&e.__esModule?e:{default:e}}function i(e,n,t,u,r,o,i){try{var a=e[o](i),c=a.value}catch(s){return void t(s)}a.done?n(c):Promise.resolve(c).then(u,r)}function a(e){return function(){var n=this,t=arguments;return new Promise((function(u,r){var o=e.apply(n,t);function a(e){i(o,u,r,a,c,"next",e)}function c(e){i(o,u,r,a,c,"throw",e)}a(void 0)}))}}var c={mixins:[r.loginfunc],onLoad:function(){},onReady:function(){this.$refs.uForm.setRules(this.rules)},data:function(){var e=this;return{labelPosition:"top",border:!1,errorType:["message"],form:{mobile:"",captcha:""},rules:{mobile:[{required:!0,message:"请输入手机号码",trigger:["change","blur"]},{validator:function(n,t,u){return e.$u.test.mobile(t)},message:"手机号码不正确",trigger:["change","blur"]}],captcha:[{required:!0,message:"请输入验证码",trigger:"change"}]},isThreeLogin:!1,codeTips:""}},methods:{codeChange:function(e){this.codeTips=e},getCode:function(){var e=a(u.default.mark((function e(){var n;return u.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.$u.test.mobile(this.form.mobile)){e.next=3;break}return this.$u.toast("手机号码格式不正确!"),e.abrupt("return");case 3:if(!this.$refs.uCode.canGetCode){e.next=11;break}return e.next=6,this.$api.getSmsSend({mobile:this.form.mobile,event:"mobilelogin"});case 6:n=e.sent,this.$u.toast(n.msg),n.code&&this.$refs.uCode.start(),e.next=12;break;case 11:this.$u.toast("倒计时结束后再发送");case 12:case"end":return e.stop()}}),e,this)})));function n(){return e.apply(this,arguments)}return n}(),goPage:function(e){this.$Router.push("/pages/login/login")},goThreeLogin:function(){var e=a(u.default.mark((function e(){return u.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})));function n(){return e.apply(this,arguments)}return n}(),goLogin:function(){var e=this;this.$refs.uForm.validate(function(){var n=a(u.default.mark((function n(t){var r;return u.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(!t){n.next=12;break}return e.vuex_wx_uid&&(e.form.wx_user_id=e.vuex_wx_uid),n.next=4,e.$api.mobilelogin(e.form);case 4:if(r=n.sent,r.code){n.next=8;break}return e.$u.toast(r.msg),n.abrupt("return");case 8:e.$u.vuex("vuex_token",r.data.token),e.success(1),n.next=13;break;case 12:e.$u.toast("验证失败");case 13:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}())}}};n.default=c}},[["2e4b","common/runtime","common/vendor"]]]);
|