wangliang_wd

feat:优化退出登录,优化UI

@@ -133,8 +133,8 @@ export struct CommentComponent { @@ -133,8 +133,8 @@ export struct CommentComponent {
133 133
134 134
135 Image($r('app.media.comment_close')) 135 Image($r('app.media.comment_close'))
136 - .height(16)  
137 - .width(16) 136 + .height(18)
  137 + .width(18)
138 .margin({ right: 16 }) 138 .margin({ right: 16 })
139 .visibility(this.showCloseIcon ? Visibility.Visible : Visibility.Hidden) 139 .visibility(this.showCloseIcon ? Visibility.Visible : Visibility.Hidden)
140 .onClick(() => { 140 .onClick(() => {
@@ -162,8 +162,8 @@ struct CommentListDialog { @@ -162,8 +162,8 @@ struct CommentListDialog {
162 .margin({ left: 16 }) 162 .margin({ left: 16 })
163 163
164 Image($r('app.media.comment_close')) 164 Image($r('app.media.comment_close'))
165 - .height(16)  
166 - .width(16) 165 + .height(18)
  166 + .width(18)
167 .margin({ right: 16 })// .visibility(this.showCloseIcon ? Visibility.Visible : Visibility.Hidden) 167 .margin({ right: 16 })// .visibility(this.showCloseIcon ? Visibility.Visible : Visibility.Hidden)
168 .onClick(() => { 168 .onClick(() => {
169 if (this.onClose) { 169 if (this.onClose) {
@@ -488,7 +488,7 @@ export struct AccountAndSecurityLayout { @@ -488,7 +488,7 @@ export struct AccountAndSecurityLayout {
488 this.showToastTip('退出登录') 488 this.showToastTip('退出登录')
489 EmitterUtils.sendEvent(EmitterEventId.FORCE_USER_LOGIN_OUT) 489 EmitterUtils.sendEvent(EmitterEventId.FORCE_USER_LOGIN_OUT)
490 EmitterUtils.sendEvent(EmitterEventId.PEOPLE_SHIP_ATTENTION) 490 EmitterUtils.sendEvent(EmitterEventId.PEOPLE_SHIP_ATTENTION)
491 - router.back(); 491 + router.back(1);
492 }).catch((error:string)=>{ 492 }).catch((error:string)=>{
493 this.showToastTip(error) 493 this.showToastTip(error)
494 }); 494 });
@@ -501,7 +501,7 @@ export struct AccountAndSecurityLayout { @@ -501,7 +501,7 @@ export struct AccountAndSecurityLayout {
501 ToastUtils.shortToast("注销成功") 501 ToastUtils.shortToast("注销成功")
502 EmitterUtils.sendEmptyEvent(EmitterEventId.FORCE_USER_LOGIN_OUT) 502 EmitterUtils.sendEmptyEvent(EmitterEventId.FORCE_USER_LOGIN_OUT)
503 EmitterUtils.sendEmptyEvent(EmitterEventId.PEOPLE_SHIP_ATTENTION) 503 EmitterUtils.sendEmptyEvent(EmitterEventId.PEOPLE_SHIP_ATTENTION)
504 - router.back() 504 + router.back(1)
505 }) 505 })
506 } 506 }
507 507