Showing
2 changed files
with
14 additions
and
4 deletions
| @@ -159,11 +159,21 @@ export struct H5NewsWebPageComponent { | @@ -159,11 +159,21 @@ export struct H5NewsWebPageComponent { | ||
| 159 | this.publishCommentModel.targetType = String(this.contentDetailData?.newsType || '') | 159 | this.publishCommentModel.targetType = String(this.contentDetailData?.newsType || '') |
| 160 | this.publishCommentModel.visitorComment = String(this.contentDetailData?.visitorComment || '') | 160 | this.publishCommentModel.visitorComment = String(this.contentDetailData?.visitorComment || '') |
| 161 | } | 161 | } |
| 162 | + | ||
| 163 | + this.operationButtonList = [] | ||
| 164 | + if ( this.contentDetailData.openComment === 1) { | ||
| 165 | + this.operationButtonList.push('comment') | ||
| 166 | + } | ||
| 167 | + if (this.contentDetailData.openLikes === 1) { | ||
| 168 | + this.operationButtonList.push('like') | ||
| 169 | + } | ||
| 162 | if (this.contentDetailData?.openAudio && this.contentDetailData?.audioList?.length && | 170 | if (this.contentDetailData?.openAudio && this.contentDetailData?.audioList?.length && |
| 163 | this.contentDetailData?.audioList[0].audioUrl) { | 171 | this.contentDetailData?.audioList[0].audioUrl) { |
| 164 | - this.operationButtonList = ['comment', 'collect', 'listen', 'share'] | ||
| 165 | - } else { | ||
| 166 | - this.operationButtonList = ['comment', 'collect', 'share'] | 172 | + this.operationButtonList.push('listen') |
| 173 | + } | ||
| 174 | + this.operationButtonList.push('collect') | ||
| 175 | + if (this.contentDetailData.shareInfo?.shareOpen === 1) { | ||
| 176 | + this.operationButtonList.push('share') | ||
| 167 | } | 177 | } |
| 168 | } | 178 | } |
| 169 | } | 179 | } |
| @@ -325,7 +325,7 @@ export struct OperRowListView { | @@ -325,7 +325,7 @@ export struct OperRowListView { | ||
| 325 | LikeComponent({ | 325 | LikeComponent({ |
| 326 | data: this.likeBean, | 326 | data: this.likeBean, |
| 327 | styleType: this.styleType, | 327 | styleType: this.styleType, |
| 328 | - componentType: this.componentType, | 328 | + componentType: 5, |
| 329 | pageComponentType: this.pageComponentType | 329 | pageComponentType: this.pageComponentType |
| 330 | }) | 330 | }) |
| 331 | } | 331 | } |
-
Please register or login to post a comment