Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
wangliang_wd
2024-09-03 15:32:14 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
210cc7bdf1316136ffd166103dae0c6fcc411db9
210cc7bd
1 parent
71a44048
feat:优化专题收藏
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
1 deletions
sight_harmony/features/wdComponent/src/main/ets/components/page/AppointmentListPage.ets
sight_harmony/features/wdComponent/src/main/ets/components/view/OperRowListView.ets
sight_harmony/features/wdComponent/src/main/ets/components/page/AppointmentListPage.ets
View file @
210cc7b
...
...
@@ -31,6 +31,7 @@ struct AppointmentListPage {
}
}.width("100%")
.height("100%")
.backgroundColor(Color.White)
.padding({top:px2vp(this.topSafeHeight),bottom:px2vp(this.bottomSafeHeight)})
}
...
...
sight_harmony/features/wdComponent/src/main/ets/components/view/OperRowListView.ets
View file @
210cc7b
...
...
@@ -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) {
...
...
Please
register
or
login
to post a comment