...
|
...
|
@@ -107,7 +107,7 @@ class ZjCartController extends HomeBaseController |
|
|
$this->redirect(url('index/Index/index'));
|
|
|
} else {
|
|
|
$total_num = 0;
|
|
|
$total_price = 0;
|
|
|
$whole = 0;
|
|
|
if (session('cart.id') != null && session('goods.id') == null) {
|
|
|
$data = Db::name('zj_cart')->alias('c')
|
|
|
->join('zj_goods g', 'c.gid=g.id')
|
...
|
...
|
@@ -135,7 +135,7 @@ class ZjCartController extends HomeBaseController |
|
|
}
|
|
|
$total_num += $item['num'];
|
|
|
$item['sum_price'] = $item['price'] * $item['num'];
|
|
|
$total_price += 1;
|
|
|
$whole += $item['sum_price'];
|
|
|
$data[$k] = $item;
|
|
|
}
|
|
|
$address = Db::name('zj_user_place')
|
...
|
...
|
@@ -191,7 +191,7 @@ class ZjCartController extends HomeBaseController |
|
|
'default_mobile' => $default_mobile,
|
|
|
'default_address' => $default_address,
|
|
|
'total_num' => $total_num,
|
|
|
'total_price' => $total_price,
|
|
|
'total_price' => $whole,
|
|
|
'caid' => $data[0]['caid'],
|
|
|
'js_sdk' => $wx->js_sdk(),
|
|
|
'uid' => session('user.id'),
|
...
|
...
|
|