wangliang_wd

feat:优化专题收藏

@@ -31,6 +31,7 @@ struct AppointmentListPage { @@ -31,6 +31,7 @@ struct AppointmentListPage {
31 } 31 }
32 }.width("100%") 32 }.width("100%")
33 .height("100%") 33 .height("100%")
  34 + .backgroundColor(Color.White)
34 .padding({top:px2vp(this.topSafeHeight),bottom:px2vp(this.bottomSafeHeight)}) 35 .padding({top:px2vp(this.topSafeHeight),bottom:px2vp(this.bottomSafeHeight)})
35 36
36 } 37 }
@@ -498,7 +498,10 @@ export struct OperRowListView { @@ -498,7 +498,10 @@ export struct OperRowListView {
498 WDRouterRule.jumpWithPage(WDRouterPage.loginPage) 498 WDRouterRule.jumpWithPage(WDRouterPage.loginPage)
499 return 499 return
500 } 500 }
501 - const params: postExecuteCollectRecordParams = { 501 +
  502 + let params: postExecuteCollectRecordParams = {} as postExecuteCollectRecordParams
  503 +
  504 + params = {
502 status: this.newsStatusOfUser?.collectStatus === 1 ? '0' : '1', 505 status: this.newsStatusOfUser?.collectStatus === 1 ? '0' : '1',
503 contentList: [{ 506 contentList: [{
504 contentId: this.contentDetailData?.newsId + '', 507 contentId: this.contentDetailData?.newsId + '',
@@ -506,8 +509,21 @@ export struct OperRowListView { @@ -506,8 +509,21 @@ export struct OperRowListView {
506 relType: this.contentDetailData?.reLInfo?.relType || '' + '', 509 relType: this.contentDetailData?.reLInfo?.relType || '' + '',
507 contentRelId: this.contentDetailData?.reLInfo?.relId || '' + '', 510 contentRelId: this.contentDetailData?.reLInfo?.relId || '' + '',
508 }], 511 }],
  512 + }
509 513
  514 + //专题
  515 + if (this.topicInfo && Object.keys(this.topicInfo).length > 0){
  516 + params = {
  517 + status: this.newsStatusOfUser?.collectStatus === 1 ? '0' : '1',
  518 + contentList: [{
  519 + contentId: this.topicInfo?.topicId + '',
  520 + contentType: '5',
  521 + relType: this.topicInfo?.relType || '' + '',
  522 + contentRelId: this.topicInfo?.relId || '' + '',
  523 + }],
  524 + }
510 } 525 }
  526 +
511 console.log(TAG, '收藏点击', JSON.stringify(params)) 527 console.log(TAG, '收藏点击', JSON.stringify(params))
512 PageRepository.postExecuteCollectRecord(params).then(res => { 528 PageRepository.postExecuteCollectRecord(params).then(res => {
513 if (this.newsStatusOfUser) { 529 if (this.newsStatusOfUser) {