bug修改
This commit is contained in:
@@ -121,7 +121,7 @@ Page({
|
||||
let pattern = /^(?=.*[a-zA-Z])(?=.*\d)(?=.*[~!@#$%^&*()_+`\-={}:";'<>?,.\/]).{8,}$/
|
||||
if(!pattern.test(e.detail.value.newPassword)){
|
||||
wx.showToast({
|
||||
title: '密码由8位及以上数字、大小写字母和特殊符号组成!',
|
||||
title: '密码由8位及以上数字、大小写字母和特殊符号组成!',
|
||||
icon: 'none'
|
||||
})
|
||||
this.data.flag = false
|
||||
@@ -137,18 +137,6 @@ Page({
|
||||
icon: 'none'
|
||||
})
|
||||
return
|
||||
} else {
|
||||
let pattern = /^(?=.*[a-zA-Z])(?=.*\d)(?=.*[~!@#$%^&*()_+`\-={}:";'<>?,.\/]).{8,}$/
|
||||
if(!pattern.test(e.detail.value.verifyPassword)){
|
||||
wx.showToast({
|
||||
title: '密码由8位及以上数字、大小写字母和特殊符号组成!',
|
||||
icon: 'none'
|
||||
})
|
||||
this.data.flag = false
|
||||
return
|
||||
} else {
|
||||
this.data.flag = true
|
||||
}
|
||||
}
|
||||
if(e.detail.value.newPassword === e.detail.value.verifyPassword) {
|
||||
this.data.flag = true
|
||||
|
||||
Reference in New Issue
Block a user