Showing
6 changed files
with
13 additions
and
10 deletions
| @@ -78,25 +78,28 @@ export struct LiveLikeComponent { | @@ -78,25 +78,28 @@ export struct LiveLikeComponent { | ||
| 78 | transLikeStyle(): ILikeStyleResp { | 78 | transLikeStyle(): ILikeStyleResp { |
| 79 | if (this.likesStyle === 'love' || this.likesStyle === 'thumb') { | 79 | if (this.likesStyle === 'love' || this.likesStyle === 'thumb') { |
| 80 | return { | 80 | return { |
| 81 | - url: this.likeStatus ? $r(`app.media.ic_like_check`) : | ||
| 82 | - this.styleType == 1 ? $r('app.media.icon_like_default') : $r(`app.media.ic_like_uncheck`), | 81 | + url: this.likeStatus ? $r('app.media.ic_like_check') : |
| 82 | + this.styleType == 1 ? $r('app.media.icon_like_default') : $r('app.media.ic_like_uncheck'), | ||
| 83 | name: '赞' | 83 | name: '赞' |
| 84 | } | 84 | } |
| 85 | } else if (this.likesStyle === 'pray') { | 85 | } else if (this.likesStyle === 'pray') { |
| 86 | return { | 86 | return { |
| 87 | - url: this.likeStatus ? $r(`app.media.ic_thub_check`) : $r(`app.media.ic_thub_uncheck`), | 87 | + url: this.likeStatus ? $r('app.media.ic_thub_check') : |
| 88 | + this.styleType == 1 ? $r('app.media.icon_like_unselect_light_pray') : | ||
| 89 | + $r('app.media.icon_like_unselect_night_pray'), | ||
| 88 | name: '祈祷' | 90 | name: '祈祷' |
| 89 | } | 91 | } |
| 90 | } else if (this.likesStyle === 'mourning') { | 92 | } else if (this.likesStyle === 'mourning') { |
| 91 | return { | 93 | return { |
| 92 | - url: this.likeStatus ? $r(`app.media.ic_candle_check`) : | ||
| 93 | - $r(`app.media.ic_candle_uncheck`), | 94 | + url: this.likeStatus ? $r('app.media.ic_candle_check') : |
| 95 | + this.styleType == 1 ? $r('app.media.icon_like_unselect_light_candle') : | ||
| 96 | + $r('app.media.icon_like_unselect_night_candle'), | ||
| 94 | name: '默哀' | 97 | name: '默哀' |
| 95 | } | 98 | } |
| 96 | } | 99 | } |
| 97 | return { | 100 | return { |
| 98 | - url: this.likeStatus ? $r(`app.media.ic_like_check`) : | ||
| 99 | - this.styleType == 1 ? $r('app.media.icon_like_default') : $r(`app.media.ic_like_uncheck`), | 101 | + url: this.likeStatus ? $r('app.media.ic_like_check') : |
| 102 | + this.styleType == 1 ? $r('app.media.icon_like_default') : $r('app.media.ic_like_uncheck'), | ||
| 100 | name: '点赞' | 103 | name: '点赞' |
| 101 | } | 104 | } |
| 102 | } | 105 | } |
| @@ -106,8 +109,8 @@ export struct LiveLikeComponent { | @@ -106,8 +109,8 @@ export struct LiveLikeComponent { | ||
| 106 | Stack({ alignContent: Alignment.TopEnd }) { | 109 | Stack({ alignContent: Alignment.TopEnd }) { |
| 107 | Column() { | 110 | Column() { |
| 108 | Image(this.transLikeStyle().url) | 111 | Image(this.transLikeStyle().url) |
| 109 | - .width(24) | ||
| 110 | - .height(24) | 112 | + .width(((this.likesStyle === 'mourning'||this.likesStyle === 'pray')&& !this.likeStatus) ?36:24) |
| 113 | + .height(((this.likesStyle === 'mourning'||this.likesStyle === 'pray')&& !this.likeStatus)?36:24) | ||
| 111 | } | 114 | } |
| 112 | .justifyContent(FlexAlign.Center) | 115 | .justifyContent(FlexAlign.Center) |
| 113 | .width(36) | 116 | .width(36) |
| @@ -252,7 +252,7 @@ export struct LiveOperRowListView { | @@ -252,7 +252,7 @@ export struct LiveOperRowListView { | ||
| 252 | }) | 252 | }) |
| 253 | } | 253 | } |
| 254 | .width(48) | 254 | .width(48) |
| 255 | - .margin({left:this.isLlive?0:10}) | 255 | + .margin({left:this.isLlive?0:5}) |
| 256 | .visibility(this.likesStyle == 4 || this.likesStyle == 'empty' || !this.openLikes ? Visibility.None : Visibility.Visible) | 256 | .visibility(this.likesStyle == 4 || this.likesStyle == 'empty' || !this.openLikes ? Visibility.None : Visibility.Visible) |
| 257 | } | 257 | } |
| 258 | 258 |
sight_harmony/features/wdComponent/src/main/resources/base/media/icon_like_unselect_light_candle.png
0 → 100644
1.14 KB
sight_harmony/features/wdComponent/src/main/resources/base/media/icon_like_unselect_light_pray.png
0 → 100644
1.41 KB
-
Please register or login to post a comment