|
@@ -486,15 +486,11 @@ export default{
|
|
|
return false;
|
|
|
}
|
|
|
let postdata = {
|
|
|
- // resettoken:this.setParam.resettoken,
|
|
|
- area:this.area,
|
|
|
- mobile:this.setParam.username,
|
|
|
- password:this.setParam.password,
|
|
|
- password2:this.setParam.password2,
|
|
|
- code:this.setParam.resettoken,
|
|
|
- os:"web",
|
|
|
- type:"sms",
|
|
|
- broker_code:'04031632e48cd96e'
|
|
|
+ resettoken: this.setParam.resettoken,
|
|
|
+ password: this.setParam.password,
|
|
|
+ password2: this.setParam.password2,
|
|
|
+ os: "web",
|
|
|
+ type: "sms",
|
|
|
};
|
|
|
this.setLoad=true;
|
|
|
ajax(this,this.extendApi.resetPwd,postdata,(data)=>{
|
|
@@ -547,12 +543,6 @@ export default{
|
|
|
ajax(this,this.extendApi.resetEmailPassword,param,(data)=>{
|
|
|
this.codeLoad=false;
|
|
|
if(data.code==200){
|
|
|
- this.$notify({
|
|
|
- title: '成功',
|
|
|
- message: '短信发送成功',
|
|
|
- type: 'success',
|
|
|
- duration:'1500'
|
|
|
- });
|
|
|
// 清空ticked
|
|
|
this.ticketNum='';
|
|
|
// 判断是否触发腾讯验证码
|
|
@@ -562,19 +552,26 @@ export default{
|
|
|
this.addscript();
|
|
|
this.businessId = data.data.data.businessId;
|
|
|
}else{
|
|
|
+ const message = this.operateType == 'email' ? '邮件发送成功' : '短信发送成功';
|
|
|
+ this.$notify({
|
|
|
+ title: '成功',
|
|
|
+ message: message,
|
|
|
+ type: 'success',
|
|
|
+ duration:'1500'
|
|
|
+ });
|
|
|
+ // 计时器
|
|
|
+ this.codestate=1;
|
|
|
+ this.secondNum=60;
|
|
|
+ clearInterval(this.reltime);
|
|
|
+ this.reltime=setInterval(()=>{
|
|
|
+ this.secondNum--;
|
|
|
+ if(this.secondNum==0){
|
|
|
+ clearInterval(this.reltime);
|
|
|
+ this.codestate=2;
|
|
|
+ this.secondNum=60;
|
|
|
+ }
|
|
|
+ }, 1000);
|
|
|
}
|
|
|
- // 计时器
|
|
|
- this.codestate=1;
|
|
|
- this.secondNum=60;
|
|
|
- clearInterval(this.reltime);
|
|
|
- this.reltime=setInterval(()=>{
|
|
|
- this.secondNum--;
|
|
|
- if(this.secondNum==0){
|
|
|
- clearInterval(this.reltime);
|
|
|
- this.codestate=2;
|
|
|
- this.secondNum=60;
|
|
|
- }
|
|
|
- }, 1000);
|
|
|
}
|
|
|
},'post');
|
|
|
},
|