陈剑华

fix: 兴趣卡折叠屏ui适配

... ... @@ -132,7 +132,7 @@ export struct ZhSingleColumn09 {
.width('100%')
Grid() {
ForEach(this.operDataList, (item: ContentDTO, index: number) => {
ForEach(this.operDataList.slice(0, 8), (item: ContentDTO, index: number) => {
GridItem() {
Stack({ alignContent: Alignment.TopEnd }) {
Image(this.loadImg ? item.coverUrl : '')
... ... @@ -161,7 +161,7 @@ export struct ZhSingleColumn09 {
.objectFit(ImageFit.Contain)
}
.width('100%')
.height('100%')
.aspectRatio(2 / 1)
}
.margin({ right: index % 4 === 3 ? 0 : 6, bottom: 6 })
.onClick(() => {
... ... @@ -174,9 +174,7 @@ export struct ZhSingleColumn09 {
})
})
}
.height(90)
.columnsTemplate('1fr 1fr 1fr 1fr')
.rowsTemplate('1fr 1fr')
.margin({ bottom: 5 })
Row() {
... ...