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-06 17:57:54 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b11a834e4e02ca8ef324aaec1bcabf08fcfeafb7
b11a834e
1 parent
62e81ec5
fix: 16813 精选评论卡,点击点赞按钮没有反应;爱心和android 展示不一致
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
sight_harmony/features/wdComponent/src/main/ets/components/compview/ZhSingleRow06.ets
sight_harmony/features/wdComponent/src/main/ets/components/compview/ZhSingleRow06.ets
View file @
b11a834
...
...
@@ -30,6 +30,7 @@ const TAG = 'Zh_Single_Row-06'
@Component
export struct ZhSingleRow06 {
@State compDTO: CompDTO = {} as CompDTO
@State likeBl: boolean = false;
build() {
Column() {
...
...
@@ -81,7 +82,7 @@ export struct ZhSingleRow06 {
.fontColor(0x999999)
Row(){
Image(
$r('app.media.icon_like_no
'))
Image(
this.likeBl ? $r('app.media.icon_like_select') : $r('app.media.icon_like
'))
.width(16)
.height(16)
.margin({right: 3})
...
...
@@ -90,6 +91,13 @@ export struct ZhSingleRow06 {
.fontSize(14)
.fontColor(0x999999)
}
.onClick(() => {
if (this.likeBl) {
this.likeBl = false;
} else {
this.likeBl = true;
}
})
}
.justifyContent(FlexAlign.SpaceBetween)
.width('100%')
...
...
Please
register
or
login
to post a comment