Showing
1 changed file
with
3 additions
and
7 deletions
| @@ -107,8 +107,8 @@ export struct ImageAndTextPageComponent { | @@ -107,8 +107,8 @@ export struct ImageAndTextPageComponent { | ||
| 107 | .height(24) | 107 | .height(24) |
| 108 | .margin({ right: 5 }) | 108 | .margin({ right: 5 }) |
| 109 | } | 109 | } |
| 110 | - if (this.interactData?.likeNum) { | ||
| 111 | - Text(`${this.interactData?.likeNum}`) | 110 | + if (this.interactData?.likeNum != 0) { |
| 111 | + Text(NumberFormatterUtils.formatNumberWithWan(this.interactData?.likeNum)) | ||
| 112 | .fontSize(16) | 112 | .fontSize(16) |
| 113 | .fontColor(this.newsStatusOfUser?.likeStatus === '1' ? '#ED2800' : '#999999') | 113 | .fontColor(this.newsStatusOfUser?.likeStatus === '1' ? '#ED2800' : '#999999') |
| 114 | .fontWeight(500) | 114 | .fontWeight(500) |
| @@ -301,12 +301,8 @@ export struct ImageAndTextPageComponent { | @@ -301,12 +301,8 @@ export struct ImageAndTextPageComponent { | ||
| 301 | } | 301 | } |
| 302 | PageRepository.getContentInteract(params).then(res => { | 302 | PageRepository.getContentInteract(params).then(res => { |
| 303 | if (res.data) { | 303 | if (res.data) { |
| 304 | - this.interactData.likeNum = NumberFormatterUtils.formatNumberWithWan(res.data[0]?.likeNum) | ||
| 305 | - this.interactData.collectNum = NumberFormatterUtils.formatNumberWithWan(res.data[0]?.collectNum) | ||
| 306 | - this.interactData.commentNum = NumberFormatterUtils.formatNumberWithWan(res.data[0]?.commentNum) | 304 | + this.interactData =res.data[0] |
| 307 | } | 305 | } |
| 308 | - console.log(TAG, '获取互动点赞等数据===', JSON.stringify(res)) | ||
| 309 | - console.log(TAG, 'this.interactData', JSON.stringify(this.interactData)) | ||
| 310 | }) | 306 | }) |
| 311 | } | 307 | } |
| 312 | 308 |
-
Please register or login to post a comment