chengen02

-fix 修改page边距

@@ -5,7 +5,6 @@ import { Card3Component } from './cardview/Card3Component'; @@ -5,7 +5,6 @@ import { Card3Component } from './cardview/Card3Component';
5 import { Card4Component } from './cardview/Card4Component'; 5 import { Card4Component } from './cardview/Card4Component';
6 import { Card5Component } from './cardview/Card5Component'; 6 import { Card5Component } from './cardview/Card5Component';
7 import { Card6Component } from './cardview/Card6Component'; 7 import { Card6Component } from './cardview/Card6Component';
8 -import { Card9Component } from './cardview/Card9Component';  
9 import { Card10Component } from './cardview/Card10Component'; 8 import { Card10Component } from './cardview/Card10Component';
10 import { Card11Component } from './cardview/Card11Component'; 9 import { Card11Component } from './cardview/Card11Component';
11 import { Card12Component } from './cardview/Card12Component'; 10 import { Card12Component } from './cardview/Card12Component';
@@ -48,8 +47,6 @@ export struct CardParser { @@ -48,8 +47,6 @@ export struct CardParser {
48 } else if (contentDTO.appStyle === CompStyle.Card_06 || contentDTO.appStyle === CompStyle 47 } else if (contentDTO.appStyle === CompStyle.Card_06 || contentDTO.appStyle === CompStyle
49 .Card_13) { 48 .Card_13) {
50 Card6Component({ compDTO: this.compDTO, contentDTO: this.contentDTO }) 49 Card6Component({ compDTO: this.compDTO, contentDTO: this.contentDTO })
51 - } else if (contentDTO.appStyle === CompStyle.Card_09) {  
52 - Card9Component({ contentDTO })  
53 } else if (contentDTO.appStyle === CompStyle.Card_10) { 50 } else if (contentDTO.appStyle === CompStyle.Card_10) {
54 Card10Component({ compDTO: this.compDTO, contentDTO }) 51 Card10Component({ compDTO: this.compDTO, contentDTO })
55 } else if (contentDTO.appStyle === CompStyle.Card_11) { 52 } else if (contentDTO.appStyle === CompStyle.Card_11) {
@@ -4,6 +4,7 @@ import { WDRouterPage, WDRouterRule } from 'wdRouter/Index'; @@ -4,6 +4,7 @@ import { WDRouterPage, WDRouterRule } from 'wdRouter/Index';
4 import PageModel from '../viewmodel/PageModel'; 4 import PageModel from '../viewmodel/PageModel';
5 import { CardParser } from './CardParser'; 5 import { CardParser } from './CardParser';
6 import { Card2Component } from './cardview/Card2Component'; 6 import { Card2Component } from './cardview/Card2Component';
  7 +import { Card9Component } from './cardview/Card9Component';
7 import { Card5Component } from './cardview/Card5Component'; 8 import { Card5Component } from './cardview/Card5Component';
8 import { AdvCardParser } from './cardViewAdv/AdvCardParser'; 9 import { AdvCardParser } from './cardViewAdv/AdvCardParser';
9 import { ZhCarouselLayout01 } from './compview/ZhCarouselLayout01'; 10 import { ZhCarouselLayout01 } from './compview/ZhCarouselLayout01';
@@ -63,64 +64,68 @@ export struct CompParser { @@ -63,64 +64,68 @@ export struct CompParser {
63 64
64 if (this.compDTO.compStyle === CompStyle.Label_03) { 65 if (this.compDTO.compStyle === CompStyle.Label_03) {
65 LabelComponent({ compDTO: this.compDTO }) 66 LabelComponent({ compDTO: this.compDTO })
66 - Divider().strokeWidth(8).color('#f5f5f5').padding({ left: 0, right: 0 }) 67 + Divider().strokeWidth(5).color('#f5f5f5').padding({ left: 0, right: 0 })
67 } else if (this.compDTO.compStyle === CompStyle.Zh_Carousel_Layout_01) { 68 } else if (this.compDTO.compStyle === CompStyle.Zh_Carousel_Layout_01) {
68 if (this.compDTO.operDataList.length > this.audioItems.length) { 69 if (this.compDTO.operDataList.length > this.audioItems.length) {
69 ZhCarouselLayout01({ compDTO: this.compDTO }) 70 ZhCarouselLayout01({ compDTO: this.compDTO })
70 - Divider().strokeWidth(8).color('#f5f5f5').padding({ left: 0, right: 0 }) 71 + Divider().strokeWidth(5).color('#f5f5f5').padding({ left: 0, right: 0 })
71 } 72 }
72 } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Row_01 && 73 } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Row_01 &&
73 this.compDTO.imageScale === 2) { // && compDTO.name ==="横划卡" 74 this.compDTO.imageScale === 2) { // && compDTO.name ==="横划卡"
74 75
75 LiveHorizontalCardComponent({ compDTO: this.compDTO }) 76 LiveHorizontalCardComponent({ compDTO: this.compDTO })
76 - Divider().strokeWidth(8).color('#f5f5f5').padding({ left: 0, right: 0 }) 77 + Divider().strokeWidth(5).color('#f5f5f5').padding({ left: 0, right: 0 })
77 } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Row_01 && this.compDTO.imageScale === 3) { 78 } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Row_01 && this.compDTO.imageScale === 3) {
78 if (this.compDTO.operDataList.length > 1) { 79 if (this.compDTO.operDataList.length > 1) {
79 HorizontalStrokeCardThreeTwoRadioForMoreComponent({ compDTO: this.compDTO }) 80 HorizontalStrokeCardThreeTwoRadioForMoreComponent({ compDTO: this.compDTO })
80 } else { 81 } else {
81 HorizontalStrokeCardThreeTwoRadioForOneComponent({ compDTO: this.compDTO }) 82 HorizontalStrokeCardThreeTwoRadioForOneComponent({ compDTO: this.compDTO })
82 } 83 }
83 - Divider().strokeWidth(8).color('#f5f5f5').padding({ left: 0, right: 0 }) 84 + Divider().strokeWidth(5).color('#f5f5f5').padding({ left: 0, right: 0 })
84 } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Row_02) { 85 } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Row_02) {
85 ZhSingleRow02({ compDTO: this.compDTO }) 86 ZhSingleRow02({ compDTO: this.compDTO })
86 - Divider().strokeWidth(8).color('#f5f5f5').padding({ left: 0, right: 0 }) 87 + Divider().strokeWidth(5).color('#f5f5f5').padding({ left: 0, right: 0 })
87 } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Row_03) { 88 } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Row_03) {
88 ZhSingleRow03({ compDTO: this.compDTO }) 89 ZhSingleRow03({ compDTO: this.compDTO })
89 - Divider().strokeWidth(8).color('#f5f5f5').padding({ left: 0, right: 0 }) 90 + Divider().strokeWidth(5).color('#f5f5f5').padding({ left: 0, right: 0 })
90 } else if (this.compDTO.compStyle === CompStyle.Zh_Grid_Layout_02) { //双列流小视频,一行两图卡 ->标题 91 } else if (this.compDTO.compStyle === CompStyle.Zh_Grid_Layout_02) { //双列流小视频,一行两图卡 ->标题
91 //ZhGridLayout02({ compDTO: this.compDTO }) 92 //ZhGridLayout02({ compDTO: this.compDTO })
92 CompNormalTitle({ compDTO: this.compDTO }) 93 CompNormalTitle({ compDTO: this.compDTO })
93 - // Divider().strokeWidth(8).color('#f5f5f5').padding({ left: 0, right: 0 }) 94 + // Divider().strokeWidth(5).color('#f5f5f5').padding({ left: 0, right: 0 })
94 } else if (this.compDTO.compStyle === CompStyle.Card_Comp_Zh_Grid_Layout_02) { //双列流小视频,一行两图卡 95 } else if (this.compDTO.compStyle === CompStyle.Card_Comp_Zh_Grid_Layout_02) { //双列流小视频,一行两图卡
95 96
96 ZhGridLayout02NewsContent({ compDTO: this.compDTO, operDataList: this.compDTO.operDataList }) 97 ZhGridLayout02NewsContent({ compDTO: this.compDTO, operDataList: this.compDTO.operDataList })
97 98
98 } else if (this.compDTO.compStyle === CompStyle.Zh_Grid_Layout_03) { 99 } else if (this.compDTO.compStyle === CompStyle.Zh_Grid_Layout_03) {
99 ZhGridLayout03({ compDTO: this.compDTO }) 100 ZhGridLayout03({ compDTO: this.compDTO })
100 - Divider().strokeWidth(8).color('#f5f5f5').padding({ left: 0, right: 0 }) 101 + Divider().strokeWidth(5).color('#f5f5f5').padding({ left: 0, right: 0 })
101 } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Row_04) { 102 } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Row_04) {
102 ZhSingleRow04({ compDTO: this.compDTO }) 103 ZhSingleRow04({ compDTO: this.compDTO })
103 - Divider().strokeWidth(8).color('#f5f5f5').padding({ left: 0, right: 0 }) 104 + Divider().strokeWidth(5).color('#f5f5f5').padding({ left: 0, right: 0 })
104 } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Row_05) { 105 } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Row_05) {
105 // ZhSingleRow05({ compDTO }) 106 // ZhSingleRow05({ compDTO })
106 - // Divider().strokeWidth(8).color('#f5f5f5').padding({ left: 0, right: 0 }) 107 + // Divider().strokeWidth(5).color('#f5f5f5').padding({ left: 0, right: 0 })
107 } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Row_06) { 108 } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Row_06) {
108 ZhSingleRow06({ compDTO: this.compDTO }) 109 ZhSingleRow06({ compDTO: this.compDTO })
109 - Divider().strokeWidth(8).color('#f5f5f5').padding({ left: 0, right: 0 }) 110 + Divider().strokeWidth(5).color('#f5f5f5').padding({ left: 0, right: 0 })
110 } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Column_02) { 111 } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Column_02) {
111 //头图卡 和comStyle 2相同, 112 //头图卡 和comStyle 2相同,
112 Card5Component({ contentDTO: this.compDTO.operDataList[0], titleShowPolicy: this.compDTO.titleShowPolicy }) 113 Card5Component({ contentDTO: this.compDTO.operDataList[0], titleShowPolicy: this.compDTO.titleShowPolicy })
113 - Divider().strokeWidth(8).color('#f5f5f5').padding({ left: 0, right: 0 }) 114 + Divider().strokeWidth(5).color('#f5f5f5').padding({ left: 0, right: 0 })
114 } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Column_03) { 115 } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Column_03) {
115 // 大图卡 116 // 大图卡
116 Card2Component({ compDTO: this.compDTO, contentDTO: this.compDTO.operDataList[0] }) 117 Card2Component({ compDTO: this.compDTO, contentDTO: this.compDTO.operDataList[0] })
117 - Divider().strokeWidth(8).color('#f5f5f5').padding({ left: 0, right: 0 }) 118 + Divider().strokeWidth(5).color('#f5f5f5').padding({ left: 0, right: 0 })
  119 + } else if (this.compDTO.compStyle === CompStyle.Card_09) {
  120 + //时间链卡
  121 + Card9Component({ contentDTO:this.compDTO.operDataList[0] })
  122 + Divider().strokeWidth(5).color('#f5f5f5').padding({ left: 0, right: 0 })
118 } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Column_04) { 123 } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Column_04) {
119 ZhSingleColumn04({ compDTO: this.compDTO }) 124 ZhSingleColumn04({ compDTO: this.compDTO })
120 - Divider().strokeWidth(8).color('#f5f5f5').padding({ left: 0, right: 0 }) 125 + Divider().strokeWidth(5).color('#f5f5f5').padding({ left: 0, right: 0 })
121 } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Column_05) { 126 } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Column_05) {
122 // ZhSingleColumn05({ compDTO: compDTO }) 127 // ZhSingleColumn05({ compDTO: compDTO })
123 - // Divider().strokeWidth(8).color('#f5f5f5').padding({ left: 0, right: 0 }) 128 + // Divider().strokeWidth(5).color('#f5f5f5').padding({ left: 0, right: 0 })
124 } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Column_09) { 129 } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Column_09) {
125 Divider().strokeWidth(3).color('#ffffff').padding({ left: 0, right: 0 }).margin({ top: -3 }) 130 Divider().strokeWidth(3).color('#ffffff').padding({ left: 0, right: 0 }).margin({ top: -3 })
126 Divider().strokeWidth(6).color('#f5f5f5') 131 Divider().strokeWidth(6).color('#f5f5f5')
@@ -129,10 +134,10 @@ export struct CompParser { @@ -129,10 +134,10 @@ export struct CompParser {
129 } else if (this.compDTO.compStyle === CompStyle.Card_Comp_Adv) { // 广告 134 } else if (this.compDTO.compStyle === CompStyle.Card_Comp_Adv) { // 广告
130 AdvCardParser({ pageModel: this.pageModel, compDTO: this.compDTO }) 135 AdvCardParser({ pageModel: this.pageModel, compDTO: this.compDTO })
131 //Text(`compIndex = ${compIndex}`).width('100%').fontSize('12fp').fontColor(Color.Red).padding({ left: 0, right: 0 }) 136 //Text(`compIndex = ${compIndex}`).width('100%').fontSize('12fp').fontColor(Color.Red).padding({ left: 0, right: 0 })
132 - Divider().strokeWidth(8).color('#f5f5f5').padding({ left: 0, right: 0 }) 137 + Divider().strokeWidth(5).color('#f5f5f5').padding({ left: 0, right: 0 })
133 } else if (!Number.isNaN(Number(this.compDTO.compStyle))) { 138 } else if (!Number.isNaN(Number(this.compDTO.compStyle))) {
134 CardParser({ contentDTO: this.compDTO.operDataList[0], compDTO: this.compDTO }); 139 CardParser({ contentDTO: this.compDTO.operDataList[0], compDTO: this.compDTO });
135 - Divider().strokeWidth(8).color('#f5f5f5').padding({ left: 0, right: 0 }) 140 + Divider().strokeWidth(1).color('#f5f5f5').padding({ left: 16, right: 16 })
136 } else { 141 } else {
137 // Text(this.compDTO.compStyle) 142 // Text(this.compDTO.compStyle)
138 // .width(CommonConstants.FULL_PARENT) 143 // .width(CommonConstants.FULL_PARENT)