陈剑华

数据联调

@@ -11,6 +11,7 @@ import { @@ -11,6 +11,7 @@ import {
11 } from './view/HorizontalStrokeCardThreeTwoRadioForOneComponent'; 11 } from './view/HorizontalStrokeCardThreeTwoRadioForOneComponent';
12 import { ZhSingleRow02 } from './compview/ZhSingleRow02'; 12 import { ZhSingleRow02 } from './compview/ZhSingleRow02';
13 import { ZhSingleRow04 } from './compview/ZhSingleRow04'; 13 import { ZhSingleRow04 } from './compview/ZhSingleRow04';
  14 +import { ZhSingleRow05 } from './compview/ZhSingleRow05';
14 import { ZhSingleRow06 } from './compview/ZhSingleRow06'; 15 import { ZhSingleRow06 } from './compview/ZhSingleRow06';
15 import { ZhSingleColumn04 } from './compview/ZhSingleColumn04'; 16 import { ZhSingleColumn04 } from './compview/ZhSingleColumn04';
16 import { ZhSingleColumn05 } from './compview/ZhSingleColumn05'; 17 import { ZhSingleColumn05 } from './compview/ZhSingleColumn05';
@@ -40,44 +41,56 @@ export struct CompParser { @@ -40,44 +41,56 @@ export struct CompParser {
40 41
41 @Builder 42 @Builder
42 componentBuilder(compDTO: CompDTO, compIndex: number) { 43 componentBuilder(compDTO: CompDTO, compIndex: number) {
43 - if (compDTO.compStyle === CompStyle.Label_03) {  
44 - LabelComponent({ compDTO: compDTO })  
45 - } else if (compDTO.compStyle === CompStyle.Zh_Carousel_Layout_01) {  
46 - BannerComponent({ compDTO: compDTO })  
47 - } else if (compDTO.compStyle === CompStyle.Zh_Single_Row_01 && compDTO.imageScale === 2) {  
48 - LiveHorizontalCardComponent({ compDTO: compDTO })  
49 - } else if (compDTO.compStyle === CompStyle.Zh_Single_Row_01 && compDTO.imageScale === 3) {  
50 - if (compDTO.operDataList.length > 1) {  
51 - HorizontalStrokeCardThreeTwoRadioForMoreComponent({ compDTO: compDTO })  
52 - } else {  
53 - HorizontalStrokeCardThreeTwoRadioForOneComponent({ compDTO: compDTO }) 44 + if (compDTO.operDataList[0]?.objectType !== '3' && compDTO.operDataList[0]?.objectType !== '13') { //暂时屏蔽活动和音频详情入口
  45 + if (compDTO.compStyle === CompStyle.Label_03) {
  46 + LabelComponent({ compDTO: compDTO })
  47 + } else if (compDTO.compStyle === CompStyle.Zh_Carousel_Layout_01) {
  48 + BannerComponent({ compDTO: compDTO })
  49 + } else if (compDTO.compStyle === CompStyle.Zh_Single_Row_01 && compDTO.imageScale === 2) {
  50 + LiveHorizontalCardComponent({ compDTO: compDTO })
  51 + } else if (compDTO.compStyle === CompStyle.Zh_Single_Row_01 && compDTO.imageScale === 3) {
  52 + if (compDTO.operDataList.length > 1) {
  53 + HorizontalStrokeCardThreeTwoRadioForMoreComponent({ compDTO: compDTO })
  54 + } else {
  55 + HorizontalStrokeCardThreeTwoRadioForOneComponent({ compDTO: compDTO })
  56 + }
  57 + } else if (compDTO.compStyle === CompStyle.Zh_Single_Row_02) {
  58 + ZhSingleRow02({ compDTO })
  59 + } else if (compDTO.compStyle === CompStyle.Zh_Single_Row_03) {
  60 + LiveHorizontalReservationComponent({ compDTO: compDTO })
  61 + } else if (compDTO.compStyle === CompStyle.Zh_Grid_Layout_02) {
  62 + ZhGridLayout02({ compDTO: compDTO })
  63 + } else if (compDTO.compStyle === CompStyle.Zh_Grid_Layout_03) {
  64 + ZhGridLayout03({ compDTO: compDTO })
  65 + } else if (compDTO.compStyle === CompStyle.Zh_Single_Row_04) {
  66 + ZhSingleRow04({ compDTO: compDTO })
  67 + } else if (compDTO.compStyle === CompStyle.Zh_Single_Row_05) {
  68 + ZhSingleRow05({ compDTO })
  69 + } else if (compDTO.compStyle === CompStyle.Zh_Single_Row_06) {
  70 + ZhSingleRow06({ compDTO })
  71 + } else if (compDTO.compStyle === CompStyle.Zh_Single_Column_02) {
  72 + //头图卡 和comStyle 2相同,
  73 + Card5Component({ contentDTO: compDTO.operDataList[0] })
  74 + } else if (compDTO.compStyle === CompStyle.Zh_Single_Column_04) {
  75 + ZhSingleColumn04({ compDTO: compDTO })
  76 + } else if (compDTO.compStyle === CompStyle.Zh_Single_Column_05) {
  77 + ZhSingleColumn05({ compDTO: compDTO })
  78 + } else if (compDTO.compStyle === CompStyle.Zh_Single_Column_09) {
  79 + ZhSingleColumn09({ compDTO })
  80 + } else if (!Number.isNaN(Number(compDTO.compStyle))) {
  81 + CardParser({ contentDTO: compDTO.operDataList[0] });
54 } 82 }
55 - } else if (compDTO.compStyle === CompStyle.Zh_Single_Row_02) {  
56 - ZhSingleRow02({ compDTO })  
57 - } else if (compDTO.compStyle === CompStyle.Zh_Single_Row_03) {  
58 - LiveHorizontalReservationComponent({ compDTO: compDTO })  
59 - } else if (compDTO.compStyle === CompStyle.Zh_Grid_Layout_02) {  
60 - ZhGridLayout02({ compDTO: compDTO })  
61 - } else if (compDTO.compStyle === CompStyle.Zh_Grid_Layout_03) {  
62 - ZhGridLayout03({ compDTO: compDTO })  
63 - } else if (compDTO.compStyle === CompStyle.Zh_Single_Row_04) {  
64 - ZhSingleRow04({ compDTO: compDTO })  
65 - } else if (compDTO.compStyle === CompStyle.Zh_Single_Column_02) {  
66 - //头图卡 和comStyle 2相同,  
67 - Card5Component({ contentDTO: compDTO.operDataList[0] })  
68 - } else if (compDTO.compStyle === CompStyle.Zh_Single_Column_04) {  
69 - ZhSingleColumn04({ compDTO: compDTO })  
70 - } else if (compDTO.compStyle === CompStyle.Zh_Single_Column_05) {  
71 - ZhSingleColumn05({ compDTO: compDTO })  
72 - } else if (!Number.isNaN(Number(compDTO.compStyle))) {  
73 - CardParser({ contentDTO: compDTO.operDataList[0] });  
74 - }  
75 - else {  
76 - // todo:组件未实现 / Component Not Implemented  
77 - // Text(compDTO.compStyle)  
78 - // .width(CommonConstants.FULL_PARENT)  
79 - // .padding(10)  
80 - // .backgroundColor(Color.Brown) // 展示本页未实现的compStyle 83 + else {
  84 + Text(compDTO.compStyle)
  85 + .width(CommonConstants.FULL_PARENT)
  86 + .padding(10)
  87 + .onClick(() => {
  88 + if (compDTO.compStyle === CompStyle.Zh_Single_Row_06) { //精选评论
  89 + WDRouterRule.jumpWithPage(WDRouterPage.QualityCommentsPage)
  90 + }
  91 + })
  92 + }
  93 + Divider().strokeWidth(1).color('#f5f5f5').padding({ left: 16, right: 16 })
81 } 94 }
82 } 95 }
83 } 96 }
@@ -98,7 +98,7 @@ export struct ZhSingleRow06 { @@ -98,7 +98,7 @@ export struct ZhSingleRow06 {
98 .margin({ bottom: 8 }) 98 .margin({ bottom: 8 })
99 .height(251) 99 .height(251)
100 .onClick(() => { 100 .onClick(() => {
101 - ProcessUtils.processPage(this.compDTO.operDataList[0]) 101 + WDRouterRule.jumpWithPage(WDRouterPage.QualityCommentsPage)
102 }) 102 })
103 } 103 }
104 104