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-10-14 10:38:20 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b11e9164a94389deaacb8a3e19096552a307c6f9
b11e9164
1 parent
c83bb4a9
feat:优化评论列表重复点击问题
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
sight_harmony/features/wdComponent/src/main/ets/components/comment/view/CommentComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/comment/view/CommentComponent.ets
View file @
b11e916
...
...
@@ -681,6 +681,7 @@ struct commentHeaderView {
@Consume inDialog: boolean
private dialogBeforeJumpOtherPageAction: () => void = () => {}
private leftGap: number = 64
@State isCanClickHeader:boolean = true
build() {
Column() {
...
...
@@ -800,12 +801,20 @@ struct commentHeaderView {
.margin({ left: 8 + 4 })
.alignContent(Alignment.Center)
.onClick(() => {
if (this.isCanClickHeader === true){
this.isCanClickHeader = false
commentViewModel.jumpToAccountPage(this.item, () => {
if (this.inDialog) {
if (this.dialogBeforeJumpOtherPageAction) { this.dialogBeforeJumpOtherPageAction() }
}
})
commentViewModel.jumpToAccountPage(this.item, () => {
if (this.inDialog) {
if (this.dialogBeforeJumpOtherPageAction) { this.dialogBeforeJumpOtherPageAction() }
}
})
}
let timer = setInterval(() => {
this.isCanClickHeader = true
clearInterval(timer);
}, 1000);
})
}
...
...
Please
register
or
login
to post a comment