chunk-685bd93a.1ef24e14.js 9.3 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-685bd93a"],{"2fdb4":function(t,e,n){t.exports=n.p+"static/img/loginBox.59a8c576.png"},5579:function(t,e,n){"use strict";n("b6ca")},"61f7":function(t,e,n){"use strict";function a(t){return/^[A-Za-z]+$/.test(t)}function r(t){return/^1[3|4|5|6|7|8|9][0-9]\d{8}$/.test(t)}function i(t){return/^[0-9]*$/.test(t)}n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i})),e=n("6b54")},"6dfb":function(t,e,n){t.exports=n.p+"static/img/login.fd47d3cd.png"},"7ffb":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAAsCAYAAAAwwXuTAAAAAXNSR0IArs4c6QAAAktJREFUaEPtmj+LE0EYxp9nckGPaHZmQ67QgAHPQkVQyAcQr9LG1vsCIlh4hYUfQDsFD85GbMTiLGxFLBQL0eIEra46C9GrjPsnf0CJO6+sJBCDmL3KnWWn2IWZd+D57fvMDsM7xLg1m80DSZJct9aukjwKoDIZc+SdiMhHpdSmUupOt9vtp7qZPur1+nKlUnkGYNkRmHkyd5IkOd/r9XbYarUWh8PhOwAn5s1ybHy7Vqt1qLW+RvLulPj7AO6JSM8lIJJ1AFcBXJ7oFpE1+r6/JSKdcefjMAxXXQKb1WqM2QRwKe0XkS0aY74D2Jd2WGtX4jh+6TKg53nnlFIvxgw/UkCZSumZKIo+uAyotT5N8v2EoQR0LZtlBss1mHPP/tOiAF4BiHPOME+eB+DsX/+i82a6OP7HNuEiwBzN32YBb4vIbgFAD5JcqlarNwu30c8mpwR01K4LxphDYRh+LmIGF3zff5seAUXkSeEAG43GcWvtdnmacHTtoTxNlKeJnHu3tGhp0dKie/8C7XZ7fxzHKyJSzTjbJknypt/vd2fjc7kGjTFPAVzICDcJ+xSG4TEAo+l5eQX8AuDwHgExGo2WBoPB19wDaq0vkrwBYDELJMmf1tpHURStO2HRLFBZY3Jp0azis8SVgOVGn8Un/zHG87yOUmprLEEKVwA1xqRl7I0x4G6hSthaa00yLeAeSQFJPizEJQQRUSRPkbwF4ORkhVhrO4W9RkJyPQiCtUJeBBKRB1EUXQGQ/AZMWwGuckUAXpPcCILg+YTrF06KwBHxEALcAAAAAElFTkSuQmCC"},"9ed6":function(t,e,n){"use strict";n.r(e),n("96cf");var a,r,i,s,o=n("1da1"),c=n("61f7"),u={mixins:[n("9f53").a],data:function(){return{passwordStatus:!1,BG:n("6dfb"),user:n("7ffb"),pwod:n("dd87"),loginBox:n("2fdb4"),footer:n("e2d9"),loadding:!1,form:{mobile:"",code:""}}},created:function(){},mounted:function(){},methods:{theme:function(t){sessionStorage.setItem("type",t),this.$store.commit("app/SET_TYPE",t),window.document.documentElement.setAttribute("data-theme",t)},onSubmit:(s=Object(o.a)(regeneratorRuntime.mark((function t(){var e=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.loadding){t.next=4;break}return this.loadding=!0,t.next=4,this.asyncmobileValidator(this.form.mobile).then(function(){var t=Object(o.a)(regeneratorRuntime.mark((function t(n){var a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("ok"===n)return a={code:e.form.code,mobile:"CJ1745"+e.form.mobile},t.next=4,e.asyncpwodValidator(e.form.code).then(function(){var t=Object(o.a)(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:"ok"===n?e.$store.dispatch("user/login",a).then((function(t){var n=e.form.mobile.substr(0,1);Object(c.b)(n)?e.theme("active2"):e.theme("active1"),e.loadding=!1,0===t.code?e.loginSuccess("/home/paddy"):e.show_title(t.msg)})).catch((function(t){e.loadding=!1})):e.loadding=!1;case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(){e.loadding=!1}));t.next=6;break;case 4:t.next=7;break;case 6:e.loadding=!1;case 7:case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(){e.loadding=!1}));case 4:case"end":return t.stop()}}),t,this)}))),function(){return s.apply(this,arguments)}),loginSuccess:(i=Object(o.a)(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:window.vm.$router.push({path:e});case 1:case"end":return t.stop()}}),t)}))),function(t){return i.apply(this,arguments)}),asyncmobileValidator:(r=Object(o.a)(regeneratorRuntime.mark((function t(e){var n=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t){var a=!0;""===e?(n.show_title("请输入卡号!"),a=!1):(e.length<6&&(n.show_title("卡号不正确!"),a=!1),/[^\w\/]/gi.test(e)&&(n.show_title("卡号不正确!"),a=!1)),t(a?"ok":"error")})));case 1:case"end":return t.stop()}}),t)}))),function(t){return r.apply(this,arguments)}),asyncpwodValidator:(a=Object(o.a)(regeneratorRuntime.mark((function t(e){var n=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t){var a,r,i=!0;""===e?(n.show_title("请输入密码!"),i=!1):6!==e.length?(n.show_title("密码为2位字母+4位数字!"),i=!1):(a=e.slice(0,2),r=e.slice(2,4),Object(c.b)(r)||(n.show_title("密码为2位字母+4位数字!"),i=!1),Object(c.c)(a)||(n.show_title("密码为2位字母+4位数字!"),i=!1)),t(i?"ok":"error")})));case 1:case"end":return t.stop()}}),t)}))),function(t){return a.apply(this,arguments)}),showPassword:function(){this.passwordStatus=!this.passwordStatus}}},l=(n("5579"),n("2877"));u=Object(l.a)(u,(function(){var t=this,e=t.$createElement;e=t._self._c||e;return e("div",{staticClass:"login"},[e("div",{staticClass:"login-bg"},[e("img",{attrs:{src:t.BG,alt:""}}),e("div",{staticClass:"footer"},[e("img",{attrs:{src:t.footer,alt:""}})])]),e("div",{staticClass:"login-main"},[t._m(0),e("div",{staticClass:"loginBox"},[e("div",{staticClass:"loginBox-div"},[e("div",{staticClass:"loginBox-bg"},[e("img",{attrs:{src:t.loginBox,alt:""}})]),e("van-form",{staticClass:"login-form",attrs:{"validate-first":""}},[e("ul",{staticClass:"ul"},[e("li",{staticClass:"li-div"},[e("ul",{staticClass:"clear"},[e("li",[e("img",{attrs:{src:t.user,alt:""}})]),e("li",[e("div",{staticClass:"zdyDiv"},[e("span",{staticClass:"zdyName"},[t._v("CJ1745")]),e("van-field",{staticStyle:{background:"transparent"},attrs:{size:"large",name:"mobile",placeholder:"xxxxxx",type:"text",maxlength:"9",rules:[{validator:t.asyncmobileValidator}]},model:{value:t.form.mobile,callback:function(e){t.$set(t.form,"mobile",e)},expression:"form.mobile"}})],1)])])]),e("li",{staticClass:"li-div"},[e("ul",{staticClass:"clear"},[e("li",[e("img",{attrs:{src:t.pwod,alt:""}})]),e("li",[e("van-field",{staticStyle:{background:"transparent"},attrs:{size:"large",name:"code",maxlength:"6",placeholder:"请输入密码",rules:[{validator:t.asyncpwodValidator}],type:t.passwordStatus?"text":"password"},on:{"click-right-icon":t.showPassword},model:{value:t.form.code,callback:function(e){t.$set(t.form,"code",e)},expression:"form.code"}})],1)])])])])],1)]),e("div",{staticClass:"login-form-button clear"},[e("van-button",{attrs:{block:"",type:"info",disabled:t.loadding,loadding:t.loadding,"loadding-text":"加载中...","native-type":"submit"},on:{click:function(e){return t.onSubmit()}}},[t._v("\n 登 录\n ")]),e("span",{staticClass:"fr reset-span",on:{click:function(e){return t.loginSuccess("/reset")}}},[t._v("修改密码")])],1)])])}),[function(){var t=this.$createElement;t=this._self._c||t;return t("div",{staticClass:"logo-header"},[t("p",{staticClass:"logo-header-title"},[this._v("Hello!")]),t("p",{staticClass:"logo-header-tips"},[this._v("欢迎登录藏金·1745平台")])])}],!1,null,"2c632430",null);e.default=u.exports},"9f53":function(t,e,n){"use strict";n("433b");var a,r=n("d399");n("96cf"),n=n("1da1");e.a={methods:{logout:(a=Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("/login"!==this.$route.path)return t.next=3,this.$store.dispatch("user/logout");t.next=4;break;case 3:this.$router.push("/login");case 4:case"end":return t.stop()}}),t,this)}))),function(){return a.apply(this,arguments)}),show_title:function(t){Object(r.a)({message:t})}}}},b6ca:function(t,e,n){},dd87:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAA4CAYAAAC7UXvqAAAAAXNSR0IArs4c6QAABNxJREFUaEPtWltonEUU/s5sqIokO+ffxEtBDYUiqNWqmPpgSwWtUQptRdSK9MGAoBattYKg0AqKD9ZaxQsI8aGgtuKlBakNCorxwRq8VS2IUKJCvSS7ZzZQ1JCdIxN2w+/f3WSzm+wmsOdxd+Y733fO/DNzZoZQv5G19goiug7ANQAuBnAhgAyAJUX4cQBZAL8C+AnAkKp+7pz7DoDWQ4Fq7czMlxNRn6reBmBpjTgniegdVe0XkWO1YMxagLV2DYAniOjGWhxW6qOqHwF4yjn32WxwqxbQ1dV13sTExF4Ad1RwUABwnIi+9t6fMMacVNW/Q1siOst7v9QYs0xVrwJwCYBUBZwDbW1t20ZGRv6oRkhVAqIo6lXVfQC6EqATAD4koje89wPOOVeNU2utNcasU9W7AdwMoC3Rb4SItuRyuSMz4c0ogJnvA/ASABMDC9HuB/C0iIQPs2Zj5vDBPw6gL5EVD2CriLw6Hfi0Aqy1DxLRCwmAbwBsEZEfamZdpiMzXwYgZPnK+N+q+pBz7sVKvioKsNZuIKKDCbDXnXP3A/h3LsnHsM6w1r5CRPck/G50zh0q57OsAGvtRUT0LQBb6qSqe5xzO+qdt6sQHtaV3US0PdbWqepK59wvyf5lBTBziPyGWOO3ReTOBpAvuSRm3g/g9hiHQyKycUYBzLwaQHwu/g3AChHJVxG9OWvCzGkA3wO4IAa6RkQG405OywAzvw8grnSziIRoNNyYOWT9rZjjgyKyqaKAdDrNxpi/YvPyCRFZDiBMac0ww8w/A1hWdD7hvT8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