| 1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/login/login"],{"1cdd":function(n,e,t){"use strict";t.r(e);var u=t("6f05"),r=t("7b80");for(var o in r)"default"!==o&&function(n){t.d(e,n,(function(){return r[n]}))}(o);t("6747");var i,a=t("f0c5"),c=Object(a["a"])(r["default"],u["b"],u["c"],!1,null,null,null,!1,u["a"],i);e["default"]=c.exports},3724:function(n,e,t){"use strict";(function(n){t("630e");u(t("66fd"));var e=u(t("1cdd"));function u(n){return n&&n.__esModule?n:{default:n}}n(e.default)}).call(this,t("f266")["createPage"])},6747:function(n,e,t){"use strict";var u=t("ec37"),r=t.n(u);r.a},"6f05":function(n,e,t){"use strict";t.d(e,"b",(function(){return r})),t.d(e,"c",(function(){return o})),t.d(e,"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"))}},r=function(){var n=this,e=n.$createElement,t=(n._self._c,{backgroundColor:n.theme.bgColor,color:n.theme.color});n.$mp.data=Object.assign({},{$root:{a0:t}})},o=[]},"7b80":function(n,e,t){"use strict";t.r(e);var u=t("ddd8"),r=t.n(u);for(var o in u)"default"!==o&&function(n){t.d(e,n,(function(){return u[n]}))}(o);e["default"]=r.a},ddd8:function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u=o(t("a34a")),r=t("59de");function o(n){return n&&n.__esModule?n:{default:n}}function i(n,e,t,u,r,o,i){try{var a=n[o](i),c=a.value}catch(s){return void t(s)}a.done?e(c):Promise.resolve(c).then(u,r)}function a(n){return function(){var e=this,t=arguments;return new Promise((function(u,r){var o=n.apply(e,t);function a(n){i(o,u,r,a,c,"next",n)}function c(n){i(o,u,r,a,c,"throw",n)}a(void 0)}))}}var c={mixins:[r.loginfunc],onLoad:function(){},onReady:function(){this.$refs.uForm.setRules(this.rules)},data:function(){return{labelPosition:"top",border:!1,errorType:["message"],form:{account:"",password:""},rules:{account:[{required:!0,message:"请输入账号",trigger:["change","blur"]}],password:[{required:!0,message:"请输入密码",trigger:"change"}]},isThreeLogin:!1}},methods:{goPage:function(n){var e=["/pages/login/forgetpwd","/pages/login/register"];this.$Router.push(e[n])},goThreeLogin:function(){var n=a(u.default.mark((function n(){return u.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:case"end":return n.stop()}}),n)})));function e(){return n.apply(this,arguments)}return e}(),goLogin:function(){var n=this;this.$refs.uForm.validate(function(){var e=a(u.default.mark((function e(t){var r;return u.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t){e.next=12;break}return n.vuex_wx_uid&&(n.form.wx_user_id=n.vuex_wx_uid),e.next=4,n.$api.goLogin(n.form);case 4:if(r=e.sent,r.code){e.next=8;break}return n.$u.toast(r.msg),e.abrupt("return");case 8:n.$u.vuex("vuex_token",r.data.token),n.success(2),e.next=13;break;case 12:n.$u.toast("验证失败");case 13:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}())}}};e.default=c},ec37:function(n,e,t){}},[["3724","common/runtime","common/vendor"]]]);
|