wangliang_wd

feat:优化专题收藏

... ... @@ -31,6 +31,7 @@ struct AppointmentListPage {
}
}.width("100%")
.height("100%")
.backgroundColor(Color.White)
.padding({top:px2vp(this.topSafeHeight),bottom:px2vp(this.bottomSafeHeight)})
}
... ...
... ... @@ -498,7 +498,10 @@ export struct OperRowListView {
WDRouterRule.jumpWithPage(WDRouterPage.loginPage)
return
}
const params: postExecuteCollectRecordParams = {
let params: postExecuteCollectRecordParams = {} as postExecuteCollectRecordParams
params = {
status: this.newsStatusOfUser?.collectStatus === 1 ? '0' : '1',
contentList: [{
contentId: this.contentDetailData?.newsId + '',
... ... @@ -506,8 +509,21 @@ export struct OperRowListView {
relType: this.contentDetailData?.reLInfo?.relType || '' + '',
contentRelId: this.contentDetailData?.reLInfo?.relId || '' + '',
}],
}
//专题
if (this.topicInfo && Object.keys(this.topicInfo).length > 0){
params = {
status: this.newsStatusOfUser?.collectStatus === 1 ? '0' : '1',
contentList: [{
contentId: this.topicInfo?.topicId + '',
contentType: '5',
relType: this.topicInfo?.relType || '' + '',
contentRelId: this.topicInfo?.relId || '' + '',
}],
}
}
console.log(TAG, '收藏点击', JSON.stringify(params))
PageRepository.postExecuteCollectRecord(params).then(res => {
if (this.newsStatusOfUser) {
... ...