chengen02

-fix 分享按钮展示bug修复

@@ -128,6 +128,7 @@ export struct SpacialTopicPageComponent { @@ -128,6 +128,7 @@ export struct SpacialTopicPageComponent {
128 this.publishCommentModel.keyArticle = String(this.contentDetailData?.keyArticle || '') 128 this.publishCommentModel.keyArticle = String(this.contentDetailData?.keyArticle || '')
129 this.publishCommentModel.targetType = String(this.contentDetailData?.newsType || '') 129 this.publishCommentModel.targetType = String(this.contentDetailData?.newsType || '')
130 this.publishCommentModel.visitorComment = String(this.contentDetailData?.visitorComment || '') 130 this.publishCommentModel.visitorComment = String(this.contentDetailData?.visitorComment || '')
  131 +
131 // } 132 // }
132 this.subjectData = 'dasdasdadas' 133 this.subjectData = 'dasdasdadas'
133 134
@@ -135,8 +136,15 @@ export struct SpacialTopicPageComponent { @@ -135,8 +136,15 @@ export struct SpacialTopicPageComponent {
135 // this.trySendData2H5() 136 // this.trySendData2H5()
136 } 137 }
137 if(pageInfoMsg && pageInfoMsg.data){ 138 if(pageInfoMsg && pageInfoMsg.data){
138 - this.contentDetailData.openComment = Number(pageInfoMsg.data.topicInfo.commentFlag)  
139 - this.contentDetailData.commentDisplay = Number(pageInfoMsg.data.topicInfo.commentShowFlag) 139 + this.contentDetailData.openComment = Number(pageInfoMsg.data.topicInfo?.commentFlag)
  140 + this.contentDetailData.commentDisplay = Number(pageInfoMsg.data.topicInfo?.commentShowFlag)
  141 + if(pageInfoMsg.data.topicInfo?.shareOpen === 1){
  142 + if (!this.operationButtonList.includes('share')) {
  143 + this.operationButtonList.push('share');
  144 + }
  145 + }else{
  146 + this.operationButtonList = this.operationButtonList.filter(e =>e !== 'share')
  147 + }
140 } 148 }
141 149
142 console.log('contentDetailData',this.contentDetailData) 150 console.log('contentDetailData',this.contentDetailData)
@@ -194,6 +202,7 @@ export struct SpacialTopicPageComponent { @@ -194,6 +202,7 @@ export struct SpacialTopicPageComponent {
194 this.showCommentList = true 202 this.showCommentList = true
195 } 203 }
196 }) 204 })
  205 + //全部评论
197 CommentDialogView({ 206 CommentDialogView({
198 index: $index, 207 index: $index,
199 currentIndex: $currentIndex, 208 currentIndex: $currentIndex,