From 52f8e217f36091ed0742f07e356c3bfdb7f246f0 Mon Sep 17 00:00:00 2001 From: owen Date: Sun, 24 Sep 2023 23:26:57 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=84=E8=AE=BA=EF=BC=9A=E4=BF=AE=E6=AD=A3?= =?UTF-8?q?=E5=A5=BD=E8=AF=84=E7=8E=87=EF=BC=8C=E8=88=8D=E5=BC=83=E5=B0=8F?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/activity/goods_seckill_details/index.vue | 2 +- pages/goods_details/index.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/activity/goods_seckill_details/index.vue b/pages/activity/goods_seckill_details/index.vue index ca5eaf34..74fde159 100644 --- a/pages/activity/goods_seckill_details/index.vue +++ b/pages/activity/goods_seckill_details/index.vue @@ -640,7 +640,7 @@ getProductReplyCount: function() { ProductCommentApi.getCommentStatistics(this.activity.spuId).then(res => { const count = res.data.goodCount + res.data.mediocreCount + res.data.negativeCount; - this.$set(this, 'replyChance', 100.0 * res.data.goodCount / count); + this.$set(this, 'replyChance', (100.0 * res.data.goodCount / count).toFixed(0)); this.$set(this, 'replyCount', count); }); }, diff --git a/pages/goods_details/index.vue b/pages/goods_details/index.vue index db7e67ef..91647fc9 100644 --- a/pages/goods_details/index.vue +++ b/pages/goods_details/index.vue @@ -778,7 +778,7 @@ getProductReplyCount: function() { ProductCommentApi.getCommentStatistics(this.id).then(res => { const count = res.data.goodCount + res.data.mediocreCount + res.data.negativeCount; - this.$set(this, 'replyChance', 100.0 * res.data.goodCount / count); + this.$set(this, 'replyChance', (100.0 * res.data.goodCount / count).toFixed(0)); this.$set(this, 'replyCount', count); }); },