wangyong_wd

头图卡添加跳转事件

1 import { CompDTO } from 'wdBean'; 1 import { CompDTO } from 'wdBean';
2 import { CommonConstants } from 'wdConstant'; 2 import { CommonConstants } from 'wdConstant';
  3 +import { ProcessUtils } from '../../utils/ProcessUtils';
3 4
4 @Component 5 @Component
5 export struct HeadPictureCardComponent { 6 export struct HeadPictureCardComponent {
@@ -40,5 +41,8 @@ export struct HeadPictureCardComponent { @@ -40,5 +41,8 @@ export struct HeadPictureCardComponent {
40 .height(200) 41 .height(200)
41 .padding( 42 .padding(
42 { top: 16, bottom: 16, left: 14, right: 14 }) 43 { top: 16, bottom: 16, left: 14, right: 14 })
  44 + .onClick((event: ClickEvent) => {
  45 + ProcessUtils.processPage(this.compDTO?.operDataList[0])
  46 + })
43 } 47 }
44 } 48 }