修改功能

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
+14 -1
View File
@@ -78,7 +78,13 @@
},
methods: {
leftClick(){
uni.navigateBack({})
uni.reLaunch({
url: '/pages/login/index',// 替换为你要跳转的页面路径
});
},
validateEmail(email) {
const regex = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;
return regex.test(email);
},
login() {
if(this.email==''){
@@ -141,6 +147,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) {