验证码添加图形验证
This commit is contained in:
@@ -73,7 +73,7 @@
|
||||
disabledFlag:false,
|
||||
doneFlag:0,
|
||||
sendAgain:'发送验证码',
|
||||
sendAgainFlag:0,
|
||||
sendAgainFlag:1,
|
||||
resetFlag:0,
|
||||
vercode:'',
|
||||
second:60,
|
||||
@@ -115,6 +115,11 @@
|
||||
that.seeFlag=0;
|
||||
that.password='';
|
||||
}
|
||||
if( that.password.length>0 && that.again.length>0 ){
|
||||
that.sendAgainFlag=0
|
||||
}else{
|
||||
that.sendAgainFlag=1
|
||||
}
|
||||
},
|
||||
setAgain(e){
|
||||
var that = this;
|
||||
@@ -130,6 +135,11 @@
|
||||
that.seeAgainFlag=0;
|
||||
that.again='';
|
||||
}
|
||||
if( that.password.length>0 && that.again.length>0 ){
|
||||
that.sendAgainFlag=0
|
||||
}else{
|
||||
that.sendAgainFlag=1
|
||||
}
|
||||
},
|
||||
see(flag){
|
||||
this.passwordFlag=flag;
|
||||
@@ -137,19 +147,22 @@
|
||||
seeAgain(flag){
|
||||
this.againFlag=flag;
|
||||
},
|
||||
sendVercodeAgain(){
|
||||
async sendVercodeAgain(){
|
||||
var that = this;
|
||||
if(that.second!=60){
|
||||
return;
|
||||
}
|
||||
that.sendAgainFlag=1
|
||||
await that.authToken();
|
||||
setTimeout(() => {
|
||||
uni.request({
|
||||
url: that.serverUrl+'/user/authCode',
|
||||
method:'POST',
|
||||
data: {
|
||||
phone:that.phoneNum,
|
||||
devCode:that.cid(),
|
||||
type:2
|
||||
type:2,
|
||||
authToken: that.authTokenId
|
||||
},
|
||||
header: {
|
||||
'content-type': 'application/x-www-form-urlencoded'
|
||||
@@ -193,6 +206,7 @@
|
||||
});
|
||||
}
|
||||
});
|
||||
}, 500);
|
||||
},
|
||||
complete(){
|
||||
var that = this;
|
||||
|
||||
Reference in New Issue
Block a user