This commit is contained in:
姚亚男
2021-10-20 12:02:08 +08:00
parent 1a6ef13392
commit 9e707240f9
13 changed files with 43 additions and 13 deletions
+3 -3
View File
@@ -79,7 +79,7 @@ Page({
let pattern = /^(?=.*[a-zA-Z])(?=.*\d)(?=.*[~!@#$%^&*()_+`\-={}:";'<>?,.\/]).{8,}$/
if(!pattern.test(e.detail.value.oldpassword)){
wx.showToast({
title: '旧密码由8位数字、大小写字母和特殊符号组成!!',
title: '旧密码由8位数字、大小写字母和特殊符号组成!',
icon: 'none'
})
this.data.flag = false
@@ -99,7 +99,7 @@ Page({
let pattern = /^(?=.*[a-zA-Z])(?=.*\d)(?=.*[~!@#$%^&*()_+`\-={}:";'<>?,.\/]).{8,}$/
if(!pattern.test(e.detail.value.password)){
wx.showToast({
title: '新密码由8位数字、大小写字母和特殊符号组成!!',
title: '新密码由8位数字、大小写字母和特殊符号组成!',
icon: 'none'
})
this.data.flag = false
@@ -119,7 +119,7 @@ Page({
let pattern = /^(?=.*[a-zA-Z])(?=.*\d)(?=.*[~!@#$%^&*()_+`\-={}:";'<>?,.\/]).{8,}$/
if(!pattern.test(e.detail.value.confirmpassword)){
wx.showToast({
title: '密码由8位数字、大小写字母和特殊符号组成!!',
title: '密码由8位数字、大小写字母和特殊符号组成!',
icon: 'none'
})
this.data.flag = false