Showing
1 changed file
with
20 additions
and
11 deletions
| @@ -289,12 +289,10 @@ struct LoginPage { | @@ -289,12 +289,10 @@ struct LoginPage { | ||
| 289 | }.width('100%') | 289 | }.width('100%') |
| 290 | 290 | ||
| 291 | Row() { | 291 | Row() { |
| 292 | - Row() { | 292 | + /*Row() { |
| 293 | Image($r('app.media.login_wx')) | 293 | Image($r('app.media.login_wx')) |
| 294 | .width(20).height(20).onClick(()=>{ | 294 | .width(20).height(20).onClick(()=>{ |
| 295 | - Logger.debug("测试",'开始'+Logger.isDebug) | ||
| 296 | ErrorToastUtils.ErrorToast.showToast(ErrorToastUtils.ErrorType.NET_CORE_NO_NETWORK) | 295 | ErrorToastUtils.ErrorToast.showToast(ErrorToastUtils.ErrorType.NET_CORE_NO_NETWORK) |
| 297 | - Logger.debug("测试",'开始2'+Logger.isDebug) | ||
| 298 | }) | 296 | }) |
| 299 | }.backgroundImage($r('app.media.login_other_left'), ImageRepeat.NoRepeat) | 297 | }.backgroundImage($r('app.media.login_other_left'), ImageRepeat.NoRepeat) |
| 300 | .otherStyle() | 298 | .otherStyle() |
| @@ -307,25 +305,36 @@ struct LoginPage { | @@ -307,25 +305,36 @@ struct LoginPage { | ||
| 307 | Row() { | 305 | Row() { |
| 308 | Image($r('app.media.login_wb')).size({ width: 20, height: 20 }) | 306 | Image($r('app.media.login_wb')).size({ width: 20, height: 20 }) |
| 309 | }.backgroundImage($r('app.media.login_other_middle'), ImageRepeat.NoRepeat) | 307 | }.backgroundImage($r('app.media.login_other_middle'), ImageRepeat.NoRepeat) |
| 310 | - .otherStyle() | 308 | + .otherStyle()*/ |
| 311 | 309 | ||
| 312 | Row() { | 310 | Row() { |
| 313 | Image(this.checkCodePage ? $r('app.media.login_qt') : $r('app.media.login_other_password')) | 311 | Image(this.checkCodePage ? $r('app.media.login_qt') : $r('app.media.login_other_password')) |
| 314 | - .size({ width: 20, height: 20 }) | ||
| 315 | - }.backgroundImage($r('app.media.login_other_right'), ImageRepeat.NoRepeat) | ||
| 316 | - .otherStyle().onClick(() => { | 312 | + .size({ width: "35lpx", height: "35lpx" }) |
| 313 | + .margin({right:"8lpx"}) | ||
| 314 | + .height("38lpx") | ||
| 315 | + .width("38lpx") | ||
| 316 | + Text(this.checkCodePage ? "密码登录" : "手机号登录") | ||
| 317 | + .fontWeight(400) | ||
| 318 | + .fontColor("#3D3D3D") | ||
| 319 | + .fontSize("23lpx") | ||
| 320 | + .lineHeight("38lpx") | ||
| 321 | + } | ||
| 322 | + .onClick(() => { | ||
| 317 | this.updateAccount() | 323 | this.updateAccount() |
| 318 | this.checkCodePage = !this.checkCodePage; | 324 | this.checkCodePage = !this.checkCodePage; |
| 319 | this.passwordSwitch = true | 325 | this.passwordSwitch = true |
| 320 | this.isSubmit = false | 326 | this.isSubmit = false |
| 321 | - }) | 327 | + }).width('100%') |
| 328 | + .alignItems(VerticalAlign.Center) | ||
| 329 | + .justifyContent(FlexAlign.Center) | ||
| 322 | 330 | ||
| 323 | }.height(36) | 331 | }.height(36) |
| 324 | .width('100%') | 332 | .width('100%') |
| 325 | .padding({ left: 25, right: 25 }) | 333 | .padding({ left: 25, right: 25 }) |
| 326 | - // .justifyContent(FlexAlign.SpaceEvenly) | ||
| 327 | - .margin({ top: 24 }) | ||
| 328 | - }.width('100%').margin({ bottom: 40 }) | 334 | + .margin({ top: "46lpx" }) |
| 335 | + } | ||
| 336 | + .width('100%') | ||
| 337 | + .margin({ bottom: 40 }) | ||
| 329 | } | 338 | } |
| 330 | 339 | ||
| 331 | updateAccount(){ | 340 | updateAccount(){ |
-
Please register or login to post a comment