wangliang_wd

feat:优化评论列表重复点击问题

@@ -681,6 +681,7 @@ struct commentHeaderView { @@ -681,6 +681,7 @@ struct commentHeaderView {
681 @Consume inDialog: boolean 681 @Consume inDialog: boolean
682 private dialogBeforeJumpOtherPageAction: () => void = () => {} 682 private dialogBeforeJumpOtherPageAction: () => void = () => {}
683 private leftGap: number = 64 683 private leftGap: number = 64
  684 + @State isCanClickHeader:boolean = true
684 685
685 build() { 686 build() {
686 Column() { 687 Column() {
@@ -800,12 +801,20 @@ struct commentHeaderView { @@ -800,12 +801,20 @@ struct commentHeaderView {
800 .margin({ left: 8 + 4 }) 801 .margin({ left: 8 + 4 })
801 .alignContent(Alignment.Center) 802 .alignContent(Alignment.Center)
802 .onClick(() => { 803 .onClick(() => {
  804 + if (this.isCanClickHeader === true){
  805 + this.isCanClickHeader = false
803 806
804 commentViewModel.jumpToAccountPage(this.item, () => { 807 commentViewModel.jumpToAccountPage(this.item, () => {
805 if (this.inDialog) { 808 if (this.inDialog) {
806 if (this.dialogBeforeJumpOtherPageAction) { this.dialogBeforeJumpOtherPageAction() } 809 if (this.dialogBeforeJumpOtherPageAction) { this.dialogBeforeJumpOtherPageAction() }
807 } 810 }
808 }) 811 })
  812 +
  813 + }
  814 + let timer = setInterval(() => {
  815 + this.isCanClickHeader = true
  816 + clearInterval(timer);
  817 + }, 1000);
809 }) 818 })
810 } 819 }
811 820