chenjun

人民号-动态视频卡

1、2、左右边距改为 16
3、标题行高改为 25
4、标题与视频间距偏小改为8
https://docs.qq.com/doc/DUWtGWFF4SWFhQnRU
... ... @@ -8,6 +8,7 @@ import { persistentStorage, hasClicked } from '../../utils/persistentStorage';
import { InfomationCardClick } from '../../utils/infomationCardClick'
import { SearchShowRed, titleInitRes, textItem } from '../../utils/searchShowRed';
import router from '@ohos.router'
import { CenterInside } from '@ohos/imageknife/src/main/ets/components/imageknife/downsampling/DownsampleStartegy';
const TAG = 'Card19Component';
... ... @@ -86,8 +87,8 @@ export struct Card19Component {
//TODO 底部的:分享、评论、点赞 功能;需要引用一个公共组件
}
.padding({
left: 10,
right: 10,
left: 16,
right: 16,
top: $r('app.float.card_comp_pagePadding_tb'),
bottom: $r('app.float.card_comp_pagePadding_tb')
})
... ... @@ -232,7 +233,9 @@ struct createImg {
// .aspectRatio(this.onePicW > this.onePicH ? 343 / 198 : 228 / 305)
.width('100%')
.autoResize(true)
.objectFit(ImageFit.Cover)
.autoResize(true)
.aspectRatio(3/4)
.borderRadius(this.caclImageRadius(index))
.opacity(!item.weight && !item.height ? 0 : 1)
.onComplete((event?) => {
... ...