chenjun3_wd

禅道:16852 进入早晚报列表不该先加载缺省图

1 import { CompDTO } from 'wdBean'; 1 import { CompDTO } from 'wdBean';
2 import { CommonConstants, CompStyle } from 'wdConstant'; 2 import { CommonConstants, CompStyle } from 'wdConstant';
3 import { LabelComponent } from './view/LabelComponent'; 3 import { LabelComponent } from './view/LabelComponent';
4 -import { LiveHorizontalCardComponent } from './view/LiveHorizontalCardComponent';  
5 import { 4 import {
6 HorizontalStrokeCardThreeTwoRadioForMoreComponent 5 HorizontalStrokeCardThreeTwoRadioForMoreComponent
7 } from './view/HorizontalStrokeCardThreeTwoRadioForMoreComponent'; 6 } from './view/HorizontalStrokeCardThreeTwoRadioForMoreComponent';
@@ -11,15 +10,12 @@ import { @@ -11,15 +10,12 @@ import {
11 import { ZhSingleRow02 } from './compview/ZhSingleRow02'; 10 import { ZhSingleRow02 } from './compview/ZhSingleRow02';
12 import { ZhSingleRow03 } from './compview/ZhSingleRow03'; 11 import { ZhSingleRow03 } from './compview/ZhSingleRow03';
13 import { ZhSingleRow04 } from './compview/ZhSingleRow04'; 12 import { ZhSingleRow04 } from './compview/ZhSingleRow04';
14 -import { ZhSingleRow05 } from './compview/ZhSingleRow05';  
15 import { ZhSingleRow06 } from './compview/ZhSingleRow06'; 13 import { ZhSingleRow06 } from './compview/ZhSingleRow06';
16 import { ZhSingleColumn04 } from './compview/ZhSingleColumn04'; 14 import { ZhSingleColumn04 } from './compview/ZhSingleColumn04';
17 -import { ZhSingleColumn05 } from './compview/ZhSingleColumn05';  
18 import { ZhSingleColumn09 } from './compview/ZhSingleColumn09'; 15 import { ZhSingleColumn09 } from './compview/ZhSingleColumn09';
19 import { ZhGridLayout03 } from './compview/ZhGridLayout03'; 16 import { ZhGridLayout03 } from './compview/ZhGridLayout03';
20 import { ZhCarouselLayout01 } from './compview/ZhCarouselLayout01'; 17 import { ZhCarouselLayout01 } from './compview/ZhCarouselLayout01';
21 import { CardParser } from './CardParser'; 18 import { CardParser } from './CardParser';
22 -import { LiveHorizontalReservationComponent } from './view/LiveHorizontalReservationComponent';  
23 import { ZhGridLayout02 } from './compview/ZhGridLayout02'; 19 import { ZhGridLayout02 } from './compview/ZhGridLayout02';
24 import { Card2Component } from './cardview/Card2Component'; 20 import { Card2Component } from './cardview/Card2Component';
25 import { Card5Component } from './cardview/Card5Component'; 21 import { Card5Component } from './cardview/Card5Component';
@@ -35,7 +31,6 @@ import PageModel from '../viewmodel/PageModel'; @@ -35,7 +31,6 @@ import PageModel from '../viewmodel/PageModel';
35 @Component 31 @Component
36 export struct CompParser { 32 export struct CompParser {
37 @State compDTO: CompDTO = {} as CompDTO 33 @State compDTO: CompDTO = {} as CompDTO
38 -  
39 @State private pageModel: PageModel = new PageModel(); 34 @State private pageModel: PageModel = new PageModel();
40 @State compIndex: number = 0; 35 @State compIndex: number = 0;
41 36
@@ -55,8 +50,8 @@ export struct CompParser { @@ -55,8 +50,8 @@ export struct CompParser {
55 ZhCarouselLayout01({ compDTO: compDTO }) 50 ZhCarouselLayout01({ compDTO: compDTO })
56 Divider().strokeWidth(1).color('#f5f5f5').padding({ left: 16, right: 16 }) 51 Divider().strokeWidth(1).color('#f5f5f5').padding({ left: 16, right: 16 })
57 } else if (compDTO.compStyle === CompStyle.Zh_Single_Row_01 && compDTO.imageScale === 2) { 52 } else if (compDTO.compStyle === CompStyle.Zh_Single_Row_01 && compDTO.imageScale === 2) {
58 - LiveHorizontalCardComponent({ compDTO: compDTO })  
59 - Divider().strokeWidth(1).color('#f5f5f5').padding({ left: 16, right: 16 }) 53 + // LiveHorizontalCardComponent({ compDTO: compDTO })
  54 + // Divider().strokeWidth(1).color('#f5f5f5').padding({ left: 16, right: 16 })
60 } else if (compDTO.compStyle === CompStyle.Zh_Single_Row_01 && compDTO.imageScale === 3) { 55 } else if (compDTO.compStyle === CompStyle.Zh_Single_Row_01 && compDTO.imageScale === 3) {
61 if (compDTO.operDataList.length > 1) { 56 if (compDTO.operDataList.length > 1) {
62 HorizontalStrokeCardThreeTwoRadioForMoreComponent({ compDTO: compDTO }) 57 HorizontalStrokeCardThreeTwoRadioForMoreComponent({ compDTO: compDTO })
@@ -103,7 +98,7 @@ export struct CompParser { @@ -103,7 +98,7 @@ export struct CompParser {
103 ZhSingleColumn09({ compDTO }) 98 ZhSingleColumn09({ compDTO })
104 Divider().strokeWidth(1).color('#f5f5f5').padding({ left: 16, right: 16 }) 99 Divider().strokeWidth(1).color('#f5f5f5').padding({ left: 16, right: 16 })
105 } else if (compDTO.compStyle === CompStyle.Card_Comp_Adv) { // 广告 100 } else if (compDTO.compStyle === CompStyle.Card_Comp_Adv) { // 广告
106 - AdvCardParser({pageModel:this.pageModel,compDTO}) 101 + AdvCardParser({ pageModel: this.pageModel, compDTO })
107 //Text(`compIndex = ${compIndex}`).width('100%').fontSize('12fp').fontColor(Color.Red).padding({ left: 16, right: 16 }) 102 //Text(`compIndex = ${compIndex}`).width('100%').fontSize('12fp').fontColor(Color.Red).padding({ left: 16, right: 16 })
108 Divider().strokeWidth(1).color('#f5f5f5').padding({ left: 16, right: 16 }) 103 Divider().strokeWidth(1).color('#f5f5f5').padding({ left: 16, right: 16 })
109 } else if (!Number.isNaN(Number(compDTO.compStyle))) { 104 } else if (!Number.isNaN(Number(compDTO.compStyle))) {
@@ -123,6 +118,6 @@ export struct CompParser { @@ -123,6 +118,6 @@ export struct CompParser {
123 } 118 }
124 } 119 }
125 120
126 - // } 121 + // }
127 } 122 }
128 123