作者 anyv
1 个管道 的构建 通过 耗费 0 秒

5

... ... @@ -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();
... ...
... ... @@ -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>
... ...