验证码添加图形验证

This commit is contained in:
GGJ
2025-03-21 08:39:44 +08:00
parent 6023eac4fe
commit a388dec384
31 changed files with 1089 additions and 587 deletions

View File

@@ -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;