人民号-动态视频卡
1、2、左右边距改为 16 3、标题行高改为 25 4、标题与视频间距偏小改为8 https://docs.qq.com/doc/DUWtGWFF4SWFhQnRU
Showing
1 changed file
with
5 additions
and
2 deletions
| @@ -8,6 +8,7 @@ import { persistentStorage, hasClicked } from '../../utils/persistentStorage'; | @@ -8,6 +8,7 @@ import { persistentStorage, hasClicked } from '../../utils/persistentStorage'; | ||
| 8 | import { InfomationCardClick } from '../../utils/infomationCardClick' | 8 | import { InfomationCardClick } from '../../utils/infomationCardClick' |
| 9 | import { SearchShowRed, titleInitRes, textItem } from '../../utils/searchShowRed'; | 9 | import { SearchShowRed, titleInitRes, textItem } from '../../utils/searchShowRed'; |
| 10 | import router from '@ohos.router' | 10 | import router from '@ohos.router' |
| 11 | +import { CenterInside } from '@ohos/imageknife/src/main/ets/components/imageknife/downsampling/DownsampleStartegy'; | ||
| 11 | 12 | ||
| 12 | const TAG = 'Card19Component'; | 13 | const TAG = 'Card19Component'; |
| 13 | 14 | ||
| @@ -86,8 +87,8 @@ export struct Card19Component { | @@ -86,8 +87,8 @@ export struct Card19Component { | ||
| 86 | //TODO 底部的:分享、评论、点赞 功能;需要引用一个公共组件 | 87 | //TODO 底部的:分享、评论、点赞 功能;需要引用一个公共组件 |
| 87 | } | 88 | } |
| 88 | .padding({ | 89 | .padding({ |
| 89 | - left: 10, | ||
| 90 | - right: 10, | 90 | + left: 16, |
| 91 | + right: 16, | ||
| 91 | top: $r('app.float.card_comp_pagePadding_tb'), | 92 | top: $r('app.float.card_comp_pagePadding_tb'), |
| 92 | bottom: $r('app.float.card_comp_pagePadding_tb') | 93 | bottom: $r('app.float.card_comp_pagePadding_tb') |
| 93 | }) | 94 | }) |
| @@ -232,7 +233,9 @@ struct createImg { | @@ -232,7 +233,9 @@ struct createImg { | ||
| 232 | // .aspectRatio(this.onePicW > this.onePicH ? 343 / 198 : 228 / 305) | 233 | // .aspectRatio(this.onePicW > this.onePicH ? 343 / 198 : 228 / 305) |
| 233 | .width('100%') | 234 | .width('100%') |
| 234 | .autoResize(true) | 235 | .autoResize(true) |
| 236 | + .objectFit(ImageFit.Cover) | ||
| 235 | .autoResize(true) | 237 | .autoResize(true) |
| 238 | + .aspectRatio(3/4) | ||
| 236 | .borderRadius(this.caclImageRadius(index)) | 239 | .borderRadius(this.caclImageRadius(index)) |
| 237 | .opacity(!item.weight && !item.height ? 0 : 1) | 240 | .opacity(!item.weight && !item.height ? 0 : 1) |
| 238 | .onComplete((event?) => { | 241 | .onComplete((event?) => { |
-
Please register or login to post a comment