Showing
1 changed file
with
2 additions
and
1 deletions
| @@ -104,11 +104,12 @@ export struct DynamicDetailComponent { | @@ -104,11 +104,12 @@ export struct DynamicDetailComponent { | ||
| 104 | // @Provide bottomSafeHeight: number = AppStorage.get<number>('bottomSafeHeight') || 0 | 104 | // @Provide bottomSafeHeight: number = AppStorage.get<number>('bottomSafeHeight') || 0 |
| 105 | @Provide topSafeHeight: number = AppStorage.get<number>('topSafeHeight') || 0 | 105 | @Provide topSafeHeight: number = AppStorage.get<number>('topSafeHeight') || 0 |
| 106 | async aboutToAppear() { | 106 | async aboutToAppear() { |
| 107 | + this.pageRmhPlatform = this.action.params?.extra?.rmhPlatform || 2; | ||
| 108 | + | ||
| 107 | await this.getContentDetailData() | 109 | await this.getContentDetailData() |
| 108 | // 内容用 点赞样式 1红心(点赞) 2大拇指(祈福) 3蜡烛(默哀) 4置空 | 110 | // 内容用 点赞样式 1红心(点赞) 2大拇指(祈福) 3蜡烛(默哀) 4置空 |
| 109 | this.likesStyle = this.contentDetailData.likesStyle | 111 | this.likesStyle = this.contentDetailData.likesStyle |
| 110 | this.openLikes = this.contentDetailData.openLikes == 1 ? true : false | 112 | this.openLikes = this.contentDetailData.openLikes == 1 ? true : false |
| 111 | - this.pageRmhPlatform = this.action.params?.extra?.rmhPlatform || 2; | ||
| 112 | 113 | ||
| 113 | //注册通知,来自别的组件的评论成功通知 | 114 | //注册通知,来自别的组件的评论成功通知 |
| 114 | EmitterUtils.receiveEvent(EmitterEventId.COMMENT_PUBLISH, (targetId?: string) => { | 115 | EmitterUtils.receiveEvent(EmitterEventId.COMMENT_PUBLISH, (targetId?: string) => { |
-
Please register or login to post a comment