wangliang_wd

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

... ... @@ -133,8 +133,8 @@ export struct CommentComponent {
Image($r('app.media.comment_close'))
.height(16)
.width(16)
.height(18)
.width(18)
.margin({ right: 16 })
.visibility(this.showCloseIcon ? Visibility.Visible : Visibility.Hidden)
.onClick(() => {
... ...
... ... @@ -162,8 +162,8 @@ struct CommentListDialog {
.margin({ left: 16 })
Image($r('app.media.comment_close'))
.height(16)
.width(16)
.height(18)
.width(18)
.margin({ right: 16 })// .visibility(this.showCloseIcon ? Visibility.Visible : Visibility.Hidden)
.onClick(() => {
if (this.onClose) {
... ...
... ... @@ -488,7 +488,7 @@ export struct AccountAndSecurityLayout {
this.showToastTip('退出登录')
EmitterUtils.sendEvent(EmitterEventId.FORCE_USER_LOGIN_OUT)
EmitterUtils.sendEvent(EmitterEventId.PEOPLE_SHIP_ATTENTION)
router.back();
router.back(1);
}).catch((error:string)=>{
this.showToastTip(error)
});
... ... @@ -501,7 +501,7 @@ export struct AccountAndSecurityLayout {
ToastUtils.shortToast("注销成功")
EmitterUtils.sendEmptyEvent(EmitterEventId.FORCE_USER_LOGIN_OUT)
EmitterUtils.sendEmptyEvent(EmitterEventId.PEOPLE_SHIP_ATTENTION)
router.back()
router.back(1)
})
}
... ...