Showing
6 changed files
with
7 additions
and
10 deletions
| @@ -226,7 +226,7 @@ export struct CompParser { | @@ -226,7 +226,7 @@ export struct CompParser { | ||
| 226 | } | 226 | } |
| 227 | } else if (this.compDTO.compStyle === CompStyle.Card_03 || this.compDTO.compStyle === CompStyle.Card_13 || this.compDTO.compStyle === CompStyle.Card_06 || | 227 | } else if (this.compDTO.compStyle === CompStyle.Card_03 || this.compDTO.compStyle === CompStyle.Card_13 || this.compDTO.compStyle === CompStyle.Card_06 || |
| 228 | this.compDTO.compStyle === CompStyle.Card_04 || this.compDTO.compStyle === CompStyle.Card_02 || this.compDTO.compStyle === CompStyle.Card_17) { // 无图卡 左文右图卡 小视频卡 三图卡 大图卡 图集卡 | 228 | this.compDTO.compStyle === CompStyle.Card_04 || this.compDTO.compStyle === CompStyle.Card_02 || this.compDTO.compStyle === CompStyle.Card_17) { // 无图卡 左文右图卡 小视频卡 三图卡 大图卡 图集卡 |
| 229 | - Divider().strokeWidth(1).color('#f5f5f5').width(CommonConstants.FULL_WIDTH).padding({ left: 10, right: 10 }).margin({top:14}) | 229 | + Divider().strokeWidth(1).color('#f5f5f5').width(CommonConstants.FULL_WIDTH).padding({ left: 10, right: 10 }) |
| 230 | } else if (this.compDTO.compType === 'appStyle' || this.compDTO.compStyle === CompStyle.Zh_Single_Row_01 || this.compDTO.compStyle === CompStyle.Card_Comp_Adv || this.compDTO.compStyle === CompStyle.Zh_Single_Column_02) { | 230 | } else if (this.compDTO.compType === 'appStyle' || this.compDTO.compStyle === CompStyle.Zh_Single_Row_01 || this.compDTO.compStyle === CompStyle.Card_Comp_Adv || this.compDTO.compStyle === CompStyle.Zh_Single_Column_02) { |
| 231 | if ( | 231 | if ( |
| 232 | this.nextCompDTO.compStyle === CompStyle.Card_09 || | 232 | this.nextCompDTO.compStyle === CompStyle.Card_09 || |
| @@ -95,7 +95,7 @@ export struct CardMediaInfo { | @@ -95,7 +95,7 @@ export struct CardMediaInfo { | ||
| 95 | 95 | ||
| 96 | } | 96 | } |
| 97 | } | 97 | } |
| 98 | - .margin({ right: 8}) | 98 | + .margin({ right: 5}) |
| 99 | } else if (this.contentDTO.objectType === '2') { | 99 | } else if (this.contentDTO.objectType === '2') { |
| 100 | // liveInfo.liveState 直播新闻-直播状态 wait待开播running直播中end已结束cancel已取消paused暂停 | 100 | // liveInfo.liveState 直播新闻-直播状态 wait待开播running直播中end已结束cancel已取消paused暂停 |
| 101 | // 显示直播信息 | 101 | // 显示直播信息 |
| @@ -193,7 +193,7 @@ export struct CardMediaInfo { | @@ -193,7 +193,7 @@ export struct CardMediaInfo { | ||
| 193 | .mediaTextImgtype() | 193 | .mediaTextImgtype() |
| 194 | .fontFamily('BebasNeue') | 194 | .fontFamily('BebasNeue') |
| 195 | } | 195 | } |
| 196 | - .margin({ right: 8}) | 196 | + .margin({ right: 5 }) |
| 197 | 197 | ||
| 198 | } else if (this.contentDTO.objectType === '13') { | 198 | } else if (this.contentDTO.objectType === '13') { |
| 199 | // 显示音频信息 | 199 | // 显示音频信息 |
| @@ -67,7 +67,7 @@ export struct Card11Component { | @@ -67,7 +67,7 @@ export struct Card11Component { | ||
| 67 | Span(this.contentDTO.newsTitle) | 67 | Span(this.contentDTO.newsTitle) |
| 68 | } | 68 | } |
| 69 | } | 69 | } |
| 70 | - .lineHeight(27) | 70 | + .lineHeight(25) |
| 71 | .fontSize($r("app.float.font_size_18")) | 71 | .fontSize($r("app.float.font_size_18")) |
| 72 | .fontColor(this.clicked ? 0x848484 : $r("app.color.color_222222")) | 72 | .fontColor(this.clicked ? 0x848484 : $r("app.color.color_222222")) |
| 73 | .maxLines(3) | 73 | .maxLines(3) |
| @@ -63,9 +63,6 @@ export struct Card17Component { | @@ -63,9 +63,6 @@ export struct Card17Component { | ||
| 63 | .lineHeight(25) | 63 | .lineHeight(25) |
| 64 | .maxLines(3) | 64 | .maxLines(3) |
| 65 | .width(CommonConstants.FULL_WIDTH) | 65 | .width(CommonConstants.FULL_WIDTH) |
| 66 | - .margin({ | ||
| 67 | - top: 14 | ||
| 68 | - }) | ||
| 69 | 66 | ||
| 70 | Stack({ alignContent: Alignment.BottomEnd }) { | 67 | Stack({ alignContent: Alignment.BottomEnd }) { |
| 71 | // 三个图, | 68 | // 三个图, |
| @@ -137,7 +134,7 @@ export struct Card17Component { | @@ -137,7 +134,7 @@ export struct Card17Component { | ||
| 137 | }) | 134 | }) |
| 138 | 135 | ||
| 139 | // 评论等信息 | 136 | // 评论等信息 |
| 140 | - CardSourceInfo({ compDTO: this.compDTO, contentDTO: this.contentDTO }) | 137 | + CardSourceInfo({ compDTO: this.compDTO, contentDTO: this.contentDTO, viewShowData: false }) |
| 141 | } | 138 | } |
| 142 | .padding({ | 139 | .padding({ |
| 143 | left: 10, | 140 | left: 10, |
| @@ -86,7 +86,7 @@ export struct Card20Component { | @@ -86,7 +86,7 @@ export struct Card20Component { | ||
| 86 | .fontSize($r('app.float.font_size_18')) | 86 | .fontSize($r('app.float.font_size_18')) |
| 87 | .fontColor(this.clicked ? 0x848484 : $r('app.color.color_222222')) | 87 | .fontColor(this.clicked ? 0x848484 : $r('app.color.color_222222')) |
| 88 | .maxLines(3) | 88 | .maxLines(3) |
| 89 | - .lineHeight(27) | 89 | + .lineHeight(25) |
| 90 | .textOverflow({ overflow: TextOverflow.Ellipsis }) // 超出的部分显示省略号。 | 90 | .textOverflow({ overflow: TextOverflow.Ellipsis }) // 超出的部分显示省略号。 |
| 91 | .align(Alignment.Start) | 91 | .align(Alignment.Start) |
| 92 | .textIndent((this.contentDTO.newTags?.length || this.contentDTO.seoTags?.length) > 2 && | 92 | .textIndent((this.contentDTO.newTags?.length || this.contentDTO.seoTags?.length) > 2 && |
-
Please register or login to post a comment