chenjun3_wd

直播回看样式微调

1 import { CompDTO, ContentDTO } from 'wdBean'; 1 import { CompDTO, ContentDTO } from 'wdBean';
2 import { CommonConstants } from 'wdConstant/Index'; 2 import { CommonConstants } from 'wdConstant/Index';
3 -import { CollectionUtils, DateTimeUtils, Logger, StringUtils, ToastUtils } from 'wdKit/Index'; 3 +import { Logger } from 'wdKit/Index';
4 import PageViewModel from '../../viewmodel/PageViewModel'; 4 import PageViewModel from '../../viewmodel/PageViewModel';
5 5
6 const TAG = 'Zh_Grid_Layout-02'; 6 const TAG = 'Zh_Grid_Layout-02';
@@ -31,8 +31,6 @@ export struct ZhGridLayout02 { @@ -31,8 +31,6 @@ export struct ZhGridLayout02 {
31 31
32 build() { 32 build() {
33 Column() { 33 Column() {
34 -  
35 -  
36 Scroll() { 34 Scroll() {
37 Column() { 35 Column() {
38 Row() { 36 Row() {
@@ -46,10 +44,12 @@ export struct ZhGridLayout02 { @@ -46,10 +44,12 @@ export struct ZhGridLayout02 {
46 .fontWeight(600) 44 .fontWeight(600)
47 } 45 }
48 .justifyContent(FlexAlign.Start) 46 .justifyContent(FlexAlign.Start)
  47 +
49 .margin({ top: 8, bottom: 8 }) 48 .margin({ top: 8, bottom: 8 })
50 .width(CommonConstants.FULL_WIDTH) 49 .width(CommonConstants.FULL_WIDTH)
51 50
52 GridRow({ 51 GridRow({
  52 + gutter: { x: 12, y: 22 },
53 columns: { sm: listSize, md: 2 }, 53 columns: { sm: listSize, md: 2 },
54 breakpoints: { value: ['320vp', '520vp', '840vp'] } 54 breakpoints: { value: ['320vp', '520vp', '840vp'] }
55 }) { 55 }) {
@@ -60,7 +60,6 @@ export struct ZhGridLayout02 { @@ -60,7 +60,6 @@ export struct ZhGridLayout02 {
60 }) 60 })
61 } 61 }
62 } 62 }
63 -  
64 } 63 }
65 .width("100%") 64 .width("100%")
66 .height("100%") 65 .height("100%")
@@ -82,12 +81,9 @@ export struct ZhGridLayout02 { @@ -82,12 +81,9 @@ export struct ZhGridLayout02 {
82 .width(CommonConstants.FULL_WIDTH) 81 .width(CommonConstants.FULL_WIDTH)
83 // .width("100%") 82 // .width("100%")
84 .height("100%") 83 .height("100%")
  84 + .padding({ left: 16, right: 16 })
  85 +
85 // .layoutWeight(1) 86 // .layoutWeight(1)
86 - .padding({  
87 - top: 14,  
88 - left: 16,  
89 - right: 16  
90 - })  
91 87
92 } 88 }
93 89
@@ -100,9 +96,9 @@ export struct ZhGridLayout02 { @@ -100,9 +96,9 @@ export struct ZhGridLayout02 {
100 buildItemCard(item: ContentDTO) { 96 buildItemCard(item: ContentDTO) {
101 Column() { 97 Column() {
102 Image(item.fullColumnImgUrls[0].url) 98 Image(item.fullColumnImgUrls[0].url)
103 - .width(170) 99 + .width('100%')
104 .height(95) 100 .height(95)
105 - .margin(16) 101 + .borderRadius(4)
106 Text(item.newsTitle) 102 Text(item.newsTitle)
107 .fontSize(13) 103 .fontSize(13)
108 .maxLines(2) 104 .maxLines(2)