chunk-7864e919.1576495612934.js 11.8 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7864e919"],{7753:function(t,s,e){},"7d92":function(t,s,e){var i="B5FE03847F02046C47292AF0FF2DE88977241483DD40C123046EB39CBE4C48167B120096CFF12CD16559322884A3C56FA92B07B89AB51FC8C91A75127622151DDD730DFF1F993D5A290CEAC0BBA7FC88285D8994ACBAFF50101EDE9A0925AD5DFFAFE96D53C370E9C5B37DF2F871F81C4D7CA6B7EC37FF459C07975AD9A74A95",a="10001";function r(t){var s=new RSAKey;s.setPublic(i,a);var e=s.encrypt(t);return null==e?t:e}i="B5FE03847F02046C47292AF0FF2DE88977241483DD40C123046EB39CBE4C48167B120096CFF12CD16559322884A3C56FA92B07B89AB51FC8C91A75127622151DDD730DFF1F993D5A290CEAC0BBA7FC88285D8994ACBAFF50101EDE9A0925AD5DFFAFE96D53C370E9C5B37DF2F871F81C4D7CA6B7EC37FF459C07975AD9A74A95",a="10001",t.exports={passwordEncrypt:r}},"7e1c":function(t,s){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAAQCAYAAADNo/U5AAAA+klEQVQokb3RoU4DURCF4W+bDaYkaxG4rkUQJIYXAFNUN4GkD1BQOBwYHFhQJIsC3gESQggSg7iKF6AraEC0i+mGTdMWFEdMMnfOPye5E5VlqVKRpYs4RAfLeMMVjpI8fFS+qIKKLG3iDqu4xgtWsI1nbCR5+ITYj/axhnaSh9taenu8pIcTaNSgTTzWAUjycIMnbFVvdWgJwXTd12fxxHA0jUjycFDvo36ntYNdrKOP1xlpMMRl1O+0vhDhAcUcIBkvHsVYwFmSh705ACiy9BS96iPefwPqvsZvrmn6f2jyXrMUV6VEt8jSAQZzgCa6FXQxbo7/kDTE+TdhVEJawb8vlQAAAABJRU5ErkJggg=="},8524:function(t,s,e){"use strict";e.r(s);var i=function(){var t=this,s=t.$createElement,i=t._self._c||s;return i("div",[i("modal-comp",{attrs:{visible:t.modalVisiable,"show-confirm":!1,icon:t.modalIcon,content:t.modalContent,confirm:t.modalCallback,overlay:t.modalCallback}}),i("modal-simple-comp",{attrs:{visible:t.modalSimpleVisiable,"show-confirm":!1,icon:t.modalIcon,content:t.modalContent,confirm:t.closeModal,overlay:t.closeModal,close:t.closeModal}}),i("div",{staticClass:"content"},[t._m(0),i("div",{staticClass:"top-space"}),i("div",{staticClass:"box"},[1==t.type?i("div",{staticClass:"login"},[i("div",{staticClass:"login-tit"},[t._v(t._s(t.$t("passwordReset.type1.title")))]),i("div",{staticClass:"login-tit-space-1"}),i("div",{staticClass:"gird-g form"},[i("div",{staticClass:"pure-u-1 form-item"},[i("div",{staticClass:"label"},[i("img",{attrs:{src:e("b14b")}}),t._v(" "+t._s(t.$t("passwordReset.type1.t1"))+"\n\t\t\t\t\t\t")]),i("div",{staticClass:"ipt-wrap"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.step1.userId,expression:"step1.userId"}],staticClass:"ipt",attrs:{placeholder:t.$t("passwordReset.type1.t1Placeholder"),type:"text"},domProps:{value:t.step1.userId},on:{input:function(s){s.target.composing||t.$set(t.step1,"userId",s.target.value)}}})]),t.step1.error.length>0?i("div",{staticClass:"validator"},[i("img",{attrs:{src:e("b98c"),alt:""}}),t._v(" "+t._s(t.step1.error)+"\n\t\t\t\t\t\t")]):t._e()])]),i("div",{staticClass:"login-submit pointer",class:{disabled:t.s1BtnDisabled},on:{click:function(s){return t.locateUserInfo()}}},[t._v(t._s(t.$t("passwordReset.type1.submit")))])]):t._e(),2==t.type?i("div",{staticClass:"login"},[i("div",{staticClass:"login-tit"},[t._v(t._s(t.$t("passwordReset.type3.title")))]),i("div",{staticClass:"login-tit-space-1"}),i("div",{staticClass:"gird-g form"},[i("div",{staticClass:"pure-u-1 form-item"},[i("div",{staticClass:"label"},[i("img",{attrs:{src:e("b14b")}}),t._v(" "+t._s(t.$t("passwordReset.type3.t1"))+"\n\t\t\t\t\t\t")]),i("div",{staticClass:"ipt-wrap"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.step2.idNo,expression:"step2.idNo"}],staticClass:"ipt disable",attrs:{type:"text"},domProps:{value:t.step2.idNo},on:{input:function(s){s.target.composing||t.$set(t.step2,"idNo",s.target.value)}}})])])]),i("div",{staticClass:"login-submit pointer",on:{click:function(s){return t.sureIdNo()}}},[t._v(t._s(t.$t("passwordReset.type3.submit")))])]):t._e(),3==t.type?i("div",{staticClass:"login"},[i("div",{staticClass:"login-tit"},[t._v(t._s(t.$t("passwordReset.type2.title")))]),i("div",{staticClass:"login-tit-space-1"}),i("div",{staticClass:"gird-g form"},[i("div",{staticClass:"pure-u-1 form-item"},[i("div",{staticClass:"label"},[i("img",{attrs:{src:e("b14b")}}),t._v(" "+t._s(t.$t("passwordReset.type2.t1Placeholder"))+"\n\t\t\t\t\t\t")]),i("div",{staticClass:"ipt-wrap"},[i("div",{staticClass:"ipt ipt2"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.step3.otp,expression:"step3.otp"}],attrs:{placeholder:t.$t("passwordReset.type2.t1Placeholder"),type:"text"},domProps:{value:t.step3.otp},on:{input:function(s){s.target.composing||t.$set(t.step3,"otp",s.target.value)}}}),0==t.times.remain?i("div",{staticClass:"veri-btn pointer",on:{click:t.sendOtp}},[t._v(t._s(t.$t("register.verifyCodeGet")))]):i("div",{staticClass:"veri-btn-default"},[t._v(t._s(t.times.tip))])])]),t.step3.error.length>0?i("div",{staticClass:"validator"},[i("img",{attrs:{src:e("b98c"),alt:""}}),t._v(" "+t._s(t.step3.error)+"\n\t\t\t\t\t\t")]):t._e()])]),i("div",{staticClass:"login-submit pointer",class:{disabled:t.s3BtnDisabled},on:{click:function(s){return t.checkOtp()}}},[t._v(t._s(t.$t("passwordReset.type2.submit")))])]):t._e(),4==t.type?i("div",{staticClass:"login"},[i("div",{staticClass:"login-tit"},[t._v(t._s(t.$t("passwordReset.type4.title")))]),i("div",{staticClass:"login-tit-space-4"}),i("div",{staticClass:"gird-g form"},[i("div",{staticClass:"pure-u-1 form-item"},[i("div",{staticClass:"label"},[i("img",{attrs:{src:e("7e1c")}}),t._v(" "+t._s(t.$t("passwordReset.type4.t1"))+"\n\t\t\t\t\t\t")]),i("div",{staticClass:"ipt-wrap"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.step4.pwd,expression:"step4.pwd"}],staticClass:"ipt",attrs:{placeholder:t.$t("passwordReset.type4.t1Placeholder"),type:"password"},domProps:{value:t.step4.pwd},on:{input:function(s){s.target.composing||t.$set(t.step4,"pwd",s.target.value)}}})]),t.step4.error1.length>0?i("div",{staticClass:"validator"},[i("img",{attrs:{src:e("b98c"),alt:""}}),t._v(" "+t._s(t.step4.error1)+"\n\t\t\t\t\t\t")]):t._e()]),i("div",{staticClass:"pure-u-1 form-item"},[i("div",{staticClass:"label"},[i("img",{attrs:{src:e("7e1c")}}),t._v(" "+t._s(t.$t("passwordReset.type4.t2"))+"\n\t\t\t\t\t\t")]),i("div",{staticClass:"ipt-wrap"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.step4.pwdRepeat,expression:"step4.pwdRepeat"}],staticClass:"ipt",attrs:{placeholder:t.$t("passwordReset.type4.t2Placeholder"),type:"password"},domProps:{value:t.step4.pwdRepeat},on:{input:function(s){s.target.composing||t.$set(t.step4,"pwdRepeat",s.target.value)}}})]),t.step4.error2.length>0?i("div",{staticClass:"validator"},[i("img",{attrs:{src:e("b98c"),alt:""}}),t._v(" "+t._s(t.step4.error2)+"\n\t\t\t\t\t\t")]):t._e()])]),i("div",{staticClass:"login-submit pointer flex-center",class:{disabled:t.s4BtnDisabled},on:{click:function(s){return t.resetPwd()}}},[t.loading?i("van-loading"):t._e(),i("span",[t._v(t._s(t.$t("passwordReset.type4.submit")))])],1)]):t._e()])])],1)},a=[function(){var t=this,s=t.$createElement,i=t._self._c||s;return i("div",{staticClass:"ebg"},[i("img",{attrs:{src:e("dd6c")}})])}],r=e("97a3"),o=(e("c041"),e("4634"),e("0171"),e("2b97")),n=e("4ec3"),p=e.n(n),c=e("ed0b"),d=e("79c3"),l=e("daf4"),u=e("7d92"),v=e("6e6d");v["a"].use(o["a"]);var m=Object(r["a"])({data:function(){return{loading:!1,key:"value",type:1,values:{cid:""},times:{interval:0,remain:0,tip:""},modalSimpleVisiable:!1,modalVisiable:!1,targetPath:"",modalIcon:"succ",modalContent:"",step1:{userId:"",error:""},step2:{idNo:""},step3:{otp:"",error:""},step4:{pwd:"",error1:"",pwdRepeat:"",error2:"",success:!1}}},components:{},computed:{s1BtnDisabled:function(){var t=!this.step1.userId;return t},s3BtnDisabled:function(){var t=!this.step3.otp;return t},s4BtnDisabled:function(){var t=!this.step4.pwd,s=!this.step4.pwdRepeat;return t||s}},methods:{initData:function(){},i18n:function(){var t=this.$i18n.messages[this.$i18n.locale]||{};return t},showModal:function(t,s){s=s&&"undefined"!==typeof s?s:"succ",this.modalIcon=s,this.modalContent=t,"succ"==s?this.modalVisiable=!0:this.modalSimpleVisiable=!0},closeModal:function(){this.modalVisiable=!1,this.modalSimpleVisiable=!1},locateUserInfo:function(){var t=this;this.s1BtnDisabled||(this.step1.userId?Object(c["c"])({url:p.a.locateUserInfo,data:{uid:this.step1.userId}}).then((function(s){"0"!==s.returnCode?t.step1.error=t.i18n().passwordReset.type1.error:(t.values.cid=s.data.cid,t.step2.idNo=s.data.idNo,"undefined"==typeof t.step2.idNo?t.type=3:t.type=2)})):this.step1.error=this.i18n().passwordReset.type1.error)},sureIdNo:function(){this.type=3},sendOtp:function(){var t=this;this.times.remain>0||this.loading||(this.loading=!0,Object(c["c"])({url:p.a.sendOtp,data:{cid:this.values.cid}}).then((function(s){if(t.loading=!1,t.responseHandler(s))switch(s.returnCode){case"COMMON_ERROR_E3":return void(t.step2.error=t.i18n().passwordReset.type2.error3);default:return void t.startTimeClick()}})).catch((function(s){t.loading=!1})))},checkOtp:function(){var t=this;this.s3BtnDisabled||(this.step3.otp?Object(c["c"])({url:p.a.checkOtp,data:{cid:this.values.cid,otp:this.step3.otp}}).then((function(s){if(t.responseHandler(s))switch(s.returnCode){case"0":return void(t.type=4);default:return void(t.step3.error=t.i18n().passwordReset.type2.error1)}})):this.step3.error=this.i18n().passwordReset.type2.error1)},resetPwd:function(){var t=this;if(!this.s4BtnDisabled){var s=this.checkPassword(this.step4.pwd);if(s)this.$set(this.step,"error1",s);else if(this.step4.pwdRepeat==this.step4.pwd){var e=Object(u["passwordEncrypt"])(this.step4.pwd);this.loading||(this.loading=!0,Object(c["c"])({url:p.a.resetPwd,data:{cid:this.values.cid,password:e}}).then((function(s){if(t.loading=!1,t.responseHandler(s)){var e=t.i18n().passwordCheck.success;switch(t.step4.success=!0,s.returnCode){case"0":t.showModal(e,"succ");break;default:e=t.i18n().passwordCheck.error4,t.showModal(e,"info");break}}})).catch((function(s){t.loading=!1})))}else this.step4.error2=this.i18n().passwordCheck.error3}},checkPassword:function(t){if(t.length<8)return this.i18n().passwordCheck.error1;var s=/([a-z])+/.test(t),e=/([A-Z])+/.test(t),i=/([0-9])+/.test(t),a=/[^a-zA-Z0-9]+/.test(t);return console.log(s,e,i,a),(s|e)&i&a?"":this.i18n().passwordCheck.error2},startTimeClick:function(){this.times.remain=120;var t=this,s=this.$i18n.messages[this.$i18n.locale]||{},e=s.register.coutTips;t.times.tip=e.replace("{second}",t.times.remain),this.times.interval=setInterval((function(){if(t.times.remain<=0)return clearInterval(t.times.interval),t.times.interval=0,void(t.times.remain=0);t.times.remain--,t.times.tip=e.replace("{second}",t.times.remain),t.$set(t,"times",t.times)}),1e3)},responseHandler:function(t){switch(t.returnCode){case"COMMON_ERROR_E2":return this.values.cid="",this.showModal(this.i18n().passwordReset.cidExpire,"info"),this.step2.idNo="",this.step3.otp="",this.step3.error="",this.step4.pwd="",this.step4.pwdRepeat="",this.step4.error1="",this.step4.error2="",this.step4.success=!1,this.type=1,!1;default:return!0}},modalCallback:function(){this.modalVisiable=!1,this.step4.success&&this.$router.push({path:"/login"})}},watch:{"step1.userId":function(){this.step1.error=""},"step3.otp":function(){this.step3.error=""},"step4.pwd":function(){console.log(this.checkPassword(this.step4.pwd)),this.$set(this.step4,"error1",this.checkPassword(this.step4.pwd))},"step4.pwdRepeat":function(){this.step4.pwdRepeat!=this.step4.pwd?this.$set(this.step4,"error2",this.i18n().passwordCheck.error3):this.$set(this.step4,"error2","")}},mounted:function(){},created:function(){}},"components",{modalComp:d["a"],modalSimpleComp:l["a"]}),h=m,C=(e("c914"),e("6691")),w=Object(C["a"])(h,i,a,!1,null,"cc80a1ca",null);s["default"]=w.exports},b14b:function(t,s){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAUCAYAAAC9BQwsAAAAzUlEQVQ4je3TsUrDcBTF4a9p9ryAItIMxcWhQ9cOIrg5N2AHwUdwUaRDpz5CNwt5B9/EDkF8hGYVazs0BUlT/c/ime498LvnLqe1HHYuMMOpML3htrUcdt4rY46vX6AII6xinGCS5MVTSFyZpREe4mo/LrN0EPjqEezALq4Dwe538CXJi3EIVWbpGP0oMGVP/+DfAOMms8zSNu6xxjTJi73WHEq8whnOcflTYrvmv6JXzYsmZlfkCM9YNRz9rHk3+IhtGz3D44G361rgbgMMKicPFmVI2AAAAABJRU5ErkJggg=="},c914:function(t,s,e){"use strict";var i=e("7753"),a=e.n(i);a.a}}]);