login.7f228fa4.js 24 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["login"],{"088b":function(e,t,a){},1348:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"register absolute"},[e._m(0),a("div",{staticClass:"whiteBg"},[a("div",{staticClass:"title"},[e._v("注册账号")]),a("div",{staticClass:"list"},[a("div",{staticClass:"item"},[a("div",[a("svg",{staticClass:"icon",attrs:{"aria-hidden":"true"}},[a("use",{attrs:{"xlink:href":"#icon-phone_"}})]),a("input",{attrs:{type:"text",placeholder:"输入手机号码"}})])]),a("div",{staticClass:"item"},[a("div",{staticClass:"align-left"},[a("svg",{staticClass:"icon",attrs:{"aria-hidden":"true"}},[a("use",{attrs:{"xlink:href":"#icon-code_1"}})]),a("input",{staticClass:"codeIput",attrs:{type:"text",placeholder:"填写验证码"}}),a("button",{staticClass:"code",class:!0===e.disabled?"on":"",attrs:{disabled:e.disabled},on:{click:e.code}},[e._v("\n "+e._s(e.text)+"\n ")])])]),a("div",{staticClass:"item"},[a("div",[a("svg",{staticClass:"icon",attrs:{"aria-hidden":"true"}},[a("use",{attrs:{"xlink:href":"#icon-code_"}})]),a("input",{attrs:{type:"text",placeholder:"填写您的登录密码"}})])])]),a("div",{staticClass:"logon"},[e._v("注册")]),a("div",{staticClass:"tip"},[e._v("\n 已有账号?\n "),a("span",{staticClass:"font-color-red",on:{click:function(t){return e.$router.push({name:"Login"})}}},[e._v("立即登录")])])]),a("div",{staticClass:"bottom"})])},c=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"shading"},[s("div",{staticClass:"pictrue acea-row row-center-wrapper"},[s("img",{attrs:{src:a("dd88")}})])])}],n=a("f750"),r={name:"Register",mixins:[n["a"]],methods:{code:function(){this.sendCode()}}},o=r,i=a("623f"),d=Object(i["a"])(o,s,c,!1,null,null,null);t["default"]=d.exports},"5efb":function(e,t,a){"use strict";var s=a("088b"),c=a.n(s);c.a},"792e":function(e,t,a){},"7d2e":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"register absolute"},[e._m(0),a("div",{staticClass:"whiteBg"},[a("div",{staticClass:"title"},[e._v("找回密码")]),a("div",{staticClass:"list"},[a("div",{staticClass:"item"},[a("div",[a("svg",{staticClass:"icon",attrs:{"aria-hidden":"true"}},[a("use",{attrs:{"xlink:href":"#icon-phone_"}})]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.account,expression:"account"}],attrs:{type:"text",placeholder:"输入手机号码"},domProps:{value:e.account},on:{input:function(t){t.target.composing||(e.account=t.target.value)}}})])]),a("div",{staticClass:"item"},[a("div",{staticClass:"align-left"},[a("svg",{staticClass:"icon",attrs:{"aria-hidden":"true"}},[a("use",{attrs:{"xlink:href":"#icon-code_1"}})]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.captcha,expression:"captcha"}],staticClass:"codeIput",attrs:{type:"text",placeholder:"填写验证码"},domProps:{value:e.captcha},on:{input:function(t){t.target.composing||(e.captcha=t.target.value)}}}),a("button",{staticClass:"code",class:!0===e.disabled?"on":"",attrs:{disabled:e.disabled},on:{click:e.code}},[e._v("\n "+e._s(e.text)+"\n ")])])]),a("div",{staticClass:"item"},[a("div",[a("svg",{staticClass:"icon",attrs:{"aria-hidden":"true"}},[a("use",{attrs:{"xlink:href":"#icon-code_"}})]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.password,expression:"password"}],attrs:{type:"password",placeholder:"填写您的登录密码"},domProps:{value:e.password},on:{input:function(t){t.target.composing||(e.password=t.target.value)}}})])]),e.isShowCode?a("div",{staticClass:"item"},[a("div",{staticClass:"align-left"},[a("svg",{staticClass:"icon",attrs:{"aria-hidden":"true"}},[a("use",{attrs:{"xlink:href":"#icon-code_"}})]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.codeVal,expression:"codeVal"}],staticClass:"codeIput",attrs:{type:"text",placeholder:"填写验证码"},domProps:{value:e.codeVal},on:{input:function(t){t.target.composing||(e.codeVal=t.target.value)}}}),a("div",{staticClass:"code",on:{click:e.again}},[a("img",{attrs:{src:e.codeUrl}})])])]):e._e()]),a("div",{staticClass:"logon",on:{click:e.registerReset}},[e._v("确认")]),a("div",{staticClass:"tip"},[a("span",{staticClass:"font-color-red",on:{click:function(t){return e.$router.push({name:"Login"})}}},[e._v("立即登录")])])]),a("div",{staticClass:"bottom"})])},c=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"shading"},[s("div",{staticClass:"pictrue acea-row row-center-wrapper"},[s("img",{attrs:{src:a("dd88")}})])])}],n=(a("63ff"),a("57f0")),r=a("f750"),o=a("c24f"),i=a("cba2"),d=a("61f7"),l=a("ed08"),u={name:"RetrievePassword",data:function(){return{account:"",password:"",captcha:"",keyCode:"",codeUrl:"",codeVal:"",isShowCode:!1}},mixins:[r["a"]],mounted:function(){this.getCode()},methods:{again:function(){this.codeUrl=l["a"]+"/captcha?"+this.keyCode+Date.parse(new Date),console.log(this.codeUrl)},getCode:function(){var e=this;Object(o["l"])().then((function(t){e.keyCode=t.data.key})).catch((function(t){e.$dialog.error(t.msg)}))},registerReset:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,a,s,c,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this,a=t.account,s=t.captcha,c=t.password,n=t.codeVal,e.prev=2,e.next=5,t.$validator({account:[Object(d["e"])(d["e"].message("手机号码")),Object(d["b"])(d["b"].message())],captcha:[Object(d["e"])(d["e"].message("验证码")),Object(d["a"])(d["a"].message("验证码"))],password:[Object(d["e"])(d["e"].message("密码")),d["c"].range([6,16],d["c"].range.message("密码")),Object(d["a"])(d["a"].message("密码"))],codeVal:this.isShowCode?[Object(d["e"])(d["e"].message("验证码")),d["c"].length(4,d["c"].length.message("验证码")),Object(d["a"])(d["a"].message("验证码"))]:[]}).validate({account:a,captcha:s,password:c,codeVal:n});case 5:e.next=10;break;case 7:return e.prev=7,e.t0=e["catch"](2),e.abrupt("return",Object(i["b"])(e.t0));case 10:Object(o["T"])({account:t.account,captcha:t.captcha,password:t.password,code:t.codeVal}).then((function(e){t.$dialog.success(e.msg).then((function(){t.$router.push({name:"Login"})}))})).catch((function(e){t.$dialog.error(e.msg)}));case 11:case"end":return e.stop()}}),e,this,[[2,7]])})));function t(){return e.apply(this,arguments)}return t}(),code:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this,a=t.account,e.prev=2,e.next=5,t.$validator({account:[Object(d["e"])(d["e"].message("手机号码")),Object(d["b"])(d["b"].message())]}).validate({account:a});case 5:e.next=10;break;case 7:return e.prev=7,e.t0=e["catch"](2),e.abrupt("return",Object(i["b"])(e.t0));case 10:Object(o["U"])({phone:t.account,key:t.keyCode,code:t.codeVal}).then((function(e){t.$dialog.success(e.msg),t.sendCode()})).catch((function(e){402===e.data.status&&(t.codeUrl="".concat(l["a"],"/captcha?").concat(t.keyCode),t.isShowCode=!0),t.$dialog.error(e.msg)}));case 11:case"end":return e.stop()}}),e,this,[[2,7]])})));function t(){return e.apply(this,arguments)}return t}()}},p=u,v=a("623f"),m=Object(v["a"])(p,s,c,!1,null,null,null);t["default"]=m.exports},ac2a:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"register absolute"},[s("div",{staticClass:"shading"},[s("div",{staticClass:"pictrue acea-row row-center-wrapper"},[e.logoUrl?s("img",{attrs:{src:e.logoUrl}}):s("img",{attrs:{src:a("dd88")}})])]),1===e.formItem?s("div",{staticClass:"whiteBg"},[s("div",{staticClass:"title acea-row row-center-wrapper"},e._l(e.navList,(function(t,a){return s("div",{key:a,staticClass:"item",class:e.current===a?"on":"",on:{click:function(t){return e.navTap(a)}}},[e._v("\n "+e._s(t)+"\n ")])})),0),s("div",{staticClass:"list",attrs:{hidden:0!==e.current}},[s("form",{on:{submit:function(t){return t.preventDefault(),e.submit(t)}}},[s("div",{staticClass:"item"},[s("div",{staticClass:"acea-row row-between-wrapper"},[s("svg",{staticClass:"icon",attrs:{"aria-hidden":"true"}},[s("use",{attrs:{"xlink:href":"#icon-phone_"}})]),s("input",{directives:[{name:"model",rawName:"v-model",value:e.account,expression:"account"}],attrs:{type:"text",placeholder:"输入手机号码",required:""},domProps:{value:e.account},on:{input:function(t){t.target.composing||(e.account=t.target.value)}}})])]),s("div",{staticClass:"item"},[s("div",{staticClass:"acea-row row-between-wrapper"},[s("svg",{staticClass:"icon",attrs:{"aria-hidden":"true"}},[s("use",{attrs:{"xlink:href":"#icon-code_"}})]),s("input",{directives:[{name:"model",rawName:"v-model",value:e.password,expression:"password"}],attrs:{type:"password",placeholder:"填写登录密码",required:""},domProps:{value:e.password},on:{input:function(t){t.target.composing||(e.password=t.target.value)}}})])])]),s("div",{staticClass:"forgetPwd",on:{click:function(t){return e.$router.push({name:"RetrievePassword"})}}},[s("span",{staticClass:"iconfont icon-wenti"}),e._v("忘记密码\n ")])]),s("div",{staticClass:"list",attrs:{hidden:1!==e.current}},[s("div",{staticClass:"item"},[s("div",{staticClass:"acea-row row-between-wrapper"},[s("svg",{staticClass:"icon",attrs:{"aria-hidden":"true"}},[s("use",{attrs:{"xlink:href":"#icon-phone_"}})]),s("input",{directives:[{name:"model",rawName:"v-model",value:e.account,expression:"account"}],attrs:{type:"text",placeholder:"输入手机号码"},domProps:{value:e.account},on:{input:function(t){t.target.composing||(e.account=t.target.value)}}})])]),s("div",{staticClass:"item"},[s("div",{staticClass:"align-left"},[s("svg",{staticClass:"icon",attrs:{"aria-hidden":"true"}},[s("use",{attrs:{"xlink:href":"#icon-code_1"}})]),s("input",{directives:[{name:"model",rawName:"v-model",value:e.captcha,expression:"captcha"}],staticClass:"codeIput",attrs:{type:"text",placeholder:"填写验证码"},domProps:{value:e.captcha},on:{input:function(t){t.target.composing||(e.captcha=t.target.value)}}}),s("button",{staticClass:"code",class:!0===e.disabled?"on":"",attrs:{disabled:e.disabled},on:{click:e.code}},[e._v("\n "+e._s(e.text)+"\n ")])])]),e.isShowCode?s("div",{staticClass:"item"},[s("div",{staticClass:"align-left"},[s("svg",{staticClass:"icon",attrs:{"aria-hidden":"true"}},[s("use",{attrs:{"xlink:href":"#icon-code_"}})]),s("input",{directives:[{name:"model",rawName:"v-model",value:e.codeVal,expression:"codeVal"}],staticClass:"codeIput",attrs:{type:"text",placeholder:"填写验证码"},domProps:{value:e.codeVal},on:{input:function(t){t.target.composing||(e.codeVal=t.target.value)}}}),s("div",{staticClass:"code",on:{click:e.again}},[s("img",{attrs:{src:e.codeUrl}})])])]):e._e()]),s("div",{staticClass:"logon",attrs:{hidden:1!==e.current},on:{click:e.loginMobile}},[e._v("登录")]),s("div",{staticClass:"logon",attrs:{hidden:1===e.current},on:{click:e.submit}},[e._v("登录")]),s("div",{staticClass:"tip"},[e._v("\n 没有账号?\n "),s("span",{staticClass:"font-color-red",on:{click:function(t){e.formItem=2}}},[e._v("立即注册")])])]):s("div",{staticClass:"whiteBg"},[s("div",{staticClass:"title"},[e._v("注册账号")]),s("div",{staticClass:"list"},[s("div",{staticClass:"item"},[s("div",[s("svg",{staticClass:"icon",attrs:{"aria-hidden":"true"}},[s("use",{attrs:{"xlink:href":"#icon-phone_"}})]),s("input",{directives:[{name:"model",rawName:"v-model",value:e.account,expression:"account"}],attrs:{type:"text",placeholder:"输入手机号码"},domProps:{value:e.account},on:{input:function(t){t.target.composing||(e.account=t.target.value)}}})])]),s("div",{staticClass:"item"},[s("div",{staticClass:"align-left"},[s("svg",{staticClass:"icon",attrs:{"aria-hidden":"true"}},[s("use",{attrs:{"xlink:href":"#icon-code_1"}})]),s("input",{directives:[{name:"model",rawName:"v-model",value:e.captcha,expression:"captcha"}],staticClass:"codeIput",attrs:{type:"text",placeholder:"填写验证码"},domProps:{value:e.captcha},on:{input:function(t){t.target.composing||(e.captcha=t.target.value)}}}),s("button",{staticClass:"code",class:!0===e.disabled?"on":"",attrs:{disabled:e.disabled},on:{click:e.code}},[e._v("\n "+e._s(e.text)+"\n ")])])]),s("div",{staticClass:"item"},[s("div",[s("svg",{staticClass:"icon",attrs:{"aria-hidden":"true"}},[s("use",{attrs:{"xlink:href":"#icon-code_"}})]),s("input",{directives:[{name:"model",rawName:"v-model",value:e.password,expression:"password"}],attrs:{type:"password",placeholder:"填写您的登录密码"},domProps:{value:e.password},on:{input:function(t){t.target.composing||(e.password=t.target.value)}}})])]),e.isShowCode?s("div",{staticClass:"item"},[s("div",{staticClass:"align-left"},[s("svg",{staticClass:"icon",attrs:{"aria-hidden":"true"}},[s("use",{attrs:{"xlink:href":"#icon-code_"}})]),s("input",{directives:[{name:"model",rawName:"v-model",value:e.codeVal,expression:"codeVal"}],staticClass:"codeIput",attrs:{type:"text",placeholder:"填写验证码"},domProps:{value:e.codeVal},on:{input:function(t){t.target.composing||(e.codeVal=t.target.value)}}}),s("div",{staticClass:"code",on:{click:e.again}},[s("img",{attrs:{src:e.codeUrl}})])])]):e._e()]),s("div",{staticClass:"logon",on:{click:e.register}},[e._v("注册")]),s("div",{staticClass:"tip"},[e._v("\n 已有账号?\n "),s("span",{staticClass:"font-color-red",on:{click:function(t){e.formItem=1}}},[e._v("立即登录")])])]),s("div",{staticClass:"bottom"})])},c=[],n=(a("f548"),a("63ff"),a("57f0")),r=a("f750"),o=a("c24f"),i=a("61f7"),d=a("cba2"),l=a("e876"),u=a("0479"),p=a.n(u),v=a("d0a4"),m=a("ed08"),h="login_back_url",g={name:"Login",mixins:[r["a"]],data:function(){return{navList:["账号登录","快速登录"],current:1,account:"",password:"",captcha:"",formItem:1,type:"login",logoUrl:"",keyCode:"",codeUrl:"",codeVal:"",isShowCode:!1}},mounted:function(){this.getCode(),this.getLogoImage()},methods:{again:function(){this.codeUrl=m["a"]+"/sms_captcha?key="+this.keyCode+Date.parse(new Date)},getCode:function(){var e=this;Object(o["l"])().then((function(t){e.keyCode=t.data.key})).catch((function(t){e.$dialog.error(t.msg)}))},getLogoImage:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=this,Object(l["i"])(2).then((function(e){t.logoUrl=e.data.logo_url}));case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),loginMobile:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,a,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return console.log(11),t=this,a=t.account,s=t.captcha,e.prev=3,e.next=6,t.$validator({account:[Object(i["e"])(i["e"].message("手机号码")),Object(i["b"])(i["b"].message())],captcha:[Object(i["e"])(i["e"].message("验证码")),Object(i["a"])(i["a"].message("验证码"))]}).validate({account:a,captcha:s});case 6:e.next=11;break;case 8:return e.prev=8,e.t0=e["catch"](3),e.abrupt("return",Object(d["b"])(e.t0));case 11:Object(o["K"])({phone:t.account,captcha:t.captcha,spread:v["a"].get("spread")}).then((function(e){var a=e.data,s=Math.round(new Date/1e3);t.$store.commit("LOGIN",a.token,p()(a.expires_time)-s);var c=v["a"].get(h)||"/";v["a"].remove(h),t.$router.replace({path:c})})).catch((function(e){t.$dialog.error(e.msg)}));case 12:case"end":return e.stop()}}),e,this,[[3,8]])})));function t(){return e.apply(this,arguments)}return t}(),register:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,a,s,c;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this,a=t.account,s=t.captcha,c=t.password,e.prev=2,e.next=5,t.$validator({account:[Object(i["e"])(i["e"].message("手机号码")),Object(i["b"])(i["b"].message())],captcha:[Object(i["e"])(i["e"].message("验证码")),Object(i["a"])(i["a"].message("验证码"))],password:[Object(i["e"])(i["e"].message("密码")),i["c"].range([6,16],i["c"].range.message("密码")),Object(i["a"])(i["a"].message("密码"))]}).validate({account:a,captcha:s,password:c});case 5:e.next=10;break;case 7:return e.prev=7,e.t0=e["catch"](2),e.abrupt("return",Object(d["b"])(e.t0));case 10:Object(o["S"])({account:t.account,captcha:t.captcha,password:t.password,spread:v["a"].get("spread")}).then((function(e){t.$dialog.success(e.msg),t.formItem=1})).catch((function(e){t.$dialog.error(e.msg)}));case 11:case"end":return e.stop()}}),e,this,[[2,7]])})));function t(){return e.apply(this,arguments)}return t}(),code:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this,a=t.account,e.prev=2,e.next=5,t.$validator({account:[Object(i["e"])(i["e"].message("手机号码")),Object(i["b"])(i["b"].message())]}).validate({account:a});case 5:e.next=10;break;case 7:return e.prev=7,e.t0=e["catch"](2),e.abrupt("return",Object(d["b"])(e.t0));case 10:return 2==t.formItem&&(t.type="register"),e.next=13,Object(o["U"])({phone:t.account,type:t.type,key:t.keyCode,code:t.codeVal}).then((function(e){t.$dialog.success(e.msg),t.sendCode()})).catch((function(e){402===e.data.status&&(t.codeUrl="".concat(m["a"],"/sms_captcha?key=").concat(t.keyCode),t.isShowCode=!0),t.$dialog.error(e.msg)}));case 13:case"end":return e.stop()}}),e,this,[[2,7]])})));function t(){return e.apply(this,arguments)}return t}(),navTap:function(e){this.current=e},submit:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,a,s,c=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this.account,a=this.password,s=this.codeVal,e.prev=1,e.next=4,this.$validator({account:[Object(i["e"])(i["e"].message("账号")),i["c"].range([5,16],i["c"].range.message("账号")),Object(i["a"])(i["a"].message("账号"))],password:[Object(i["e"])(i["e"].message("密码")),i["c"].range([6,16],i["c"].range.message("密码")),Object(i["a"])(i["a"].message("密码"))],codeVal:this.isShowCode?[Object(i["e"])(i["e"].message("验证码")),i["c"].length(4,i["c"].length.message("验证码")),Object(i["a"])(i["a"].message("验证码"))]:[]}).validate({account:t,password:a,codeVal:s});case 4:e.next=9;break;case 6:return e.prev=6,e.t0=e["catch"](1),e.abrupt("return",Object(d["b"])(e.t0));case 9:Object(o["J"])({account:t,password:a,code:s}).then((function(e){var t=e.data;c.$store.commit("LOGIN",t.token,p()(t.expires_time));var a=v["a"].get(h)||"/";v["a"].remove(h),c.$router.replace({path:a})})).catch((function(e){c.$dialog.error(e.msg)}));case 10:case"end":return e.stop()}}),e,this,[[1,6]])})));function t(){return e.apply(this,arguments)}return t}()}},f=g,b=(a("d9f3"),a("623f")),w=Object(b["a"])(f,s,c,!1,null,"1559275a",null);t["default"]=w.exports},c242:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"ChangePassword"},[a("div",{staticClass:"phone"},[e._v("\n 当前手机号:"),a("input",{directives:[{name:"model",rawName:"v-model",value:e.phone,expression:"phone"}],attrs:{type:"text",disabled:""},domProps:{value:e.phone},on:{input:function(t){t.target.composing||(e.phone=t.target.value)}}})]),a("div",{staticClass:"list"},[a("div",{staticClass:"item"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.password,expression:"password"}],attrs:{type:"password",placeholder:"设置新密码"},domProps:{value:e.password},on:{input:function(t){t.target.composing||(e.password=t.target.value)}}})]),a("div",{staticClass:"item"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.password2,expression:"password2"}],attrs:{type:"password",placeholder:"确认新密码"},domProps:{value:e.password2},on:{input:function(t){t.target.composing||(e.password2=t.target.value)}}})]),a("div",{staticClass:"item acea-row row-between-wrapper"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.captcha,expression:"captcha"}],staticClass:"codeIput",attrs:{type:"text",placeholder:"填写验证码"},domProps:{value:e.captcha},on:{input:function(t){t.target.composing||(e.captcha=t.target.value)}}}),a("button",{staticClass:"code font-color-red",class:!0===e.disabled?"on":"",attrs:{disabled:e.disabled},on:{click:e.code}},[e._v("\n "+e._s(e.text)+"\n ")])]),e.isShowCode?a("div",{staticClass:"item"},[a("div",{staticClass:"align-left"},[a("svg",{staticClass:"icon",attrs:{"aria-hidden":"true"}},[a("use",{attrs:{"xlink:href":"#icon-code_"}})]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.codeVal,expression:"codeVal"}],staticClass:"codeIput",attrs:{type:"text",placeholder:"填写验证码"},domProps:{value:e.codeVal},on:{input:function(t){t.target.composing||(e.codeVal=t.target.value)}}}),a("div",{staticClass:"code",on:{click:e.again}},[a("img",{attrs:{src:e.codeUrl}})])])]):e._e()]),a("div",{staticClass:"confirmBnt bg-color-red",on:{click:e.confirm}},[e._v("确认修改")])])},c=[],n=(a("63ff"),a("57f0")),r=(a("f548"),a("f750")),o=a("61f7"),i=a("cba2"),d=a("c24f"),l=a("ed08"),u={name:"ChangePassword",components:{},props:{},data:function(){return{password:"",password2:"",captcha:"",phone:"",yphone:"",keyCode:"",codeUrl:"",codeVal:"",isShowCode:!1}},mixins:[r["a"]],mounted:function(){this.getCode(),this.getUserInfo()},methods:{again:function(){this.codeUrl=l["a"]+"/sms_captcha?key="+this.keyCode+Date.parse(new Date),console.log(this.codeUrl)},getCode:function(){var e=this;Object(d["l"])().then((function(t){e.keyCode=t.data.key})).catch((function(t){e.$dialog.error(t.msg)}))},getUserInfo:function(){var e=this;Object(d["G"])().then((function(t){e.yphone=t.data.phone;var a=/^(\d{3})\d*(\d{4})$/;e.phone=e.yphone.replace(a,"$1****$2")}))},confirm:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,a,s,c,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this,a=t.password,s=t.password2,c=t.captcha,n=t.codeVal,e.prev=2,e.next=5,t.$validator({password:[Object(o["e"])(o["e"].message("密码")),o["c"].range([6,16],o["c"].range.message("密码")),Object(o["a"])(o["a"].message("密码"))],captcha:[Object(o["e"])(o["e"].message("验证码")),Object(o["a"])(o["a"].message("验证码"))],codeVal:this.isShowCode?[Object(o["e"])(o["e"].message("验证码")),o["c"].length(4,o["c"].length.message("验证码")),Object(o["a"])(o["a"].message("验证码"))]:[]}).validate({password:a,captcha:c,codeVal:n});case 5:e.next=10;break;case 7:return e.prev=7,e.t0=e["catch"](2),e.abrupt("return",Object(i["b"])(e.t0));case 10:if(a===s){e.next=12;break}return e.abrupt("return",t.$dialog.error("两次密码不一致"));case 12:Object(d["T"])({account:t.yphone,captcha:t.captcha,password:t.password,code:t.codeVal}).then((function(e){t.$dialog.success(e.msg).then((function(){t.$router.push({name:"Login"})}))})).catch((function(e){t.$dialog.error(e.msg)}));case 13:case"end":return e.stop()}}),e,this,[[2,7]])})));function t(){return e.apply(this,arguments)}return t}(),code:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,a,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this,a=t.yphone,s=t.codeVal,e.prev=2,e.next=5,t.$validator({yphone:[Object(o["e"])(o["e"].message("手机号码")),Object(o["b"])(o["b"].message())]}).validate({yphone:a,codeVal:s});case 5:e.next=10;break;case 7:return e.prev=7,e.t0=e["catch"](2),e.abrupt("return",Object(i["b"])(e.t0));case 10:Object(d["U"])({phone:a,code:t.codeVal}).then((function(e){t.$dialog.success(e.msg),t.sendCode()})).catch((function(e){402===e.data.status&&(t.codeUrl="".concat(l["a"],"/sms_captcha?key=").concat(t.keyCode),t.isShowCode=!0),t.$dialog.error(e.msg)}));case 11:case"end":return e.stop()}}),e,this,[[2,7]])})));function t(){return e.apply(this,arguments)}return t}()}},p=u,v=(a("5efb"),a("623f")),m=Object(v["a"])(p,s,c,!1,null,"63b29038",null);t["default"]=m.exports},d9f3:function(e,t,a){"use strict";var s=a("792e"),c=a.n(s);c.a},dd88:function(e,t,a){e.exports=a.p+"h5/img/logo2.47964cc3.png"}}]);
  2. //# sourceMappingURL=login.7f228fa4.js.map