chenqs

fix |> 修复进入大专题卡,少了更多按钮问题

@@ -97,13 +97,13 @@ export struct SpacialTopicPageComponent { @@ -97,13 +97,13 @@ export struct SpacialTopicPageComponent {
97 this.contentDetailData.shareInfo = this.shareInfo 97 this.contentDetailData.shareInfo = this.shareInfo
98 98
99 console.log('contentDetailData111', JSON.stringify(this.contentDetailData)) 99 console.log('contentDetailData111', JSON.stringify(this.contentDetailData))
100 - if(this.topicInfo.shareOpen === 1){  
101 - if (!this.operationButtonList.includes('share')) {  
102 - this.operationButtonList.push('share');  
103 - }  
104 - } else {  
105 - this.operationButtonList = this.operationButtonList.filter(e =>e !== 'share')  
106 - } 100 + // if(this.topicInfo.shareOpen === 1){
  101 + // if (!this.operationButtonList.includes('share')) {
  102 + // this.operationButtonList.push('share');
  103 + // }
  104 + // } else {
  105 + // this.operationButtonList = this.operationButtonList.filter(e =>e !== 'share')
  106 + // }
107 107
108 // 转换评论数据 108 // 转换评论数据
109 this.publishCommentModel.targetId = String(this.contentDetailData?.newsId || '') 109 this.publishCommentModel.targetId = String(this.contentDetailData?.newsId || '')
@@ -96,6 +96,7 @@ export struct OperRowListView { @@ -96,6 +96,7 @@ export struct OperRowListView {
96 @State likesStyle: number | string = 1 // 赞样式 1红心(点赞) 2大拇指(祈福) 3蜡烛(默哀) 4置空 96 @State likesStyle: number | string = 1 // 赞样式 1红心(点赞) 2大拇指(祈福) 3蜡烛(默哀) 4置空
97 @State openLikes: boolean = false // 是否可以点赞 1:可以 0:不可以 97 @State openLikes: boolean = false // 是否可以点赞 1:可以 0:不可以
98 @Prop topicInfo?: TopicInfo = {} as TopicInfo 98 @Prop topicInfo?: TopicInfo = {} as TopicInfo
  99 + private shareOpen = 0;
99 100
100 async aboutToAppear() { 101 async aboutToAppear() {
101 console.info(TAG, 'this.needLike', this.needLike) 102 console.info(TAG, 'this.needLike', this.needLike)
@@ -137,6 +138,7 @@ export struct OperRowListView { @@ -137,6 +138,7 @@ export struct OperRowListView {
137 if (!this.contentDetailData) { 138 if (!this.contentDetailData) {
138 return 139 return
139 } 140 }
  141 + this.shareOpen = this.contentDetailData.shareInfo.shareOpen;
140 const user_id = await SPHelper.default.get(SpConstants.USER_ID, '') 142 const user_id = await SPHelper.default.get(SpConstants.USER_ID, '')
141 if (user_id) { 143 if (user_id) {
142 this.getInteractDataStatus() 144 this.getInteractDataStatus()
@@ -393,10 +395,11 @@ export struct OperRowListView { @@ -393,10 +395,11 @@ export struct OperRowListView {
393 */ 395 */
394 @Builder 396 @Builder
395 builderShare() { 397 builderShare() {
396 - if(this.contentDetailData?.shareInfo?.shareOpen == 1) { 398 +
  399 +
397 Column() { 400 Column() {
398 - Image(this.styleType == 1 ? $r('app.media.iv_live_comment_share') :  
399 - $r('app.media.iv_live_comment_share_white')) 401 + Image(this.styleType == 1 ? (this.shareOpen == 1?$r('app.media.iv_live_comment_share'):$r('app.media.more_icon_black')) :
  402 + (this.shareOpen == 1?$r('app.media.iv_live_comment_share_white'):$r('app.media.more_icon_white')))
400 .width(24) 403 .width(24)
401 .height(24) 404 .height(24)
402 .aspectRatio(1) 405 .aspectRatio(1)
@@ -411,7 +414,9 @@ export struct OperRowListView { @@ -411,7 +414,9 @@ export struct OperRowListView {
411 .borderRadius(18) 414 .borderRadius(18)
412 .backgroundColor(this.pageComponentType === 2 ? '#4D000000' : Color.Transparent) 415 .backgroundColor(this.pageComponentType === 2 ? '#4D000000' : Color.Transparent)
413 } 416 }
414 - } 417 + // if(this.contentDetailData?.shareInfo?.shareOpen == 1) {
  418 + //
  419 + // }
415 420
416 handleStyle() { 421 handleStyle() {
417 if (this.styleType == 1) { 422 if (this.styleType == 1) {
@@ -440,7 +445,7 @@ export struct OperRowListView { @@ -440,7 +445,7 @@ export struct OperRowListView {
440 appCustomTargetRelType: this.topicInfo?.relType, 445 appCustomTargetRelType: this.topicInfo?.relType,
441 appCustomShowReport: false, 446 appCustomShowReport: false,
442 appCustomShowLike: -1, 447 appCustomShowLike: -1,
443 - shareOpen: 1, 448 + shareOpen: this.shareOpen,
444 sharePosterOpen: this.topicInfo?.posterFlag, 449 sharePosterOpen: this.topicInfo?.posterFlag,
445 appCustomShowPoster: this.topicInfo?.posterFlag && this.topicInfo?.posterFlag > 0 ? 1 : -1, 450 appCustomShowPoster: this.topicInfo?.posterFlag && this.topicInfo?.posterFlag > 0 ? 1 : -1,
446 } 451 }