Showing
3 changed files
with
14 additions
and
6 deletions
| @@ -30,7 +30,7 @@ export struct CompNormalTitle { | @@ -30,7 +30,7 @@ export struct CompNormalTitle { | ||
| 30 | .fontWeight(600) | 30 | .fontWeight(600) |
| 31 | } | 31 | } |
| 32 | .justifyContent(FlexAlign.Start) | 32 | .justifyContent(FlexAlign.Start) |
| 33 | - .margin({ top: 16, bottom: 8 }) | 33 | + .margin({ top: 16, bottom: 10 }) |
| 34 | .width(CommonConstants.FULL_WIDTH) | 34 | .width(CommonConstants.FULL_WIDTH) |
| 35 | } | 35 | } |
| 36 | .width(CommonConstants.FULL_WIDTH) | 36 | .width(CommonConstants.FULL_WIDTH) |
| @@ -25,8 +25,8 @@ export struct ZhGridLayout02NewsContent { | @@ -25,8 +25,8 @@ export struct ZhGridLayout02NewsContent { | ||
| 25 | build() { | 25 | build() { |
| 26 | 26 | ||
| 27 | GridRow({ | 27 | GridRow({ |
| 28 | - gutter: { x: 12, y: 13 }, | ||
| 29 | - columns: { sm: listSize, md: 2 }, | 28 | + gutter: { x: 9, y: 0 }, |
| 29 | + columns: { sm: listSize, md: listSize }, | ||
| 30 | breakpoints: { value: ['320vp', '520vp', '840vp'] } | 30 | breakpoints: { value: ['320vp', '520vp', '840vp'] } |
| 31 | }) { | 31 | }) { |
| 32 | ForEach(this.operDataList, (item: ContentDTO, index: number) => { | 32 | ForEach(this.operDataList, (item: ContentDTO, index: number) => { |
| @@ -46,13 +46,16 @@ export struct ZhGridLayout02NewsContent { | @@ -46,13 +46,16 @@ export struct ZhGridLayout02NewsContent { | ||
| 46 | .backgroundColor(0xf5f5f5) | 46 | .backgroundColor(0xf5f5f5) |
| 47 | .width('100%') | 47 | .width('100%') |
| 48 | .height(95) | 48 | .height(95) |
| 49 | + .borderWidth(0.5) | ||
| 50 | + .borderColor($r('app.color.color_0D000000')) | ||
| 49 | .borderRadius(4) | 51 | .borderRadius(4) |
| 50 | if (this.compDTO.operDataList[index].liveRoomDataBean != undefined | 52 | if (this.compDTO.operDataList[index].liveRoomDataBean != undefined |
| 51 | && this.compDTO.operDataList[index].liveRoomDataBean?.pv != undefined) { | 53 | && this.compDTO.operDataList[index].liveRoomDataBean?.pv != undefined) { |
| 52 | Text(this.computeShowNum(this.compDTO.operDataList[index].liveRoomDataBean)) | 54 | Text(this.computeShowNum(this.compDTO.operDataList[index].liveRoomDataBean)) |
| 53 | - .fontSize('11vp') | 55 | + .fontSize(12) |
| 54 | .fontWeight(400) | 56 | .fontWeight(400) |
| 55 | .fontColor(Color.White) | 57 | .fontColor(Color.White) |
| 58 | + .textShadow({ radius: 2, color: 'rgba(0,0,0,0.3)', offsetX: 0, offsetY: 2 }) | ||
| 56 | .margin({ | 59 | .margin({ |
| 57 | right: '5vp', | 60 | right: '5vp', |
| 58 | bottom: '5vp' | 61 | bottom: '5vp' |
| @@ -61,9 +64,10 @@ export struct ZhGridLayout02NewsContent { | @@ -61,9 +64,10 @@ export struct ZhGridLayout02NewsContent { | ||
| 61 | } | 64 | } |
| 62 | 65 | ||
| 63 | Text(item.newsTitle) | 66 | Text(item.newsTitle) |
| 64 | - .margin({ top: '6', bottom: '10' }) | ||
| 65 | - .fontSize(13) | 67 | + .margin({ top: 8, bottom: 14 }) |
| 68 | + .fontSize(15) | ||
| 66 | .maxLines(2) | 69 | .maxLines(2) |
| 70 | + .lineHeight(21) | ||
| 67 | .textOverflow({ overflow: TextOverflow.Ellipsis }) | 71 | .textOverflow({ overflow: TextOverflow.Ellipsis }) |
| 68 | } | 72 | } |
| 69 | .width('100%') | 73 | .width('100%') |
-
Please register or login to post a comment