Showing
1 changed file
with
3 additions
and
1 deletions
| @@ -258,7 +258,9 @@ export struct OperRowListView { | @@ -258,7 +258,9 @@ export struct OperRowListView { | ||
| 258 | this.interactData.collectNum = NumberFormatterUtils.formatNumberWithWan(res.data[0]?.collectNum) | 258 | this.interactData.collectNum = NumberFormatterUtils.formatNumberWithWan(res.data[0]?.collectNum) |
| 259 | this.interactData.commentNum = NumberFormatterUtils.formatNumberWithWan(res.data[0]?.commentNum) | 259 | this.interactData.commentNum = NumberFormatterUtils.formatNumberWithWan(res.data[0]?.commentNum) |
| 260 | // 评论组件需要数据 | 260 | // 评论组件需要数据 |
| 261 | - this.publishCommentModel.totalCommentNumer = this.interactData.commentNum + '' || '0' | 261 | + if (Number.parseInt(this.interactData.commentNum) > Number.parseInt(this.publishCommentModel.totalCommentNumer)) { |
| 262 | + this.publishCommentModel.totalCommentNumer = this.interactData.commentNum + '' || '0' | ||
| 263 | + } | ||
| 262 | } | 264 | } |
| 263 | // console.log(TAG, '获取互动点赞等数据===', JSON.stringify(res)) | 265 | // console.log(TAG, '获取互动点赞等数据===', JSON.stringify(res)) |
| 264 | console.log(TAG, 'this.interactData44', JSON.stringify(this.interactData)) | 266 | console.log(TAG, 'this.interactData44', JSON.stringify(this.interactData)) |
-
Please register or login to post a comment