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
张善主
2024-04-28 16:25:44 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6e034cd949c2956daf8688c30da6f2b2858b81d2
6e034cd9
1 parent
e07339af
feat(动态):底部隐藏点赞按钮
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
sight_harmony/features/wdComponent/src/main/ets/components/DynamicDetailComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/view/OperRowListView.ets
sight_harmony/features/wdComponent/src/main/ets/components/DynamicDetailComponent.ets
View file @
6e034cd
...
...
@@ -379,7 +379,8 @@ export struct DynamicDetailComponent {
OperRowListView({ contentDetailData: this.contentDetailData
,interactData:this.interactDataDTO
,newsStatusOfUser:this.newsStatusOfUser
,publishCommentModel: this.publishCommentModel})
,publishCommentModel: this.publishCommentModel
,needLike:false})
}
}
.alignSelf(ItemAlign.Start)
...
...
sight_harmony/features/wdComponent/src/main/ets/components/view/OperRowListView.ets
View file @
6e034cd
...
...
@@ -45,6 +45,7 @@ export struct OperRowListView {
@State interactData: InteractDataDTO = {} as InteractDataDTO
@State newsStatusOfUser: batchLikeAndCollectResult | undefined = undefined // 点赞、收藏状态
@State likeBean: Record<string, string> = {}
needLike: boolean = true
async aboutToAppear() {
const user_id = await SPHelper.default.get(SpConstants.USER_ID, '')
...
...
@@ -90,7 +91,7 @@ export struct OperRowListView {
ForEach(this.operationButtonList, (item: string, index: number) => {
if (item == 'comment') {
this.builderComment()
} else if (item == 'like') {
} else if (item == 'like'
&& this.needLike
) {
this.builderLike()
} else if (item == 'collect') {
this.builderCollect()
...
...
Please
register
or
login
to post a comment