diff --git a/app/portal/controller/ShopcartController.php b/app/portal/controller/ShopcartController.php
index 29894e0..3f2ea21 100644
--- a/app/portal/controller/ShopcartController.php
+++ b/app/portal/controller/ShopcartController.php
@@ -30,6 +30,8 @@ class ShopcartController extends WeChatBaseController{
                 $goods_data[$key]['price1'] = $price[1];
             }
         }
+        $num = count($goods_id);
+        $this -> assign('num',$num);
         $this -> assign('goods_data',$goods_data);
 
         return $this -> fetch();
diff --git a/public/themes/simpleboot3/portal/shopcart/shop_cart.html b/public/themes/simpleboot3/portal/shopcart/shop_cart.html
index 6446097..9419c49 100644
--- a/public/themes/simpleboot3/portal/shopcart/shop_cart.html
+++ b/public/themes/simpleboot3/portal/shopcart/shop_cart.html
@@ -19,7 +19,7 @@
 </div>
 <div class="shopping_cartBox">
     <!-- 几件 -->
-    <h2 class="sh_cartNum">共有3件商品</h2>
+    <h2 class="sh_cartNum">共有{$num}件商品</h2>
     <ul class="order_newsUl sp_cartUl" style="margin-bottom:2.1rem">
         <volist name="goods_data" id="vo">
             <li>