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}}