xugenyuan

ref |> 进入视频直播,未登录点击评论,进入全部评论页,点击点赞、收藏 登录弹窗被遮挡

Signed-off-by: xugenyuan <xugenyuan@wondertek.com.cn>
... ... @@ -132,6 +132,9 @@ struct CommentListDialog {
inDialog: true,
dialogBeforeJumpOtherPageAction: () => {
// PublicDialogManager.shareInstance().closeLastDialog()
if (this.onClose) {
this.onClose()
}
}
})
}
... ...
... ... @@ -35,6 +35,7 @@ export struct LikeComponent {
pageParam: ParamType = {}
@Consume pageName: string
@Consume pageId: string
private dialogBeforeJumpOtherPageAction: () => void = () => {}
//上层传值 样例
// this.data['contentId'] = '30035444649' //必须
... ... @@ -403,6 +404,7 @@ export struct LikeComponent {
const user_id = await SPHelper.default.get(SpConstants.USER_ID, '')
if (!user_id) {
console.log(TAG, '点赞点击,未登录')
if (this.dialogBeforeJumpOtherPageAction) { this.dialogBeforeJumpOtherPageAction() }
WDRouterRule.jumpWithPage(WDRouterPage.loginPage)
return
}
... ...
... ... @@ -326,7 +326,8 @@ export struct OperRowListView {
data: this.likeBean,
styleType: this.styleType,
componentType: 6,
pageComponentType: this.pageComponentType
pageComponentType: this.pageComponentType,
dialogBeforeJumpOtherPageAction: this.dialogBeforeJumpOtherPageAction
})
}
.width(48)
... ... @@ -491,6 +492,7 @@ export struct OperRowListView {
console.log(TAG, '收藏点击,登录', user_id)
if (!user_id) {
console.log(TAG, '收藏点击,用户未登录')
if (this.dialogBeforeJumpOtherPageAction) { this.dialogBeforeJumpOtherPageAction() }
WDRouterRule.jumpWithPage(WDRouterPage.loginPage)
return
}
... ... @@ -550,4 +552,4 @@ export struct OperRowListView {
console.log(TAG, 'this.publishCommentModel', JSON.stringify(this.publishCommentModel))
})
}
}
\ No newline at end of file
}
... ...