王士厅

视频类型稿件详情页-全部评论,点赞数未统计

@@ -259,19 +259,21 @@ export struct LikeComponent { @@ -259,19 +259,21 @@ export struct LikeComponent {
259 .width(36) 259 .width(36)
260 .height(36) 260 .height(36)
261 .borderRadius(18) 261 .borderRadius(18)
262 - .backgroundColor((this.pageComponentType === 4 || this.pageComponentType === 2) ? '#4D000000' : '#FFF5F5F5') 262 + .backgroundColor((this.pageComponentType === 4 || this.pageComponentType === 2) ? '#4D000000' : this.pageComponentType === 8 ? Color.Transparent : '#FFF5F5F5')
263 Row() { 263 Row() {
264 Text(NumberFormatterUtils.formatNumberWithWan(this.likeCount || '')) 264 Text(NumberFormatterUtils.formatNumberWithWan(this.likeCount || ''))
265 .fontSize(8) 265 .fontSize(8)
266 .fontColor(Color.White) 266 .fontColor(Color.White)
267 - .padding({ left: 4, right: 2 }) 267 + .padding({ left: 8, right: 2 })
268 } 268 }
269 .height(12) 269 .height(12)
270 .alignItems(VerticalAlign.Center) 270 .alignItems(VerticalAlign.Center)
271 - .position({ x: '100%', }) 271 + .position({ x: '100%', y: 10 })
272 .markAnchor({ x: '100%' }) 272 .markAnchor({ x: '100%' })
273 .backgroundImage($r('app.media.ic_like_back')) 273 .backgroundImage($r('app.media.ic_like_back'))
274 - .backgroundImageSize(ImageSize.Auto) 274 + .backgroundImageSize({height: 13})
  275 + .width(this.getMeasureText(NumberFormatterUtils.formatNumberWithWan(this.likeCount || '')) +
  276 + 12)
275 .visibility(this.likeCount > 0 ? Visibility.Visible : Visibility.Hidden) 277 .visibility(this.likeCount > 0 ? Visibility.Visible : Visibility.Hidden)
276 } 278 }
277 .width(36) 279 .width(36)
@@ -90,7 +90,7 @@ export struct DetailDialog { @@ -90,7 +90,7 @@ export struct DetailDialog {
90 }).layoutWeight(1) 90 }).layoutWeight(1)
91 91
92 OperRowListView({ 92 OperRowListView({
93 - componentType: 1, 93 + componentType: 4,
94 pageComponentType: 8, 94 pageComponentType: 8,
95 showBackIcon: false, 95 showBackIcon: false,
96 operationButtonList: ['comment', 'like', 'collect', 'share'], 96 operationButtonList: ['comment', 'like', 'collect', 'share'],