wangyong_wd

动态图文和视频加跳转逻辑

1 import { ContentDTO, FullColumnImgUrlDTO } from 'wdBean'; 1 import { ContentDTO, FullColumnImgUrlDTO } from 'wdBean';
2 import { RmhTitle } from '../cardCommon/RmhTitle' 2 import { RmhTitle } from '../cardCommon/RmhTitle'
3 - 3 +import { ProcessUtils } from '../../utils/ProcessUtils';
4 const TAG = 'Card19Component'; 4 const TAG = 'Card19Component';
5 5
6 /** 6 /**
@@ -94,6 +94,9 @@ export struct Card19Component { @@ -94,6 +94,9 @@ export struct Card19Component {
94 top: $r('app.float.card_comp_pagePadding_tb'), 94 top: $r('app.float.card_comp_pagePadding_tb'),
95 bottom: $r('app.float.card_comp_pagePadding_tb') 95 bottom: $r('app.float.card_comp_pagePadding_tb')
96 }) 96 })
  97 + .onClick((event: ClickEvent) => {
  98 + ProcessUtils.processPage(this.contentDTO)
  99 + })
97 } 100 }
98 } 101 }
99 102
@@ -2,7 +2,7 @@ import { ContentDTO } from 'wdBean'; @@ -2,7 +2,7 @@ import { ContentDTO } from 'wdBean';
2 import { RmhTitle } from '../cardCommon/RmhTitle' 2 import { RmhTitle } from '../cardCommon/RmhTitle'
3 import { CardMediaInfo } from '../cardCommon/CardMediaInfo' 3 import { CardMediaInfo } from '../cardCommon/CardMediaInfo'
4 import { CommonConstants } from 'wdConstant/Index'; 4 import { CommonConstants } from 'wdConstant/Index';
5 - 5 +import { ProcessUtils } from '../../utils/ProcessUtils';
6 const TAG = 'Card20Component'; 6 const TAG = 'Card20Component';
7 7
8 /** 8 /**
@@ -71,6 +71,9 @@ export struct Card20Component { @@ -71,6 +71,9 @@ export struct Card20Component {
71 top: $r('app.float.card_comp_pagePadding_tb'), 71 top: $r('app.float.card_comp_pagePadding_tb'),
72 bottom: $r('app.float.card_comp_pagePadding_tb') 72 bottom: $r('app.float.card_comp_pagePadding_tb')
73 }) 73 })
  74 + .onClick((event: ClickEvent) => {
  75 + ProcessUtils.processPage(this.contentDTO)
  76 + })
74 } 77 }
75 } 78 }
76 79