Showing
1 changed file
with
9 additions
and
12 deletions
| 1 | -import { Action, CompDTO, ContentDTO, Params } from 'wdBean'; | ||
| 2 | -import { CompStyle } from 'wdConstant'; | ||
| 3 | -import { Logger } from 'wdKit'; | ||
| 4 | -import { WDRouterRule } from 'wdRouter'; | 1 | +import { CompDTO, ContentDTO } from 'wdBean'; |
| 5 | import { ProcessUtils } from 'wdRouter'; | 2 | import { ProcessUtils } from 'wdRouter'; |
| 6 | import { onlyWifiLoadImg } from '../../utils/lazyloadImg'; | 3 | import { onlyWifiLoadImg } from '../../utils/lazyloadImg'; |
| 7 | -import { InfomationCardClick } from '../../utils/infomationCardClick' | 4 | +import { InfomationCardClick } from '../../utils/infomationCardClick'; |
| 8 | 5 | ||
| 9 | const TAG = 'Zh_Grid_Layout-03'; | 6 | const TAG = 'Zh_Grid_Layout-03'; |
| 10 | const FULL_PARENT: string = '100%'; | 7 | const FULL_PARENT: string = '100%'; |
| @@ -43,8 +40,8 @@ export struct ZhGridLayout03 { | @@ -43,8 +40,8 @@ export struct ZhGridLayout03 { | ||
| 43 | }) | 40 | }) |
| 44 | } | 41 | } |
| 45 | .padding({ | 42 | .padding({ |
| 46 | - left: 10, | ||
| 47 | - right: 10, | 43 | + left: 16, |
| 44 | + right: 16, | ||
| 48 | top: $r('app.float.card_comp_pagePadding_tb'), | 45 | top: $r('app.float.card_comp_pagePadding_tb'), |
| 49 | bottom: $r('app.float.card_comp_pagePadding_tb') | 46 | bottom: $r('app.float.card_comp_pagePadding_tb') |
| 50 | }) | 47 | }) |
| @@ -64,22 +61,22 @@ export struct ZhGridLayout03 { | @@ -64,22 +61,22 @@ export struct ZhGridLayout03 { | ||
| 64 | .backgroundColor(0xf5f5f5) | 61 | .backgroundColor(0xf5f5f5) |
| 65 | .width(44) | 62 | .width(44) |
| 66 | .aspectRatio(1 / 1) | 63 | .aspectRatio(1 / 1) |
| 67 | - // .margin({ | ||
| 68 | - // bottom: 16 | ||
| 69 | - // }) | 64 | + // .margin({ |
| 65 | + // bottom: 16 | ||
| 66 | + // }) | ||
| 70 | Text(item.newsTitle) | 67 | Text(item.newsTitle) |
| 71 | .fontSize(13) | 68 | .fontSize(13) |
| 72 | .maxLines(1) | 69 | .maxLines(1) |
| 73 | .margin({ | 70 | .margin({ |
| 74 | top: 8, | 71 | top: 8, |
| 75 | - bottom:11 | 72 | + bottom: 11 |
| 76 | }) | 73 | }) |
| 77 | .textOverflow({ overflow: TextOverflow.Ellipsis }) | 74 | .textOverflow({ overflow: TextOverflow.Ellipsis }) |
| 78 | 75 | ||
| 79 | } | 76 | } |
| 80 | .width('100%') | 77 | .width('100%') |
| 81 | .onClick((event: ClickEvent) => { | 78 | .onClick((event: ClickEvent) => { |
| 82 | - console.log('333rt',JSON.stringify(item)) | 79 | + console.log('333rt', JSON.stringify(item)) |
| 83 | InfomationCardClick.track(this.compDTO, item, this.pageId, this.pageName) | 80 | InfomationCardClick.track(this.compDTO, item, this.pageId, this.pageName) |
| 84 | 81 | ||
| 85 | ProcessUtils.processPage(item) | 82 | ProcessUtils.processPage(item) |
-
Please register or login to post a comment