修改功能

This commit is contained in:
浅念
2025-03-24 11:13:13 +08:00
parent 0a0ab4d160
commit f7ff9d65a5
10 changed files with 65 additions and 29 deletions
+11
View File
@@ -80,6 +80,10 @@
leftClick(){
uni.navigateBack({})
},
validateEmail(email) {
const regex = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;
return regex.test(email);
},
login() {
if(this.email==''){
uni.showToast({
@@ -134,6 +138,13 @@
});
return false
}
if (!this.validateEmail(this.email)) {
uni.showToast({
title:this.$t('emailerr1'),
icon: 'none'
});
return false;
}
this.vcodeTime = 60
this.vcodeTimer = setInterval(() => {
if (this.vcodeTime > 0) {