yuzhilin

屏蔽音频详情和活动入口

@@ -31,60 +31,58 @@ export struct CompParser { @@ -31,60 +31,58 @@ export struct CompParser {
31 compIndex: number = 0; 31 compIndex: number = 0;
32 32
33 build() { 33 build() {
34 - Column(){ 34 + Column() {
35 this.componentBuilder(this.compDTO, this.compIndex); 35 this.componentBuilder(this.compDTO, this.compIndex);
36 - Divider().strokeWidth(1).color('#f5f5f5').padding({left:16,right:16})  
37 } 36 }
38 } 37 }
39 38
40 @Builder 39 @Builder
41 componentBuilder(compDTO: CompDTO, compIndex: number) { 40 componentBuilder(compDTO: CompDTO, compIndex: number) {
42 - if (compDTO.compStyle === CompStyle.Label_03) {  
43 - LabelComponent({ compDTO: compDTO })  
44 - } else if (compDTO.compStyle === CompStyle.Zh_Carousel_Layout_01) {  
45 - BannerComponent({ compDTO: compDTO })  
46 - } else if (compDTO.compStyle === CompStyle.Zh_Single_Row_01 && compDTO.imageScale === 2) {  
47 - LiveHorizontalCardComponent({ compDTO: compDTO })  
48 - } else if (compDTO.compStyle === CompStyle.Zh_Single_Row_01 && compDTO.imageScale === 3) {  
49 - if (compDTO.operDataList.length > 1) {  
50 - HorizontalStrokeCardThreeTwoRadioForMoreComponent({ compDTO: compDTO })  
51 - } else {  
52 - HorizontalStrokeCardThreeTwoRadioForOneComponent({ compDTO: compDTO }) 41 + if (compDTO.objectType !== '3' && compDTO.objectType !== '13') { //暂时屏蔽活动和音频详情入口
  42 + if (compDTO.compStyle === CompStyle.Label_03) {
  43 + LabelComponent({ compDTO: compDTO })
  44 + } else if (compDTO.compStyle === CompStyle.Zh_Carousel_Layout_01) {
  45 + BannerComponent({ compDTO: compDTO })
  46 + } else if (compDTO.compStyle === CompStyle.Zh_Single_Row_01 && compDTO.imageScale === 2) {
  47 + LiveHorizontalCardComponent({ compDTO: compDTO })
  48 + } else if (compDTO.compStyle === CompStyle.Zh_Single_Row_01 && compDTO.imageScale === 3) {
  49 + if (compDTO.operDataList.length > 1) {
  50 + HorizontalStrokeCardThreeTwoRadioForMoreComponent({ compDTO: compDTO })
  51 + } else {
  52 + HorizontalStrokeCardThreeTwoRadioForOneComponent({ compDTO: compDTO })
  53 + }
  54 + } else if (compDTO.compStyle === CompStyle.Zh_Single_Row_02) {
  55 + ZhSingleRow02({ compDTO })
  56 + } else if (compDTO.compStyle === CompStyle.Zh_Single_Row_03) {
  57 + LiveHorizontalReservationComponent({ compDTO: compDTO })
  58 + } else if (compDTO.compStyle === CompStyle.Zh_Grid_Layout_02) {
  59 + ZhGridLayout02({ compDTO: compDTO })
  60 + } else if (compDTO.compStyle === CompStyle.Zh_Grid_Layout_03) {
  61 + ZhGridLayout03({ compDTO: compDTO })
  62 + } else if (compDTO.compStyle === CompStyle.Zh_Single_Row_04) {
  63 + ZhSingleRow04({ compDTO: compDTO })
  64 + } else if (compDTO.compStyle === CompStyle.Zh_Single_Column_02) {
  65 + //头图卡 和comStyle 2相同,
  66 + Card5Component({ contentDTO: compDTO.operDataList[0] })
  67 + } else if (compDTO.compStyle === CompStyle.Zh_Single_Column_04) {
  68 + ZhSingleColumn04({ compDTO: compDTO })
  69 + } else if (compDTO.compStyle === CompStyle.Zh_Single_Column_05) {
  70 + ZhSingleColumn05({ compDTO: compDTO })
  71 + } else if (!Number.isNaN(Number(compDTO.compStyle))) {
  72 + CardParser({ contentDTO: compDTO.operDataList[0] });
53 } 73 }
54 - } else if (compDTO.compStyle === CompStyle.Zh_Single_Row_02) {  
55 - ZhSingleRow02({ compDTO })  
56 - } else if (compDTO.compStyle === CompStyle.Zh_Single_Row_03) {  
57 - LiveHorizontalReservationComponent({ compDTO: compDTO })  
58 - } else if (compDTO.compStyle === CompStyle.Zh_Grid_Layout_02) {  
59 - ZhGridLayout02({ compDTO: compDTO })  
60 - } else if (compDTO.compStyle === CompStyle.Zh_Grid_Layout_03) {  
61 - ZhGridLayout03({ compDTO: compDTO })  
62 - } else if (compDTO.compStyle === CompStyle.Zh_Single_Row_04) {  
63 - ZhSingleRow04({ compDTO: compDTO })  
64 - } else if (compDTO.compStyle === CompStyle.Zh_Single_Column_02) {  
65 - //头图卡 和comStyle 2相同,  
66 - Card5Component({ contentDTO: compDTO.operDataList[0] })  
67 - } else if (compDTO.compStyle === CompStyle.Zh_Single_Column_04) {  
68 - ZhSingleColumn04({ compDTO: compDTO })  
69 - } else if (compDTO.compStyle === CompStyle.Zh_Single_Column_05) {  
70 - ZhSingleColumn05({ compDTO: compDTO })  
71 - } else if (!Number.isNaN(Number(compDTO.compStyle))) {  
72 - CardParser({ contentDTO: compDTO.operDataList[0] });  
73 - }  
74 - else {  
75 - // todo:组件未实现 / Component Not Implemented  
76 - Text(compDTO.compStyle)  
77 - .width(CommonConstants.FULL_PARENT)  
78 - .padding(10)  
79 - .onClick(()=>{  
80 - if (compDTO.compStyle === CompStyle.Zh_Single_Row_06) {//精选评论  
81 - WDRouterRule.jumpWithPage(WDRouterPage.QualityCommentsPage)  
82 - }  
83 - })  
84 - // Text(compDTO.compStyle)  
85 - // .width(CommonConstants.FULL_PARENT)  
86 - // .padding(10)  
87 - // .backgroundColor(Color.Brown) // 展示本页未实现的compStyle 74 + else {
  75 + // todo:组件未实现 / Component Not Implemented
  76 + Text(compDTO.compStyle)
  77 + .width(CommonConstants.FULL_PARENT)
  78 + .padding(10)
  79 + .onClick(() => {
  80 + if (compDTO.compStyle === CompStyle.Zh_Single_Row_06) { //精选评论
  81 + WDRouterRule.jumpWithPage(WDRouterPage.QualityCommentsPage)
  82 + }
  83 + })
  84 + }
  85 + Divider().strokeWidth(1).color('#f5f5f5').padding({ left: 16, right: 16 })
88 } 86 }
89 } 87 }
90 } 88 }