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-08-06 15:46:59 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
700a4c3c85470c1be9960ba1e214813903da298d
700a4c3c
1 parent
bc32477c
feat:优化点赞,评论判断逻辑
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
sight_harmony/features/wdComponent/src/main/ets/components/H5NewsWebPageComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/view/OperRowListView.ets
sight_harmony/features/wdComponent/src/main/ets/components/H5NewsWebPageComponent.ets
View file @
700a4c3
...
...
@@ -159,11 +159,21 @@ export struct H5NewsWebPageComponent {
this.publishCommentModel.targetType = String(this.contentDetailData?.newsType || '')
this.publishCommentModel.visitorComment = String(this.contentDetailData?.visitorComment || '')
}
this.operationButtonList = []
if ( this.contentDetailData.openComment === 1) {
this.operationButtonList.push('comment')
}
if (this.contentDetailData.openLikes === 1) {
this.operationButtonList.push('like')
}
if (this.contentDetailData?.openAudio && this.contentDetailData?.audioList?.length &&
this.contentDetailData?.audioList[0].audioUrl) {
this.operationButtonList = ['comment', 'collect', 'listen', 'share']
} else {
this.operationButtonList = ['comment', 'collect', 'share']
this.operationButtonList.push('listen')
}
this.operationButtonList.push('collect')
if (this.contentDetailData.shareInfo?.shareOpen === 1) {
this.operationButtonList.push('share')
}
}
}
...
...
sight_harmony/features/wdComponent/src/main/ets/components/view/OperRowListView.ets
View file @
700a4c3
...
...
@@ -325,7 +325,7 @@ export struct OperRowListView {
LikeComponent({
data: this.likeBean,
styleType: this.styleType,
componentType:
this.componentType
,
componentType:
5
,
pageComponentType: this.pageComponentType
})
}
...
...
Please
register
or
login
to post a comment