wangyong_wd

专题类型跳转

1 import { CompDTO, slideShows } from 'wdBean'; 1 import { CompDTO, slideShows } from 'wdBean';
2 import { CommonConstants } from 'wdConstant' 2 import { CommonConstants } from 'wdConstant'
3 import { DateTimeUtils } from 'wdKit'; 3 import { DateTimeUtils } from 'wdKit';
4 - 4 +import { ProcessUtils } from '../../utils/ProcessUtils';
5 /** 5 /**
6 * 时间链卡--CompStyle: 09 6 * 时间链卡--CompStyle: 09
7 */ 7 */
@@ -47,10 +47,6 @@ export struct CompStyle_09 { @@ -47,10 +47,6 @@ export struct CompStyle_09 {
47 .borderRadius(3) 47 .borderRadius(3)
48 .justifyContent(FlexAlign.Center) 48 .justifyContent(FlexAlign.Center)
49 .margin({top: 5}) 49 .margin({top: 5})
50 - .onClick(() => {  
51 - // TODO  
52 - console.log('跳转到查看更多的页面')  
53 - })  
54 } 50 }
55 } 51 }
56 .width(CommonConstants.FULL_WIDTH) 52 .width(CommonConstants.FULL_WIDTH)
@@ -62,6 +58,9 @@ export struct CompStyle_09 { @@ -62,6 +58,9 @@ export struct CompStyle_09 {
62 }) 58 })
63 .backgroundColor($r("app.color.white")) 59 .backgroundColor($r("app.color.white"))
64 .margin({ bottom: 8 }) 60 .margin({ bottom: 8 })
  61 + .onClick((event: ClickEvent) => {
  62 + ProcessUtils.processPage(this.compDTO?.operDataList[0])
  63 + })
65 } 64 }
66 65
67 @Builder timelineItem (item:slideShows, index:number) { 66 @Builder timelineItem (item:slideShows, index:number) {
@@ -9,6 +9,10 @@ export class ContentConstants { @@ -9,6 +9,10 @@ export class ContentConstants {
9 */ 9 */
10 static readonly TYPE_VOD: string = "1"; 10 static readonly TYPE_VOD: string = "1";
11 /** 11 /**
  12 + * 5:专题详情
  13 + */
  14 + static readonly TYPE_SPECIAL_TOPIC: string = "5";
  15 + /**
12 * 8:图文详情,这里是h5页面 16 * 8:图文详情,这里是h5页面
13 */ 17 */
14 static readonly TYPE_TELETEXT: string = "8"; 18 static readonly TYPE_TELETEXT: string = "8";
@@ -39,6 +39,10 @@ export class ProcessUtils { @@ -39,6 +39,10 @@ export class ProcessUtils {
39 // 图文详情,跳转h5 39 // 图文详情,跳转h5
40 ProcessUtils.gotoWeb(content); 40 ProcessUtils.gotoWeb(content);
41 break; 41 break;
  42 + case ContentConstants.TYPE_SPECIAL_TOPIC:
  43 + // 专题详情,跳转h5
  44 + // ProcessUtils.gotoWeb(content);
  45 + break;
42 default: 46 default:
43 break; 47 break;
44 } 48 }