ref |> 进入视频直播,未登录点击评论,进入全部评论页,点击点赞、收藏 登录弹窗被遮挡
Signed-off-by: xugenyuan <xugenyuan@wondertek.com.cn>
Showing
3 changed files
with
9 additions
and
2 deletions
| @@ -132,6 +132,9 @@ struct CommentListDialog { | @@ -132,6 +132,9 @@ struct CommentListDialog { | ||
| 132 | inDialog: true, | 132 | inDialog: true, |
| 133 | dialogBeforeJumpOtherPageAction: () => { | 133 | dialogBeforeJumpOtherPageAction: () => { |
| 134 | // PublicDialogManager.shareInstance().closeLastDialog() | 134 | // PublicDialogManager.shareInstance().closeLastDialog() |
| 135 | + if (this.onClose) { | ||
| 136 | + this.onClose() | ||
| 137 | + } | ||
| 135 | } | 138 | } |
| 136 | }) | 139 | }) |
| 137 | } | 140 | } |
| @@ -35,6 +35,7 @@ export struct LikeComponent { | @@ -35,6 +35,7 @@ export struct LikeComponent { | ||
| 35 | pageParam: ParamType = {} | 35 | pageParam: ParamType = {} |
| 36 | @Consume pageName: string | 36 | @Consume pageName: string |
| 37 | @Consume pageId: string | 37 | @Consume pageId: string |
| 38 | + private dialogBeforeJumpOtherPageAction: () => void = () => {} | ||
| 38 | 39 | ||
| 39 | //上层传值 样例 | 40 | //上层传值 样例 |
| 40 | // this.data['contentId'] = '30035444649' //必须 | 41 | // this.data['contentId'] = '30035444649' //必须 |
| @@ -403,6 +404,7 @@ export struct LikeComponent { | @@ -403,6 +404,7 @@ export struct LikeComponent { | ||
| 403 | const user_id = await SPHelper.default.get(SpConstants.USER_ID, '') | 404 | const user_id = await SPHelper.default.get(SpConstants.USER_ID, '') |
| 404 | if (!user_id) { | 405 | if (!user_id) { |
| 405 | console.log(TAG, '点赞点击,未登录') | 406 | console.log(TAG, '点赞点击,未登录') |
| 407 | + if (this.dialogBeforeJumpOtherPageAction) { this.dialogBeforeJumpOtherPageAction() } | ||
| 406 | WDRouterRule.jumpWithPage(WDRouterPage.loginPage) | 408 | WDRouterRule.jumpWithPage(WDRouterPage.loginPage) |
| 407 | return | 409 | return |
| 408 | } | 410 | } |
| @@ -326,7 +326,8 @@ export struct OperRowListView { | @@ -326,7 +326,8 @@ export struct OperRowListView { | ||
| 326 | data: this.likeBean, | 326 | data: this.likeBean, |
| 327 | styleType: this.styleType, | 327 | styleType: this.styleType, |
| 328 | componentType: 6, | 328 | componentType: 6, |
| 329 | - pageComponentType: this.pageComponentType | 329 | + pageComponentType: this.pageComponentType, |
| 330 | + dialogBeforeJumpOtherPageAction: this.dialogBeforeJumpOtherPageAction | ||
| 330 | }) | 331 | }) |
| 331 | } | 332 | } |
| 332 | .width(48) | 333 | .width(48) |
| @@ -491,6 +492,7 @@ export struct OperRowListView { | @@ -491,6 +492,7 @@ export struct OperRowListView { | ||
| 491 | console.log(TAG, '收藏点击,登录', user_id) | 492 | console.log(TAG, '收藏点击,登录', user_id) |
| 492 | if (!user_id) { | 493 | if (!user_id) { |
| 493 | console.log(TAG, '收藏点击,用户未登录') | 494 | console.log(TAG, '收藏点击,用户未登录') |
| 495 | + if (this.dialogBeforeJumpOtherPageAction) { this.dialogBeforeJumpOtherPageAction() } | ||
| 494 | WDRouterRule.jumpWithPage(WDRouterPage.loginPage) | 496 | WDRouterRule.jumpWithPage(WDRouterPage.loginPage) |
| 495 | return | 497 | return |
| 496 | } | 498 | } |
| @@ -550,4 +552,4 @@ export struct OperRowListView { | @@ -550,4 +552,4 @@ export struct OperRowListView { | ||
| 550 | console.log(TAG, 'this.publishCommentModel', JSON.stringify(this.publishCommentModel)) | 552 | console.log(TAG, 'this.publishCommentModel', JSON.stringify(this.publishCommentModel)) |
| 551 | }) | 553 | }) |
| 552 | } | 554 | } |
| 553 | -} | ||
| 555 | +} |
-
Please register or login to post a comment