wangliang_wd

Merge branch 'main' of http://192.168.1.42/developOne/harmonyPool into main

* 'main' of http://192.168.1.42/developOne/harmonyPool:
  feat: 新增宫格卡
... ... @@ -17,6 +17,7 @@ export const enum CompStyle {
Single_Column_06 = 'Single_Column-06', // 留言板卡:/
Grid_Layout_01 = 'Grid_Layout-01', // 横屏宫格卡:视频、直播
Grid_Layout_02 = 'Grid_Layout-02', // 竖屏宫格卡 :视频、直播、榜单
En_Grid_Layout_03 = 'En_Grid_Layout-03 ', // 宫格卡
Masonry_Layout_01 = 'Masonry_Layout-01', // 双列瀑布流/瀑布流卡:视频、直播、专题、活动
... ...
... ... @@ -20,6 +20,7 @@ import { ZhSingleRow02 } from './compview/ZhSingleRow02';
import { ZhSingleRow03 } from './compview/ZhSingleRow03';
import { ZhSingleRow04 } from './compview/ZhSingleRow04';
import { ZhSingleRow06 } from './compview/ZhSingleRow06';
import { EnGridLayout03 } from './compview/EnGridLayout03';
import {
HorizontalStrokeCardThreeTwoRadioForMoreComponent
} from './view/HorizontalStrokeCardThreeTwoRadioForMoreComponent';
... ... @@ -192,6 +193,10 @@ export struct CompParser {
pageName: this.pageName,
compIndex: this.compIndex
});
} else if (this.compDTO.compStyle === CompStyle.En_Grid_Layout_03) {
if (this.compDTO.operDataList.length > this.audioItems.length) {
EnGridLayout03({ compDTO: this.compDTO, pageId: this.pageId, pageName: this.pageName })
}
} else {
// Text(this.compDTO.compStyle)
// .width(CommonConstants.FULL_PARENT)
... ...
import { ContentDTO } from 'wdBean';
/**
* 精选评论卡
* En_Grid_Layout-03
*/
const TAG = 'En_Grid_Layout_03'
@Entry
@Component
struct EnGridLayout03 {
@State item: ContentDTO | undefined = {} as ContentDTO
build() {
Row(){
// Image(this.item?.previewCoverUrl)
Column(){
// Text(this.item?.title)
// .fontColor(Color.Black)
// .fontWeight(600)
}
.backgroundColor('rgba(128, 128, 128, 0.58)')
.padding(5)
.height(400)
}
}
}
... ...