...
|
...
|
@@ -102,7 +102,7 @@ class DetailModel |
|
|
if (isset($baseInfo['promotionBoList'])) {
|
|
|
$build = array();
|
|
|
foreach ($baseInfo['promotionBoList'] as $value) {
|
|
|
$build['text'] = $value['promotionTitle'];
|
|
|
$build['text'] = '【' . $value['promotionType'] . '】' . $value['promotionTitle'];
|
|
|
$result['goodsDiscount']['list'][] = $build;
|
|
|
}
|
|
|
}
|
...
|
...
|
@@ -165,6 +165,7 @@ class DetailModel |
|
|
foreach ($baseInfo['goodsList'] as $value) {
|
|
|
$colorId = intval($value['colorId']);
|
|
|
// 商品按颜色进行分类分组
|
|
|
if (isset($value['goodsImagesList'])) {
|
|
|
foreach ($value['goodsImagesList'] as $goods) {
|
|
|
$goodsList[$goods['goodsId']] = $colorId;
|
|
|
$goodsGroup[$colorId][] = array(
|
...
|
...
|
@@ -177,7 +178,10 @@ class DetailModel |
|
|
'colorImage' => Helpers::getImageUrl($value['colorImage'], 60, 60),
|
|
|
);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// 商品的尺码列表
|
|
|
if (isset($value['goodsSizeBoList'])) {
|
|
|
foreach ($value['goodsSizeBoList'] as $size) {
|
|
|
$sizeGroup[$colorId] = array(
|
|
|
'sizeName' => $size['sizeName'],
|
...
|
...
|
@@ -186,6 +190,7 @@ class DetailModel |
|
|
);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// 商品图
|
|
|
$goodsId = intval($goodsId);
|
...
|
...
|
|