shishuangxi

密码登录页面字数限制调整

@@ -188,15 +188,15 @@ struct LoginPage { @@ -188,15 +188,15 @@ struct LoginPage {
188 .type(InputType.Normal) 188 .type(InputType.Normal)
189 .onChange((content) => { 189 .onChange((content) => {
190 this.accountContent = content 190 this.accountContent = content
191 - this.isSubmit = (this.accountContent.length >= 11 && this.passwordContent.length >= 6) 191 + this.isSubmit = (this.accountContent.length >= 1 && this.passwordContent.length >= 6)
192 }) 192 })
193 193
194 RelativeContainer() { 194 RelativeContainer() {
195 - if (this.passwordSwitch) { 195 + // if (this.passwordSwitch) {
196 this.addPasswordInputLayout() 196 this.addPasswordInputLayout()
197 - } else {  
198 - this.addPasswordInputLayout()  
199 - } 197 + // } else {
  198 + // this.addPasswordInputLayout()
  199 + // }
200 200
201 Image(this.passwordSwitch ? $r('app.media.login_password_off') : $r('app.media.login_password_on')) 201 Image(this.passwordSwitch ? $r('app.media.login_password_off') : $r('app.media.login_password_on'))
202 .onClick(() => { 202 .onClick(() => {
@@ -237,7 +237,7 @@ struct LoginPage { @@ -237,7 +237,7 @@ struct LoginPage {
237 .onChange((value) => { 237 .onChange((value) => {
238 // Logger.debug(TAG, "onChange" + value + "/" + this.passwordContent) 238 // Logger.debug(TAG, "onChange" + value + "/" + this.passwordContent)
239 this.passwordContent = value 239 this.passwordContent = value
240 - this.isSubmit = (this.accountContent.length >= 11 && this.passwordContent.length >= 6) 240 + this.isSubmit = (this.accountContent.length >= 1 && this.passwordContent.length >= 6)
241 }) 241 })
242 .id("password") 242 .id("password")
243 } 243 }