wangliang_wd

feat:优化早晚报展示

@@ -560,7 +560,7 @@ export struct PaperSingleColumn999CardView { @@ -560,7 +560,7 @@ export struct PaperSingleColumn999CardView {
560 Row() { 560 Row() {
561 Row() { 561 Row() {
562 562
563 - if (this.item.corner.length > 0){ 563 + if (this.item?.corner?.length > 0){
564 Text(this.item.corner) 564 Text(this.item.corner)
565 .fontSize(12) 565 .fontSize(12)
566 .fontColor('#ED2800') 566 .fontColor('#ED2800')
@@ -571,7 +571,7 @@ export struct PaperSingleColumn999CardView { @@ -571,7 +571,7 @@ export struct PaperSingleColumn999CardView {
571 Text(this.buildSourceString()) 571 Text(this.buildSourceString())
572 .fontSize(12) 572 .fontSize(12)
573 .fontColor('#B0B0B0') 573 .fontColor('#B0B0B0')
574 - .margin({ left: this.item.corner.length > 0?10:16 }) 574 + .margin({ left: this.item?.corner?.length > 0?10:16 })
575 575
576 ///不显示时间或者不显示评论 576 ///不显示时间或者不显示评论
577 if (this.getPublishTime().length > 0 || this.item.objectType != '2' && this.interactData && this.interactData.commentNum && Number(this.interactData.commentNum) > 0) { 577 if (this.getPublishTime().length > 0 || this.item.objectType != '2' && this.interactData && this.interactData.commentNum && Number(this.interactData.commentNum) > 0) {