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-05-27 16:50:55 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6a0492f9e41195ddb967fcfb3ffbfb61c3a393bd
6a0492f9
1 parent
320cdfdf
全局规则-人民号管理端关闭稿件点赞开关,视频、图集、动态稿件不应展示点赞按钮
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/view/PlayerRightView.ets
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/view/PlayerRightView.ets
View file @
6a0492f
...
...
@@ -37,10 +37,14 @@ export struct PlayerRightView {
@Consume showCommentList: boolean
@Consume displayDirection: DisplayDirection
@Consume publishCommentModel: publishCommentModel
@State likesStyle: number = this.contentDetailData.likesStyle // 赞样式 1红心(点赞) 2大拇指(祈福) 3蜡烛(默哀) 4置空
@State likesStyle: number | string = 1 // 赞样式 1红心(点赞) 2大拇指(祈福) 3蜡烛(默哀) 4置空
@State openLikes: boolean = false // 是否可以点赞 1:可以 0:不可以
aboutToAppear() {
// 内容用 点赞样式 1红心(点赞) 2大拇指(祈福) 3蜡烛(默哀) 4置空
this.likesStyle = this.contentDetailData.likesStyle
this.openLikes = this.contentDetailData.openLikes == 1 ? true : false
// console.log(TAG, 'this.likesStyle', this.likesStyle)
// console.log(TAG, 'this.openLikes', this.openLikes)
}
/**
...
...
@@ -299,7 +303,7 @@ export struct PlayerRightView {
.margin({ top: 2 })
}
.margin({ bottom: 20 })
.visibility(this.likesStyle
!== 4 ? Visibility.Visible : Visibility.Non
e)
.visibility(this.likesStyle
== 4 || this.likesStyle == 'empty' || !this.openLikes ? Visibility.None : Visibility.Visibl
e)
.onClick(() => {
// TODO:点赞动画
this.toggleLikeStatus()
...
...
Please
register
or
login
to post a comment