Authored by 毕凯

修复预售商品或者普通商品又一个为0时 顶部栏不显示

... ... @@ -86,7 +86,9 @@ class CartModel
$result['isEmptyCart'] = true;
break;
}
if ($ordinaryCount === '0' || $advanceCount === '0') {
$result['cartNav'] = false;
}
/* 普通购物车 */
$result['commonGoodsCount'] = $ordinaryCount;
$result['commonCart'] = self::procCartData($cart['ordinary_cart_data'], $onlyGift, $onlyAdvanceBuy);
... ... @@ -680,7 +682,7 @@ class CartModel
$oneColor['colorNum'] = $colorNum;
$oneColor['sizeNumStr'] = rtrim($sizeStorageStr, '/');
$colors[] = $oneColor;
// 缩略图
foreach ($val['images_list'] as $image) {
$thumbImageList[] = array(
... ...