From 3b6ffca2f6dfb9dac0e352500344010003fa803d Mon Sep 17 00:00:00 2001 From: gongfuxiang <2499232802@qq.com> Date: Thu, 11 Jul 2019 23:20:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E8=AF=84=E4=BB=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/service/GoodsCommentsService.php | 2 +- .../old/weixin/pages/goods-comment/goods-comment.wxml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/application/service/GoodsCommentsService.php b/application/service/GoodsCommentsService.php index bfd800351..c55a3d0f8 100644 --- a/application/service/GoodsCommentsService.php +++ b/application/service/GoodsCommentsService.php @@ -586,7 +586,7 @@ class GoodsCommentsService if($rating > 0 && $rating <= 5) { $rating_list[$rating]['count'] = $count; - $rating_list[$rating]['portion'] = round($count/$sum, 2)*100; + $rating_list[$rating]['portion'] = round(($count/$sum)*100); } } } diff --git a/public/appmini/old/weixin/pages/goods-comment/goods-comment.wxml b/public/appmini/old/weixin/pages/goods-comment/goods-comment.wxml index e33735797..b5edef4ed 100644 --- a/public/appmini/old/weixin/pages/goods-comment/goods-comment.wxml +++ b/public/appmini/old/weixin/pages/goods-comment/goods-comment.wxml @@ -5,8 +5,8 @@ {{goods_score.avg || '0.0'}} - - {item.name}}({{item.portion}}%) + + {{item.name}} @@ -26,7 +26,7 @@ {{item.content}} {{item.msg}} - 管理员回复: + 管理员回复: {{item.reply}}