chunk-46613f8e.1587613021619.js 11.8 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-46613f8e"],{"2fb7":function(t,s,e){},"7d92":function(t,s){function e(t){var s=window.global.PK,e=window.global.E,i=new RSAKey;i.setPublic(s,e);var a=i.encrypt(t);return null==a?t:a}t.exports={passwordEncrypt:e}},"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("modal2-comp",{attrs:{visible:t.showError,close:function(){t.showError=!1},content:t.$t("glbalTips.sessionLost")}}),i("div",{staticClass:"ebg"}),i("div",{staticClass:"content"},[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 flex-center",class:{disabled:t.s1BtnDisabled},on:{click:function(s){return t.locateUserInfo()}}},[t.loading?i("van-loading"):t._e(),t._v("\n\t\t\t\t\t"+t._s(t.$t("passwordReset.type1.submit"))+"\n\t\t\t\t")],1)]):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"}],staticClass:"fixed-ipt",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 flex-center",class:{disabled:t.s3BtnDisabled},on:{click:function(s){return t.checkOtp()}}},[t.loading?i("van-loading"):t._e(),t._v("\n\t\t\t\t\t"+t._s(t.$t("passwordReset.type2.submit"))+"\n\t\t\t\t")],1)]):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=[],r=e("b081"),o=(e("f548"),e("6d57"),e("f925"),e("c2b1")),n=e("4ec3"),c=e.n(n),l=e("ed0b"),d=e("fa7d"),p=e("79c3"),u=e("daf4"),h=e("d192"),v=e("7d92"),m=e("0261");m["default"].use(o["a"]);var w=Object(r["a"])({data:function(){return{loading:!1,key:"value",type:1,values:{cid:""},times:{interval:0,remain:0,tip:""},showError:!1,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=!Object(d["b"])(this.step3.otp);return t},s4BtnDisabled:function(){var t=this.checkPassword(this.step4.pwd);return!!t||this.step4.pwd!=this.step4.pwdRepeat}},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?(this.loading=!0,Object(l["c"])({url:c.a.locateUserInfo,data:{uid:this.step1.userId}}).then((function(s){t.loading=!1,"0"!==s.returnCode?t.step1.error=t.i18n().passwordReset.type1.error:(t.values.cid=s.data.cid,t.step2.idNo=s.data.idNo,t.type=3)})).catch((function(s){t.loading=!1}))):this.step1.error=this.i18n().passwordReset.type1.error)},sureIdNo:function(){this.type=4},sendOtp:function(){var t=this;this.times.remain>0||this.loading||(this.loading=!0,Object(l["c"])({url:c.a.sendOtp,data:{cid:this.values.cid}}).then((function(s){if(t.loading=!1,t.responseHandler(s))switch(s.returnCode){case"0":t.startTimeClick();break;case"COMMON_ERROR_E3":return void(t.step3.error=t.i18n().passwordReset.type2.error3);default:return void(t.step3.error=s.returnMsg)}})).catch((function(s){t.loading=!1})))},checkOtp:function(){var t=this;this.s3BtnDisabled||(Object(d["b"])(this.step3.otp)?(this.loading=!0,Object(l["c"])({url:c.a.checkOtp,data:{cid:this.values.cid,otp:this.step3.otp}}).then((function(s){if(t.loading=!1,t.responseHandler(s))switch(s.returnCode){case"0":return void(t.type=4);default:return void(t.step3.error=t.i18n().passwordReset.type2.error1)}})).catch((function(s){t.loading=!1}))):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(v["passwordEncrypt"])(this.step4.pwd);this.loading||(this.loading=!0,Object(l["c"])({url:c.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.step4.error2=e;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.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,this.showError=!0,!1;default:return!0}},modalCallback:function(){this.modalVisiable=!1,this.step4.success&&this.$router.push({path:"/login"})},showSuccessModel:function(){this.showModal("","succ")}},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(){window.showSuccessModelTest=this.showSuccessModel},created:function(){}},"components",{modalComp:p["a"],modalSimpleComp:u["a"],Modal2Comp:h["a"]}),g=w,f=(e("ca86"),e("e90a")),b=Object(f["a"])(g,i,a,!1,null,"79e3c2d2",null);s["default"]=b.exports},b14b:function(t,s){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAUCAYAAAC9BQwsAAAAzUlEQVQ4je3TsUrDcBTF4a9p9ryAItIMxcWhQ9cOIrg5N2AHwUdwUaRDpz5CNwt5B9/EDkF8hGYVazs0BUlT/c/ime498LvnLqe1HHYuMMOpML3htrUcdt4rY46vX6AII6xinGCS5MVTSFyZpREe4mo/LrN0EPjqEezALq4Dwe538CXJi3EIVWbpGP0oMGVP/+DfAOMms8zSNu6xxjTJi73WHEq8whnOcflTYrvmv6JXzYsmZlfkCM9YNRz9rHk3+IhtGz3D44G361rgbgMMKicPFmVI2AAAAABJRU5ErkJggg=="},ca86:function(t,s,e){"use strict";var i=e("2fb7"),a=e.n(i);a.a}}]);