修改功能
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user