wangliang_wd

feat:优化早晚报

... ... @@ -26,6 +26,7 @@ import { common } from '@kit.AbilityKit';
import TrackingPageBrowseUtils from '../../utils/TrackingPageBrowseUtils'
import {TrackConstants,TrackParamConvert}from 'wdTracking/Index'
import { ColorUtils } from '../../utils/ColorUtils';
import { EmptyComponent,WDViewDefaultType } from '../view/EmptyComponent';
const TAG = 'MorningEveningPaperComponent';
... ... @@ -37,6 +38,7 @@ export struct MorningEveningPaperComponent {
@State compListItem: CompList = {} as CompList
@Provide commentList: InteractDataDTO[] = []
@State audioPlayUrl: string = ""
@State isNoListContent:boolean = false;
// @Consume dailyPaperTopicPageId: number
// @Provide compListItem: CompList = {} as CompList
// @State morningEveningPaperDTO: MorningEveningPaperDTO = {
... ... @@ -172,6 +174,7 @@ export struct MorningEveningPaperComponent {
this.totalTime = DateFormatUtil.secondToTime(duration);
this.progressVal = Math.floor(position * 100 / duration);
}
this.isNoListContent = this.compListItem && this.compListItem?.operDataList?.length > 0 ?false:true
} catch (exception) {
}
... ... @@ -264,12 +267,16 @@ export struct MorningEveningPaperComponent {
}
ListItem() {
SingleColumn999Component({
compListItem: this.compListItem,
})
.margin({
top: this.isHasTopView ? 10 : 44+this.topSafeHeight
if(this.isNoListContent){
EmptyComponent({emptyType:WDViewDefaultType.WDViewDefaultType_NoListContent})
}else {
SingleColumn999Component({
compListItem: this.compListItem,
})
.margin({
top: this.isHasTopView ? 10 : 44+this.topSafeHeight
})
}
}
}
// .height(`calc(100% - ${this.bottomSafeHeight + this.topSafeHeight + 'vp'})`)
... ...
... ... @@ -152,7 +152,7 @@ export struct SingleColumn999Component {
scrollBackward: NestedScrollMode.SELF_FIRST
})
} else {
EmptyComponent({emptyType:WDViewDefaultType.WDViewDefaultType_NoListContent})
// EmptyComponent({emptyType:WDViewDefaultType.WDViewDefaultType_NoListContent})
}
}
... ...