【修改】 密码修改提示语

This commit is contained in:
fengachen
2022-03-22 13:44:04 +08:00
parent d45c5a6f93
commit 441e454f20
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -201,7 +201,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
+1 -1
View File
@@ -211,7 +211,7 @@ Page({
return
} else if (this.data.prePageData.password && !passwordReg(this.data.prePageData.password)) {
wx.showToast({
title: '密码长度至少8位,并包括数字、小写字母、大写字母和特殊符号4类',
title: '密码长度至少8位,并包括、小写英文字母、特殊字符',
icon: 'none',
duration: 800
})
+1 -1
View File
@@ -46,7 +46,7 @@
<view class="item" wx:if="{{currentTab === 1}}">
<view class="label validate">密码</view>
<view class="value text-password">
<input name="password" value="{{password}}" maxlength="50" password="{{show}}" placeholder="请输入密码" bindblur="validatePsd" data-message='请输入密码' data-errmsg='密码长度至少8位,并包括数字、小写字母、大写字母和特殊符号4类'
<input name="password" value="{{password}}" maxlength="50" password="{{show}}" placeholder="请输入密码" bindblur="validatePsd" data-message='请输入密码' data-errmsg='密码长度至少8位,并包括、小写英文字母、特殊字符'
bindinput="handlePasswordInput" />
<image src="../../assets/images/show.png" class="show" wx:if="{{!show}}" bindtap="showPassword"></image>
<image src="../../assets/images/none.png" class="show" wx:if="{{show}}" bindtap="showPassword"></image>