...
|
...
|
@@ -159,7 +159,7 @@ class DetailModel |
|
|
$colorId = intval($value['colorId']);
|
|
|
// 商品按颜色进行分类分组
|
|
|
foreach ($value['goodsImagesList'] as $goods) {
|
|
|
$goodsList[ $goods['goodsId'] ] = $colorId;
|
|
|
$goodsList[$goods['goodsId']] = $colorId;
|
|
|
$goodsGroup[$colorId][] = array(
|
|
|
'goodsId' => $goods['goodsId'],
|
|
|
'img' => $goods['imageUrl'],
|
...
|
...
|
@@ -172,7 +172,7 @@ class DetailModel |
|
|
}
|
|
|
// 商品的尺码列表
|
|
|
foreach ($value['goodsSizeBoList'] as $size) {
|
|
|
$sizeGroup[ $colorId ] = array(
|
|
|
$sizeGroup[$colorId] = array(
|
|
|
'sizeName' => $size['sizeName'],
|
|
|
'sizeSku' => $size['goodsSizeSkuId'],
|
|
|
'sizeStorage' => $size['goodsSizeStorageNum'],
|
...
|
...
|
@@ -275,15 +275,15 @@ class DetailModel |
|
|
'enTitle' => 'SIZE INFO',
|
|
|
'detail' => array('list' => array()),
|
|
|
);
|
|
|
$sizeNameList = array(0 => array('param' => '吊牌尺码')) ; // 尺码名称
|
|
|
$sizeNameList = array(0 => array('param' => '吊牌尺码')); // 尺码名称
|
|
|
$sizeBoGroup = array(); // 尺码按ID分组
|
|
|
foreach ($sizeInfo['sizeInfoBo']['sizeAttributeBos'] as $attr) {
|
|
|
$sizeBoGroup[ $attr['id'] ][0] = array('param' => $attr['attributeName']);
|
|
|
$sizeBoGroup[$attr['id']][0] = array('param' => $attr['attributeName']);
|
|
|
}
|
|
|
foreach ($sizeInfo['sizeInfoBo']['sizeBoList'] as $value) {
|
|
|
$sizeNameList[] = array('param' => $value['sizeName']);
|
|
|
foreach ($value['sortAttributes'] as $attr) {
|
|
|
$sizeBoGroup[ $attr['id'] ][] = array('param' => $attr['sizeValue']);
|
|
|
$sizeBoGroup[$attr['id']][] = array('param' => $attr['sizeValue']);
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
@@ -384,7 +384,6 @@ class DetailModel |
|
|
);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
return $result;
|
...
|
...
|
|