Showing
3 changed files
with
18 additions
and
2 deletions
| @@ -12,6 +12,7 @@ import { LiveRoomDataBean } from '../live/LiveRoomDataBean'; | @@ -12,6 +12,7 @@ import { LiveRoomDataBean } from '../live/LiveRoomDataBean'; | ||
| 12 | @Observed | 12 | @Observed |
| 13 | export class ContentDTO implements BaseDTO { | 13 | export class ContentDTO implements BaseDTO { |
| 14 | seoTags: string = ''; | 14 | seoTags: string = ''; |
| 15 | + cornerMark:string = ''; | ||
| 15 | liveType?: string; // 直播新闻-直播状态 | 16 | liveType?: string; // 直播新闻-直播状态 |
| 16 | expIds: string = ''; | 17 | expIds: string = ''; |
| 17 | itemId: string = ''; | 18 | itemId: string = ''; |
| @@ -158,6 +159,7 @@ export class ContentDTO implements BaseDTO { | @@ -158,6 +159,7 @@ export class ContentDTO implements BaseDTO { | ||
| 158 | content.rmhInfo = old.rmhInfo; | 159 | content.rmhInfo = old.rmhInfo; |
| 159 | content.photoNum = old.photoNum; | 160 | content.photoNum = old.photoNum; |
| 160 | content.corner = old.corner; | 161 | content.corner = old.corner; |
| 162 | + content.cornerMark = old.cornerMark; | ||
| 161 | content.rmhPlatform = old.rmhPlatform; | 163 | content.rmhPlatform = old.rmhPlatform; |
| 162 | content.newTags = old.newTags; | 164 | content.newTags = old.newTags; |
| 163 | content.titleShow = old.titleShow; | 165 | content.titleShow = old.titleShow; |
| @@ -54,6 +54,12 @@ export struct CardSourceInfo { | @@ -54,6 +54,12 @@ export struct CardSourceInfo { | ||
| 54 | .fontColor($r("app.color.color_ED2800")) | 54 | .fontColor($r("app.color.color_ED2800")) |
| 55 | .margin({ right: 2 }) | 55 | .margin({ right: 2 }) |
| 56 | } | 56 | } |
| 57 | + if(this.contentDTO.cornerMark){ | ||
| 58 | + Text(this.contentDTO.cornerMark) | ||
| 59 | + .fontSize($r("app.float.font_size_11")) | ||
| 60 | + .fontColor($r("app.color.color_ED2800")) | ||
| 61 | + .margin({ right: 2 }) | ||
| 62 | + } | ||
| 57 | if (this.contentDTO.rmhPlatform === 1) { | 63 | if (this.contentDTO.rmhPlatform === 1) { |
| 58 | Text(this.contentDTO.rmhInfo?.rmhName) | 64 | Text(this.contentDTO.rmhInfo?.rmhName) |
| 59 | .fontSize($r("app.float.font_size_11")) | 65 | .fontSize($r("app.float.font_size_11")) |
| @@ -91,7 +97,14 @@ export struct CardSourceInfo { | @@ -91,7 +97,14 @@ export struct CardSourceInfo { | ||
| 91 | // .fontColor($r("app.color.color_B0B0B0")) | 97 | // .fontColor($r("app.color.color_B0B0B0")) |
| 92 | // .flexShrink(0); | 98 | // .flexShrink(0); |
| 93 | // } | 99 | // } |
| 94 | - if (this.contentDTO.source && this.showTime()) { | 100 | + // if (this.contentDTO.source && this.showTime()) { |
| 101 | + // Text(this.handleTimeStr()) | ||
| 102 | + // .fontSize($r("app.float.font_size_11")) | ||
| 103 | + // .fontColor($r("app.color.color_B0B0B0")) | ||
| 104 | + // .flexShrink(0) | ||
| 105 | + // .margin({right: 4}) | ||
| 106 | + // } | ||
| 107 | + if (this.showTime()) { | ||
| 95 | Text(this.handleTimeStr()) | 108 | Text(this.handleTimeStr()) |
| 96 | .fontSize($r("app.float.font_size_11")) | 109 | .fontSize($r("app.float.font_size_11")) |
| 97 | .fontColor($r("app.color.color_B0B0B0")) | 110 | .fontColor($r("app.color.color_B0B0B0")) |
| @@ -460,10 +460,11 @@ export struct SearchResultContentComponent { | @@ -460,10 +460,11 @@ export struct SearchResultContentComponent { | ||
| 460 | console.log('获取value2',JSON.stringify(value)) | 460 | console.log('获取value2',JSON.stringify(value)) |
| 461 | let liveType = value.data?.liveType; | 461 | let liveType = value.data?.liveType; |
| 462 | let seoTags = value.data?.seoTags | 462 | let seoTags = value.data?.seoTags |
| 463 | + let cornerMark = value.data?.cornerMark | ||
| 463 | let contentDTO = new ContentDTO(); | 464 | let contentDTO = new ContentDTO(); |
| 464 | contentDTO.liveType = liveType?liveType: "" | 465 | contentDTO.liveType = liveType?liveType: "" |
| 465 | contentDTO.seoTags = seoTags?seoTags: "" | 466 | contentDTO.seoTags = seoTags?seoTags: "" |
| 466 | - // console.log('获取value333333333',JSON.stringify(contentDTO.liveType)) | 467 | + contentDTO.cornerMark = cornerMark?cornerMark: "" |
| 467 | contentDTO.appStyle = value.data.appStyle + "" | 468 | contentDTO.appStyle = value.data.appStyle + "" |
| 468 | contentDTO.cityCode = value.data.cityCode | 469 | contentDTO.cityCode = value.data.cityCode |
| 469 | contentDTO.coverSize = "" | 470 | contentDTO.coverSize = "" |
-
Please register or login to post a comment