Showing
2 changed files
with
9 additions
and
3 deletions
| @@ -56,7 +56,7 @@ export struct topicInfoView { | @@ -56,7 +56,7 @@ export struct topicInfoView { | ||
| 56 | contentDTO.linkUrl = this.frontLinkObject?.linkUrl | 56 | contentDTO.linkUrl = this.frontLinkObject?.linkUrl |
| 57 | ProcessUtils.processPage(contentDTO) | 57 | ProcessUtils.processPage(contentDTO) |
| 58 | } | 58 | } |
| 59 | - }) | 59 | + }).width(80) |
| 60 | .alignRules({ | 60 | .alignRules({ |
| 61 | left: { anchor: "__container__", align: HorizontalAlign.Start }, | 61 | left: { anchor: "__container__", align: HorizontalAlign.Start }, |
| 62 | bottom: { anchor: "__container__", align: VerticalAlign.Bottom } | 62 | bottom: { anchor: "__container__", align: VerticalAlign.Bottom } |
| @@ -411,7 +411,9 @@ export struct PaperSingleColumn999CardView { | @@ -411,7 +411,9 @@ export struct PaperSingleColumn999CardView { | ||
| 411 | result = `${minutes}分钟前`; | 411 | result = `${minutes}分钟前`; |
| 412 | } else if (hours < 24) { | 412 | } else if (hours < 24) { |
| 413 | result = `${hours}小时前`; | 413 | result = `${hours}小时前`; |
| 414 | - } else { | 414 | + } else if(hours > 24 && hours <48){ |
| 415 | + result = '1天前'; | ||
| 416 | + }else { | ||
| 415 | result = ''; | 417 | result = ''; |
| 416 | } | 418 | } |
| 417 | 419 | ||
| @@ -483,11 +485,15 @@ export struct PaperSingleColumn999CardView { | @@ -483,11 +485,15 @@ export struct PaperSingleColumn999CardView { | ||
| 483 | .fontSize(12) | 485 | .fontSize(12) |
| 484 | .fontColor('#B0B0B0') | 486 | .fontColor('#B0B0B0') |
| 485 | .margin({ left: 16 }) | 487 | .margin({ left: 16 }) |
| 488 | + | ||
| 489 | + ///不显示时间或者不显示评论 | ||
| 490 | + if (this.getPublishTime().length > 0 || this.item.objectType != '2' && this.interactData && this.interactData.commentNum && Number(this.interactData.collectNum) > 0) { | ||
| 486 | Image($r('app.media.point')) | 491 | Image($r('app.media.point')) |
| 487 | .width(16) | 492 | .width(16) |
| 488 | .height(16) | 493 | .height(16) |
| 489 | .margin({ top: 10, bottom: 10 }) | 494 | .margin({ top: 10, bottom: 10 }) |
| 490 | } | 495 | } |
| 496 | + } | ||
| 491 | 497 | ||
| 492 | Text(this.getPublishTime()) | 498 | Text(this.getPublishTime()) |
| 493 | .fontSize(12) | 499 | .fontSize(12) |
| @@ -497,7 +503,7 @@ export struct PaperSingleColumn999CardView { | @@ -497,7 +503,7 @@ export struct PaperSingleColumn999CardView { | ||
| 497 | Text(this.interactData.commentNum + "评") | 503 | Text(this.interactData.commentNum + "评") |
| 498 | .fontSize(12) | 504 | .fontSize(12) |
| 499 | .fontColor('#B0B0B0') | 505 | .fontColor('#B0B0B0') |
| 500 | - .margin({ left: 6 }) | 506 | + .margin({ left: this.getPublishTime().length >0? 6:0 }) |
| 501 | } | 507 | } |
| 502 | } | 508 | } |
| 503 | .justifyContent(FlexAlign.Start) | 509 | .justifyContent(FlexAlign.Start) |
-
Please register or login to post a comment