陈剑华

fix: 横划卡(16:9或3:2),左右横滑时,应从手机边缘消失

... ... @@ -72,6 +72,9 @@ export struct HorizontalStrokeCardThreeTwoRadioForMoreComponent {
.fontColor($r("app.color.color_222222"))
.fontWeight(600)
}
.padding({
left: this.compDTO.operDataList.length >= 2 ? 20 : 0
})
Row() {
Text("更多")
... ... @@ -129,6 +132,7 @@ export struct HorizontalStrokeCardThreeTwoRadioForMoreComponent {
InfomationCardClick.track(this.compDTO, item, this.pageId, this.pageName)
ProcessUtils.processPage(item)
})
.padding({ right: 16, left: index == 0 ? 20: 0 })
})
}
... ... @@ -190,16 +194,18 @@ export struct HorizontalStrokeCardThreeTwoRadioForMoreComponent {
// .margin({left:16,right:16})
}
// .width("100%")
.width(this.compDTO.operDataList.length >= 2 ? 'calc(18vp + 100%)' : CommonConstants.FULL_WIDTH)
.padding({
left: $r('app.float.card_comp_pagePadding_lf'),
right: $r('app.float.card_comp_pagePadding_lf'),
left: this.compDTO.operDataList.length >= 2 ? 0 : 10,
right: this.compDTO.operDataList.length >= 2 ? 0 : 10,
top: $r('app.float.card_comp_pagePadding_tb'),
bottom: 6
})
.backgroundColor($r("app.color.white"))
// .backgroundColor($r("app.color.color_FE4B05"))
.margin({ bottom: 8 })
.margin({
left: this.compDTO.operDataList.length >= 2 ? -6 : 0,
bottom: 8
})
}
private jumpToLiveMorePage() {
... ...
... ... @@ -122,6 +122,9 @@ export struct LiveHorizontalCardComponent {
.fontColor($r("app.color.color_222222"))
.fontWeight(600)
}
.padding({
left: this.compDTO.operDataList.length >= 2 ? 20 : 0
})
if (this.showMore()) {
Row() {
... ... @@ -139,7 +142,6 @@ export struct LiveHorizontalCardComponent {
}
}
.justifyContent(FlexAlign.SpaceBetween)
// .padding({ left: 16, right: 16 })
.margin({ bottom: 10 })
.width(CommonConstants.FULL_WIDTH)
... ... @@ -177,7 +179,7 @@ export struct LiveHorizontalCardComponent {
.lineHeight(21)
}
.height(this.compDTO.operDataList.length == 2 ? 167 : 134)
.padding({ right: 8 })
.padding({ right: index == this.compDTO.operDataList.length - 1 ? 16 : 8, left: index == 0 ? 20: 0 })
.onClick(() => {
InfomationCardClick.track(this.compDTO, item, this.pageId, this.pageName)
if (item.objectType != '0') {
... ... @@ -251,13 +253,16 @@ export struct LiveHorizontalCardComponent {
})
}
}
// .width(CommonConstants.FULL_WIDTH)
.width(this.compDTO.operDataList.length >= 2 ? 'calc(18vp + 100%)' : CommonConstants.FULL_WIDTH)
.padding({
left: 10,
right: 10,
left: this.compDTO.operDataList.length >= 2 ? 0 : 10,
right: this.compDTO.operDataList.length >= 2 ? 0 : 10,
top: $r('app.float.card_comp_pagePadding_tb'),
bottom: $r('app.float.card_comp_pagePadding_tb')
})
.margin({
left: this.compDTO.operDataList.length >= 2 ? -6 : 0
})
.backgroundColor($r("app.color.white"))
}
... ...