Merge branch 'main' of http://192.168.1.42/developOne/harmonyPool
Showing
2 changed files
with
12 additions
and
10 deletions
| @@ -258,7 +258,7 @@ export struct MorningEveningPaperComponent { | @@ -258,7 +258,7 @@ export struct MorningEveningPaperComponent { | ||
| 258 | }) | 258 | }) |
| 259 | } | 259 | } |
| 260 | } | 260 | } |
| 261 | - .height(`calc(100% - ${this.bottomSafeHeight + this.topSafeHeight + 'vp'})`) | 261 | + .height(`calc(100% - ${this.bottomSafeHeight + this.topSafeHeight + 'vp'})`).scrollBar(BarState.Off) |
| 262 | 262 | ||
| 263 | PaperTitleComponent() | 263 | PaperTitleComponent() |
| 264 | } | 264 | } |
| @@ -412,7 +412,7 @@ export struct PaperSingleColumn999CardView { | @@ -412,7 +412,7 @@ export struct PaperSingleColumn999CardView { | ||
| 412 | } else if (hours < 24) { | 412 | } else if (hours < 24) { |
| 413 | result = `${hours}小时前`; | 413 | result = `${hours}小时前`; |
| 414 | } else { | 414 | } else { |
| 415 | - result = `${days}天前`; | 415 | + result = ''; |
| 416 | } | 416 | } |
| 417 | 417 | ||
| 418 | console.log(result); | 418 | console.log(result); |
| @@ -422,12 +422,13 @@ export struct PaperSingleColumn999CardView { | @@ -422,12 +422,13 @@ export struct PaperSingleColumn999CardView { | ||
| 422 | build() { | 422 | build() { |
| 423 | Column() { | 423 | Column() { |
| 424 | Text(this.item?.newsTitle) | 424 | Text(this.item?.newsTitle) |
| 425 | + .fontColor('#222222') | ||
| 425 | .fontSize(16) | 426 | .fontSize(16) |
| 426 | .fontWeight(FontWeight.Bold) | 427 | .fontWeight(FontWeight.Bold) |
| 427 | .alignSelf(ItemAlign.Start) | 428 | .alignSelf(ItemAlign.Start) |
| 428 | .maxLines(3) | 429 | .maxLines(3) |
| 429 | .textOverflow({ overflow: TextOverflow.Ellipsis })// 超出的部分显示省略号。 | 430 | .textOverflow({ overflow: TextOverflow.Ellipsis })// 超出的部分显示省略号。 |
| 430 | - .margin({ left: 22, right: 22, top: 28 }) | 431 | + .margin({ left: 16, right: 16, top: 16 }) |
| 431 | if (this.item?.coverUrl) { | 432 | if (this.item?.coverUrl) { |
| 432 | Stack({ alignContent: Alignment.BottomEnd }) { | 433 | Stack({ alignContent: Alignment.BottomEnd }) { |
| 433 | Image(this.item?.coverUrl) | 434 | Image(this.item?.coverUrl) |
| @@ -462,35 +463,36 @@ export struct PaperSingleColumn999CardView { | @@ -462,35 +463,36 @@ export struct PaperSingleColumn999CardView { | ||
| 462 | .width(CommonConstants.FULL_PARENT) | 463 | .width(CommonConstants.FULL_PARENT) |
| 463 | .justifyContent(FlexAlign.End) | 464 | .justifyContent(FlexAlign.End) |
| 464 | } | 465 | } |
| 465 | - }.margin({ left: 22, right: 22 }) | 466 | + }.margin({ left: 16, right: 16 }) |
| 466 | } | 467 | } |
| 467 | if (this.item?.newsSummary) { | 468 | if (this.item?.newsSummary) { |
| 468 | Text(this.item?.newsSummary) | 469 | Text(this.item?.newsSummary) |
| 470 | + .fontColor('#6666666') | ||
| 469 | .fontSize(14) | 471 | .fontSize(14) |
| 470 | .padding({ top: 10 }) | 472 | .padding({ top: 10 }) |
| 471 | .alignSelf(ItemAlign.Start) | 473 | .alignSelf(ItemAlign.Start) |
| 472 | .maxLines(3) | 474 | .maxLines(3) |
| 473 | .textOverflow({ overflow: TextOverflow.Ellipsis })// 超出的部分显示省略号。 | 475 | .textOverflow({ overflow: TextOverflow.Ellipsis })// 超出的部分显示省略号。 |
| 474 | - .margin({ left: 22, right: 22 }) | 476 | + .margin({ left: 16, right: 16 }) |
| 475 | } | 477 | } |
| 476 | if (this.item) { | 478 | if (this.item) { |
| 477 | Row() { | 479 | Row() { |
| 478 | Row() { | 480 | Row() { |
| 479 | Text(this.item?.source) | 481 | Text(this.item?.source) |
| 480 | .fontSize(12) | 482 | .fontSize(12) |
| 481 | - .fontColor(Color.Gray) | ||
| 482 | - .margin({ left: 22 }) | 483 | + .fontColor('#B0B0B0') |
| 484 | + .margin({ left: 16 }) | ||
| 483 | Image($r('app.media.point')) | 485 | Image($r('app.media.point')) |
| 484 | .width(16) | 486 | .width(16) |
| 485 | .height(16) | 487 | .height(16) |
| 486 | .margin({ top: 10, bottom: 10 }) | 488 | .margin({ top: 10, bottom: 10 }) |
| 487 | Text(this.getPublishTime()) | 489 | Text(this.getPublishTime()) |
| 488 | .fontSize(12) | 490 | .fontSize(12) |
| 489 | - .fontColor(Color.Gray) | ||
| 490 | - if (this.interactData && this.interactData.commentNum && Number(this.interactData.collectNum) > 0) { | 491 | + .fontColor('#B0B0B0') |
| 492 | + if (this.item.objectType != '2' && this.interactData && this.interactData.commentNum && Number(this.interactData.collectNum) > 0) { | ||
| 491 | Text(this.interactData.commentNum + "评") | 493 | Text(this.interactData.commentNum + "评") |
| 492 | .fontSize(12) | 494 | .fontSize(12) |
| 493 | - .fontColor(Color.Gray) | 495 | + .fontColor('#B0B0B0') |
| 494 | .margin({ left: 6 }) | 496 | .margin({ left: 6 }) |
| 495 | } | 497 | } |
| 496 | } | 498 | } |
-
Please register or login to post a comment