Showing
3 changed files
with
32 additions
and
0 deletions
| @@ -17,6 +17,7 @@ export const enum CompStyle { | @@ -17,6 +17,7 @@ export const enum CompStyle { | ||
| 17 | Single_Column_06 = 'Single_Column-06', // 留言板卡:/ | 17 | Single_Column_06 = 'Single_Column-06', // 留言板卡:/ |
| 18 | Grid_Layout_01 = 'Grid_Layout-01', // 横屏宫格卡:视频、直播 | 18 | Grid_Layout_01 = 'Grid_Layout-01', // 横屏宫格卡:视频、直播 |
| 19 | Grid_Layout_02 = 'Grid_Layout-02', // 竖屏宫格卡 :视频、直播、榜单 | 19 | Grid_Layout_02 = 'Grid_Layout-02', // 竖屏宫格卡 :视频、直播、榜单 |
| 20 | + En_Grid_Layout_03 = 'En_Grid_Layout-03 ', // 宫格卡 | ||
| 20 | Masonry_Layout_01 = 'Masonry_Layout-01', // 双列瀑布流/瀑布流卡:视频、直播、专题、活动 | 21 | Masonry_Layout_01 = 'Masonry_Layout-01', // 双列瀑布流/瀑布流卡:视频、直播、专题、活动 |
| 21 | 22 | ||
| 22 | 23 |
| @@ -20,6 +20,7 @@ import { ZhSingleRow02 } from './compview/ZhSingleRow02'; | @@ -20,6 +20,7 @@ import { ZhSingleRow02 } from './compview/ZhSingleRow02'; | ||
| 20 | import { ZhSingleRow03 } from './compview/ZhSingleRow03'; | 20 | import { ZhSingleRow03 } from './compview/ZhSingleRow03'; |
| 21 | import { ZhSingleRow04 } from './compview/ZhSingleRow04'; | 21 | import { ZhSingleRow04 } from './compview/ZhSingleRow04'; |
| 22 | import { ZhSingleRow06 } from './compview/ZhSingleRow06'; | 22 | import { ZhSingleRow06 } from './compview/ZhSingleRow06'; |
| 23 | +import { EnGridLayout03 } from './compview/EnGridLayout03'; | ||
| 23 | import { | 24 | import { |
| 24 | HorizontalStrokeCardThreeTwoRadioForMoreComponent | 25 | HorizontalStrokeCardThreeTwoRadioForMoreComponent |
| 25 | } from './view/HorizontalStrokeCardThreeTwoRadioForMoreComponent'; | 26 | } from './view/HorizontalStrokeCardThreeTwoRadioForMoreComponent'; |
| @@ -192,6 +193,10 @@ export struct CompParser { | @@ -192,6 +193,10 @@ export struct CompParser { | ||
| 192 | pageName: this.pageName, | 193 | pageName: this.pageName, |
| 193 | compIndex: this.compIndex | 194 | compIndex: this.compIndex |
| 194 | }); | 195 | }); |
| 196 | + } else if (this.compDTO.compStyle === CompStyle.En_Grid_Layout_03) { | ||
| 197 | + if (this.compDTO.operDataList.length > this.audioItems.length) { | ||
| 198 | + EnGridLayout03({ compDTO: this.compDTO, pageId: this.pageId, pageName: this.pageName }) | ||
| 199 | + } | ||
| 195 | } else { | 200 | } else { |
| 196 | // Text(this.compDTO.compStyle) | 201 | // Text(this.compDTO.compStyle) |
| 197 | // .width(CommonConstants.FULL_PARENT) | 202 | // .width(CommonConstants.FULL_PARENT) |
| 1 | +import { ContentDTO } from 'wdBean'; | ||
| 2 | + | ||
| 3 | +/** | ||
| 4 | + * 精选评论卡 | ||
| 5 | + * En_Grid_Layout-03 | ||
| 6 | + */ | ||
| 7 | +const TAG = 'En_Grid_Layout_03' | ||
| 8 | +@Entry | ||
| 9 | +@Component | ||
| 10 | +struct EnGridLayout03 { | ||
| 11 | + @State item: ContentDTO | undefined = {} as ContentDTO | ||
| 12 | + | ||
| 13 | + build() { | ||
| 14 | + Row(){ | ||
| 15 | + // Image(this.item?.previewCoverUrl) | ||
| 16 | + Column(){ | ||
| 17 | + // Text(this.item?.title) | ||
| 18 | + // .fontColor(Color.Black) | ||
| 19 | + // .fontWeight(600) | ||
| 20 | + } | ||
| 21 | + .backgroundColor('rgba(128, 128, 128, 0.58)') | ||
| 22 | + .padding(5) | ||
| 23 | + .height(400) | ||
| 24 | + } | ||
| 25 | + } | ||
| 26 | +} |
-
Please register or login to post a comment