...
|
...
|
@@ -68,10 +68,7 @@ class ItemModel |
|
|
if (!empty($baseInfo['isOutlets'])) {
|
|
|
$goodsInfo['isOutlets'] = $baseInfo['isOutlets'] == 'Y' ? 'outlets' : '';
|
|
|
}
|
|
|
|
|
|
//电子门票
|
|
|
$goodsInfo['isTicket'] = $baseInfo['isTicket'] = TRUE;
|
|
|
|
|
|
|
|
|
// 商品价格
|
|
|
if (isset($baseInfo['productPriceBo'])) {
|
|
|
$goodsInfo['marketPrice'] = $baseInfo['productPriceBo']['formatMarketPrice'];
|
...
|
...
|
@@ -1010,8 +1007,6 @@ class ItemModel |
|
|
$skuGoods = array();//sku商品
|
|
|
$defaultImage = '';//默认图
|
|
|
$chooseSkuFlag = false;//选中sku状态
|
|
|
//摸拟数据
|
|
|
$baseInfo['isTicket'] = empty($baseInfo['isTicket']) ? false : $baseInfo['isTicket'];
|
|
|
|
|
|
if (!empty($baseInfo['goodsList'])) {
|
|
|
$goodsGroup = array();
|
...
|
...
|
@@ -1032,8 +1027,8 @@ class ItemModel |
|
|
'thumbs' => array(),
|
|
|
'size' => array(),
|
|
|
);
|
|
|
//不是门票的要显示图片
|
|
|
if ($baseInfo['isTicket']) {
|
|
|
//不是门票的要显示图片,虚拟商品
|
|
|
if ($baseInfo['attribute'] === 3) {
|
|
|
$goodsGroup['src'] = Images::getImageUrl($value['colorImage'], 40, 40);
|
|
|
}
|
|
|
|
...
|
...
|
@@ -1058,8 +1053,8 @@ class ItemModel |
|
|
|
|
|
//商品的尺码列表
|
|
|
foreach ($value['goodsSizeBoList'] as $size) {
|
|
|
if($baseInfo['attribute'] == 3 ) { //虚拟商品,增加为一件
|
|
|
$size['goodsSizeStorageNum'] = $size['goodsSizeStorageNum'] > 1 ? 1: 0;
|
|
|
if($baseInfo['attribute'] == 3 ) { //虚拟商品,门票默认最大为4,
|
|
|
$size['goodsSizeStorageNum'] = $size['goodsSizeStorageNum'] > 4 ? 4: 0;
|
|
|
}
|
|
|
//如果status为0,即skc下架时就跳过该商品
|
|
|
if ($value['status'] === 0) {
|
...
|
...
|
@@ -1068,7 +1063,7 @@ class ItemModel |
|
|
$goodsGroup['size'][] = array(
|
|
|
'name' => $size['sizeName'],
|
|
|
'sku' => $size['goodsSizeSkuId'],
|
|
|
'num' => $baseInfo['isTicket'] && $size['goodsSizeStorageNum'] > 4 ? 4 : intval($size['goodsSizeStorageNum']),
|
|
|
'num' => intval($size['goodsSizeStorageNum']),
|
|
|
'goodsId'=> $size['goodsId']
|
|
|
);
|
|
|
//单个sku商品的总数
|
...
|
...
|
|