Showing
1 changed file
with
2 additions
and
1 deletions
| @@ -200,6 +200,7 @@ struct ModifyPasswordPage { | @@ -200,6 +200,7 @@ struct ModifyPasswordPage { | ||
| 200 | .width('100%') | 200 | .width('100%') |
| 201 | .height(`${this.calcHeight(80)}lpx`) | 201 | .height(`${this.calcHeight(80)}lpx`) |
| 202 | .backgroundColor(this.btnStatus ? '#ED2800' : '#99ED2800') | 202 | .backgroundColor(this.btnStatus ? '#ED2800' : '#99ED2800') |
| 203 | + .enabled(this.btnStatus ?true:false) | ||
| 203 | .borderRadius('4vp') | 204 | .borderRadius('4vp') |
| 204 | .onClick(() => { | 205 | .onClick(() => { |
| 205 | if(this.btnStatus){ | 206 | if(this.btnStatus){ |
| @@ -227,7 +228,7 @@ struct ModifyPasswordPage { | @@ -227,7 +228,7 @@ struct ModifyPasswordPage { | ||
| 227 | } | 228 | } |
| 228 | 229 | ||
| 229 | inputTextChange(){ | 230 | inputTextChange(){ |
| 230 | - if ((this.password_old.length >= 6 && this.password_old.length <= 20) && (this.password_new.length >= 6 && this.password_new.length <= 20)&& (this.password_new_repeat.length >= 6 && this.password_new_repeat.length <= 20)) { | 231 | + if ((this.password_old.length >= 8 && this.password_old.length <= 20) && (this.password_new.length >= 8 && this.password_new.length <= 20)&& (this.password_new_repeat.length >= 8 && this.password_new_repeat.length <= 20)) { |
| 231 | this.btnStatus = true; | 232 | this.btnStatus = true; |
| 232 | } else { | 233 | } else { |
| 233 | this.btnStatus = false; | 234 | this.btnStatus = false; |
-
Please register or login to post a comment