...
|
...
|
@@ -84,7 +84,7 @@ class CartModel |
|
|
$result['isEmptyCart'] = true;
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
|
|
|
// 普通购物车空,则显示预售购物车
|
|
|
if ($ordinaryCount === '0') {
|
|
|
$result['cartNav'] = false;
|
...
|
...
|
@@ -100,14 +100,14 @@ class CartModel |
|
|
$result['cartNav'] = true;
|
|
|
$result['cartType'] = 'ordinary';
|
|
|
}
|
|
|
|
|
|
|
|
|
/* 普通购物车 */
|
|
|
$result['commonGoodsCount'] = $ordinaryCount;
|
|
|
$result['commonCart'] = self::procCartData($cart['ordinary_cart_data'], $onlyGift, $onlyAdvanceBuy);
|
|
|
/* 预售购物车 */
|
|
|
$result['presellGoodsCount'] = $advanceCount;
|
|
|
$result['preSellCart'] = self::procCartData($cart['advance_cart_data'], $onlyGift, $onlyAdvanceBuy);
|
|
|
|
|
|
|
|
|
} while(false);
|
|
|
|
|
|
return $result;
|
...
|
...
|
@@ -416,7 +416,7 @@ class CartModel |
|
|
foreach ($payReturn['goods_list'] as $single) {
|
|
|
$oneGoods = array();
|
|
|
$oneGoods['id'] = $single['product_sku']; // TODO 未确定用哪个
|
|
|
$oneGoods['thumb'] = Images::getImageUrl($single['goods_images'], 120, 120);
|
|
|
$oneGoods['thumb'] = Images::getImageUrl($single['goods_images'], 120, 160);
|
|
|
$oneGoods['name'] = $single['product_name'];
|
|
|
$oneGoods['color'] = $single['color_name'];
|
|
|
$oneGoods['size'] = $single['size_name'];
|
...
|
...
|
|