daijian_wd

fix: 解决收藏bug

@@ -23,6 +23,7 @@ export struct SpacialTopicPageComponent { @@ -23,6 +23,7 @@ export struct SpacialTopicPageComponent {
23 private webPrepared = false; 23 private webPrepared = false;
24 private dataPrepared = false; 24 private dataPrepared = false;
25 @State publishCommentModel: publishCommentModel = new publishCommentModel() 25 @State publishCommentModel: publishCommentModel = new publishCommentModel()
  26 + @State operationButtonList: string[] = ['comment', 'collect', 'share']
26 27
27 private trySendData2H5() { 28 private trySendData2H5() {
28 if (!this.webPrepared || !this.dataPrepared) { 29 if (!this.webPrepared || !this.dataPrepared) {
@@ -63,7 +64,7 @@ export struct SpacialTopicPageComponent { @@ -63,7 +64,7 @@ export struct SpacialTopicPageComponent {
63 let detailBeans = await DetailViewModel.getDetailPageData(relId, contentId, relType) 64 let detailBeans = await DetailViewModel.getDetailPageData(relId, contentId, relType)
64 if (detailBeans && detailBeans.length > 0) { 65 if (detailBeans && detailBeans.length > 0) {
65 this.contentDetailData = detailBeans; 66 this.contentDetailData = detailBeans;
66 - if (this.contentDetailData[0]?.openComment) { 67 + // if (this.contentDetailData[0]?.openComment) {
67 this.publishCommentModel.targetId = String(this.contentDetailData[0]?.newsId || '') 68 this.publishCommentModel.targetId = String(this.contentDetailData[0]?.newsId || '')
68 this.publishCommentModel.targetRelId = String(this.contentDetailData[0]?.reLInfo?.relId) 69 this.publishCommentModel.targetRelId = String(this.contentDetailData[0]?.reLInfo?.relId)
69 this.publishCommentModel.targetTitle = this.contentDetailData[0]?.newsTitle 70 this.publishCommentModel.targetTitle = this.contentDetailData[0]?.newsTitle
@@ -71,7 +72,7 @@ export struct SpacialTopicPageComponent { @@ -71,7 +72,7 @@ export struct SpacialTopicPageComponent {
71 this.publishCommentModel.targetRelObjectId = String(this.contentDetailData[0]?.reLInfo?.relObjectId) 72 this.publishCommentModel.targetRelObjectId = String(this.contentDetailData[0]?.reLInfo?.relObjectId)
72 this.publishCommentModel.keyArticle = String(this.contentDetailData[0]?.keyArticle) 73 this.publishCommentModel.keyArticle = String(this.contentDetailData[0]?.keyArticle)
73 this.publishCommentModel.targetType = String(this.contentDetailData[0]?.newsType) 74 this.publishCommentModel.targetType = String(this.contentDetailData[0]?.newsType)
74 - } 75 + // }
75 this.trySendData2H5() 76 this.trySendData2H5()
76 } 77 }
77 } 78 }
@@ -98,7 +99,8 @@ export struct SpacialTopicPageComponent { @@ -98,7 +99,8 @@ export struct SpacialTopicPageComponent {
98 //底部交互区 99 //底部交互区
99 OperRowListView({ 100 OperRowListView({
100 contentDetailData: this.contentDetailData[0], 101 contentDetailData: this.contentDetailData[0],
101 - publishCommentModel: this.publishCommentModel 102 + publishCommentModel: this.publishCommentModel,
  103 + operationButtonList: this.operationButtonList,
102 }) 104 })
103 } 105 }
104 }.width(CommonConstants.FULL_WIDTH).height(CommonConstants.FULL_HEIGHT) 106 }.width(CommonConstants.FULL_WIDTH).height(CommonConstants.FULL_HEIGHT)
@@ -184,8 +184,7 @@ export struct OperRowListView { @@ -184,8 +184,7 @@ export struct OperRowListView {
184 builderCollect() { 184 builderCollect() {
185 Column() { 185 Column() {
186 Stack({ alignContent: Alignment.TopEnd }) { 186 Stack({ alignContent: Alignment.TopEnd }) {
187 - Image(this.newsStatusOfUser?.collectStatus == 1 ? $r('app.media.ic_collect_check') :  
188 - $r('app.media.iv_live_comment_collect_un')) 187 + Image(this.newsStatusOfUser?.collectStatus == 1 ? $r('app.media.ic_collect_check1') : $r('app.media.iv_live_comment_collect_un'))
189 .width(24) 188 .width(24)
190 .height(24) 189 .height(24)
191 .interpolation(ImageInterpolation.High) 190 .interpolation(ImageInterpolation.High)