zhaojunkai

人民号-点赞优化

@@ -50,6 +50,7 @@ export struct LikeComponent { @@ -50,6 +50,7 @@ export struct LikeComponent {
50 //2: 新闻页中间位置样式 50 //2: 新闻页中间位置样式
51 this.likeCompStyle2() 51 this.likeCompStyle2()
52 } else if (this.componentType == 3) { 52 } else if (this.componentType == 3) {
  53 + //卡片底部互动样式
53 this.likeCompStyle3() 54 this.likeCompStyle3()
54 } else if (this.componentType == 4) { 55 } else if (this.componentType == 4) {
55 // 直播,点赞按钮底测有灰色圆角背景+右上点赞数量 56 // 直播,点赞按钮底测有灰色圆角背景+右上点赞数量
@@ -67,7 +68,7 @@ export struct LikeComponent { @@ -67,7 +68,7 @@ export struct LikeComponent {
67 if (this.likesStyle === 1) { 68 if (this.likesStyle === 1) {
68 return { 69 return {
69 url: this.likeStatus ? $r(`app.media.ic_like_check`) : 70 url: this.likeStatus ? $r(`app.media.ic_like_check`) :
70 - this.styleType == 1 ? $r('app.media.icon_like_default') : $r(`app.media.ic_like_uncheck`), 71 + this.styleType == 1 ? this.componentType == 3?$r(`app.media.CarderInteraction_like`):$r('app.media.icon_like_default') : $r(`app.media.ic_like_uncheck`),
71 name: '赞' 72 name: '赞'
72 } 73 }
73 } else if (this.likesStyle === 2) { 74 } else if (this.likesStyle === 2) {
@@ -133,8 +134,8 @@ export struct LikeComponent { @@ -133,8 +134,8 @@ export struct LikeComponent {
133 Image(this.transLikeStyle().url) 134 Image(this.transLikeStyle().url)
134 .width(18) 135 .width(18)
135 .height(18) 136 .height(18)
136 - // Text(this.likeStatus ? '已赞' : '点赞')  
137 - Text(this.likeCount > 0 ? this.likeCount.toString() : '点赞') 137 + Text(this.likeStatus ? '已赞' : '点赞')
  138 + // Text(this.likeCount > 0 ? this.likeCount.toString() : '点赞')
138 .margin({ left: 4 }) 139 .margin({ left: 4 })
139 .fontSize(14) 140 .fontSize(14)
140 .fontColor(this.likeStatus ? '#ED2800' : '#666666') 141 .fontColor(this.likeStatus ? '#ED2800' : '#666666')