Showing
1 changed file
with
2 additions
and
0 deletions
| @@ -258,8 +258,10 @@ export struct OperRowListView { | @@ -258,8 +258,10 @@ 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 | + if (Number.parseInt(this.interactData.commentNum) > Number.parseInt(this.publishCommentModel.totalCommentNumer)) { | ||
| 261 | this.publishCommentModel.totalCommentNumer = this.interactData.commentNum + '' || '0' | 262 | this.publishCommentModel.totalCommentNumer = this.interactData.commentNum + '' || '0' |
| 262 | } | 263 | } |
| 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)) |
| 265 | console.log(TAG, 'this.publishCommentModel', JSON.stringify(this.publishCommentModel)) | 267 | console.log(TAG, 'this.publishCommentModel', JSON.stringify(this.publishCommentModel)) |
-
Please register or login to post a comment