...
|
...
|
@@ -186,7 +186,7 @@ class DetailModel |
|
|
// 商品的尺码列表
|
|
|
if (isset($value['goodsSizeBoList'])) {
|
|
|
foreach ($value['goodsSizeBoList'] as $size) {
|
|
|
$sizeList[$value['colorId']][] = array(
|
|
|
$sizeList[$value['productSkc']][] = array(
|
|
|
'id' => $size['id'],
|
|
|
'skuId' => $size['goodsSizeSkuId'],
|
|
|
'goodsId' => $size['goodsId'],
|
...
|
...
|
@@ -214,9 +214,9 @@ class DetailModel |
|
|
$thumbImageList[] = array('img' => Helpers::getImageUrl($value['colorImage'], 60, 60));
|
|
|
|
|
|
// 添加尺码对应的各个颜色的库存量
|
|
|
foreach ($sizeList as $colorId => $sizeArr) {
|
|
|
foreach ($sizeList as $skc => $sizeArr) {
|
|
|
foreach ($sizeArr as $key => $value) {
|
|
|
$sizeList[$colorId][$key]['colorNumStr'] = implode('/', array_values($colorStorageGroup[$value['name']]));
|
|
|
$sizeList[$skc][$key]['colorNumStr'] = implode('/', array_values($colorStorageGroup[$value['name']]));
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
|