wangliang_wd

feat:优化早晚报仅WiFi展示逻辑

1 import { Action, ContentDTO, Params, InteractDataDTO } from 'wdBean'; 1 import { Action, ContentDTO, Params, InteractDataDTO } from 'wdBean';
2 import { CommonConstants, ConfigConstants, ScreenType } from 'wdConstant'; 2 import { CommonConstants, ConfigConstants, ScreenType } from 'wdConstant';
3 -import { Logger, ToastUtils, DateTimeUtils } from 'wdKit'; 3 +import { Logger, ToastUtils, DateTimeUtils, DisplayUtils } from 'wdKit';
4 import { CompUtils } from '../../utils/CompUtils'; 4 import { CompUtils } from '../../utils/CompUtils';
5 import { ProcessUtils, WDRouterRule } from 'wdRouter'; 5 import { ProcessUtils, WDRouterRule } from 'wdRouter';
6 import { TrackConstants, 6 import { TrackConstants,
@@ -443,11 +443,14 @@ export struct PaperSingleColumn999CardView { @@ -443,11 +443,14 @@ export struct PaperSingleColumn999CardView {
443 .margin({ left: 16, right: 16, top: 16 }) 443 .margin({ left: 16, right: 16, top: 16 })
444 if (this.item?.coverUrl) { 444 if (this.item?.coverUrl) {
445 Stack({ alignContent: Alignment.BottomEnd }) { 445 Stack({ alignContent: Alignment.BottomEnd }) {
446 - Image(this.loadImg?this.item?.coverUrl:'') 446 + Image('')
447 .borderRadius(5) 447 .borderRadius(5)
448 .objectFit(ImageFit.Fill) 448 .objectFit(ImageFit.Fill)
449 - .aspectRatio(319 / 179) ///图片设计比例 449 + // .aspectRatio(319 / 179) ///图片设计比例
450 .padding({ top: 10 }) 450 .padding({ top: 10 })
  451 + .backgroundColor('#f5f5f5')
  452 + .width('100%')
  453 + .height((DisplayUtils.getDeviceWidth() - 66)*(179 / 319))
451 //视频 454 //视频
452 if (this.item?.videoInfo) { 455 if (this.item?.videoInfo) {
453 Row() { 456 Row() {