Showing
1 changed file
with
5 additions
and
5 deletions
| @@ -93,6 +93,11 @@ export struct ZhCarouselLayout01 { | @@ -93,6 +93,11 @@ export struct ZhCarouselLayout01 { | ||
| 93 | item: item, | 93 | item: item, |
| 94 | length: this.compDTO.operDataList.length | 94 | length: this.compDTO.operDataList.length |
| 95 | }) | 95 | }) |
| 96 | + .onClick((event: ClickEvent) => { | ||
| 97 | + InfomationCardClick.track(this.compDTO, item, this.pageId, this.pageName) | ||
| 98 | + Logger.info(TAG, `ZhCarouselLayout01 onClick event index: ${index}`) | ||
| 99 | + ProcessUtils.processPage(item) | ||
| 100 | + }) | ||
| 96 | }) | 101 | }) |
| 97 | } | 102 | } |
| 98 | .borderRadius($r('app.float.image_border_radius')) | 103 | .borderRadius($r('app.float.image_border_radius')) |
| @@ -162,11 +167,6 @@ export struct ZhCarouselLayout01 { | @@ -162,11 +167,6 @@ export struct ZhCarouselLayout01 { | ||
| 162 | }) | 167 | }) |
| 163 | .backgroundColor(0xffffff) | 168 | .backgroundColor(0xffffff) |
| 164 | .width(CommonConstants.FULL_WIDTH) | 169 | .width(CommonConstants.FULL_WIDTH) |
| 165 | - .onClick((event: ClickEvent) => { | ||
| 166 | - InfomationCardClick.track(this.compDTO, this.compDTO.operDataList[this.swiperIndex], this.pageId, this.pageName) | ||
| 167 | - Logger.info(TAG, `ZhCarouselLayout01 onClick event index: ${this.swiperIndex}`); | ||
| 168 | - ProcessUtils.processPage(this.compDTO.operDataList[this.swiperIndex]) | ||
| 169 | - }) | ||
| 170 | } else { | 170 | } else { |
| 171 | EmptyComponent({ emptyHeight: 200 }) | 171 | EmptyComponent({ emptyHeight: 200 }) |
| 172 | } | 172 | } |
-
Please register or login to post a comment