Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
yangchenggong1_wd
2024-06-03 15:05:44 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c79f39707874299591947363eee7169524cf86ef
c79f3970
1 parent
a5dafecf
fix:bug[17505] 设置密码的密码长度判断提示信息和实际判断逻辑不一致
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
sight_harmony/features/wdLogin/src/main/ets/pages/login/SettingPasswordPage.ets
sight_harmony/features/wdLogin/src/main/ets/pages/login/SettingPasswordPage.ets
View file @
c79f397
...
...
@@ -134,7 +134,7 @@ export struct SettingPasswordPage {
this.listData.push(new AccoutPageDataModel(0, '设置密码', '', '', '', '', 0))
this.listData.push(new AccoutPageDataModel(1, '', '', '', '', '请输入密码', 10086))
this.listData.push(new AccoutPageDataModel(1, '', '', '', '', '再次输入密码', 10087))
this.listData.push(new AccoutPageDataModel(3, '', '', '提示:密码长度
6
~20位,使用大写字母、小写字母、数字、特殊字符中三种或三种以上', '', '', 0))
this.listData.push(new AccoutPageDataModel(3, '', '', '提示:密码长度
8
~20位,使用大写字母、小写字母、数字、特殊字符中三种或三种以上', '', '', 0))
this.listData.push(new AccoutPageDataModel(4, '', '', '', '确认', '', 0))
break;
case 2:
...
...
@@ -294,6 +294,7 @@ export struct SettingPasswordPage {
.width('100%')
.height('80lpx')
.backgroundColor(this.btnStatus ? '#da3e22' : '#e5856d')
.enabled(this.btnStatus ?true:false)
.fontColor('#fff')
.borderRadius('4vp')
.onClick(() => {
...
...
@@ -325,7 +326,7 @@ export struct SettingPasswordPage {
TrackingButton.click("setPasswordPageConfirm",TrackConstants.PageName.Setup_Passwd,TrackConstants.PageName.Setup_Passwd)
}
// 需要+手机号校验
if (this.password01.length <
6
|| this.password01.length > 20) {
if (this.password01.length <
8
|| this.password01.length > 20) {
this.showToastTip('密码不符合密码规范')
return
}
...
...
@@ -376,7 +377,7 @@ export struct SettingPasswordPage {
}
if (this.password01) {
if ((this.password01.length >=
6 && this.password01.length <= 20) && (this.password02.length >= 6
&& this.password02.length <= 20)) {
if ((this.password01.length >=
8 && this.password01.length <= 20) && (this.password02.length >= 8
&& this.password02.length <= 20)) {
this.btnStatus = true;
} else {
this.btnStatus = false;
...
...
Please
register
or
login
to post a comment