|
@@ -165,31 +165,31 @@ class DetailModel |
|
@@ -165,31 +165,31 @@ class DetailModel |
165
|
foreach ($baseInfo['goodsList'] as $value) {
|
165
|
foreach ($baseInfo['goodsList'] as $value) {
|
166
|
$colorId = intval($value['colorId']);
|
166
|
$colorId = intval($value['colorId']);
|
167
|
// 商品按颜色进行分类分组
|
167
|
// 商品按颜色进行分类分组
|
168
|
- if (isset($value['goodsImagesList'])) {
|
|
|
169
|
- foreach ($value['goodsImagesList'] as $goods) {
|
|
|
170
|
- $goodsList[$goods['goodsId']] = $colorId;
|
|
|
171
|
- $goodsGroup[$colorId][] = array(
|
|
|
172
|
- 'goodsId' => $goods['goodsId'],
|
|
|
173
|
- 'img' => $goods['imageUrl'],
|
|
|
174
|
- );
|
|
|
175
|
- $colorGroup[$colorId] = array(
|
|
|
176
|
- 'colorId' => $colorId,
|
|
|
177
|
- 'colorName' => $value['colorName'],
|
|
|
178
|
- 'colorImage' => Helpers::getImageUrl($value['colorImage'], 60, 60),
|
|
|
179
|
- );
|
|
|
180
|
- }
|
|
|
181
|
- }
|
168
|
+ if (isset($value['goodsImagesList'])) {
|
|
|
169
|
+ foreach ($value['goodsImagesList'] as $goods) {
|
|
|
170
|
+ $goodsList[$goods['goodsId']] = $colorId;
|
|
|
171
|
+ $goodsGroup[$colorId][] = array(
|
|
|
172
|
+ 'goodsId' => $goods['goodsId'],
|
|
|
173
|
+ 'img' => $goods['imageUrl'],
|
|
|
174
|
+ );
|
|
|
175
|
+ $colorGroup[$colorId] = array(
|
|
|
176
|
+ 'colorId' => $colorId,
|
|
|
177
|
+ 'colorName' => $value['colorName'],
|
|
|
178
|
+ 'colorImage' => Helpers::getImageUrl($value['colorImage'], 60, 60),
|
|
|
179
|
+ );
|
|
|
180
|
+ }
|
|
|
181
|
+ }
|
182
|
|
182
|
|
183
|
// 商品的尺码列表
|
183
|
// 商品的尺码列表
|
184
|
- if (isset($value['goodsSizeBoList'])) {
|
|
|
185
|
- foreach ($value['goodsSizeBoList'] as $size) {
|
|
|
186
|
- $sizeGroup[$colorId] = array(
|
|
|
187
|
- 'sizeName' => $size['sizeName'],
|
|
|
188
|
- 'sizeSku' => $size['goodsSizeSkuId'],
|
|
|
189
|
- 'sizeStorage' => $size['goodsSizeStorageNum'],
|
|
|
190
|
- );
|
|
|
191
|
- }
|
|
|
192
|
- }
|
184
|
+ if (isset($value['goodsSizeBoList'])) {
|
|
|
185
|
+ foreach ($value['goodsSizeBoList'] as $size) {
|
|
|
186
|
+ $sizeGroup[$colorId] = array(
|
|
|
187
|
+ 'sizeName' => $size['sizeName'],
|
|
|
188
|
+ 'sizeSku' => $size['goodsSizeSkuId'],
|
|
|
189
|
+ 'sizeStorage' => $size['goodsSizeStorageNum'],
|
|
|
190
|
+ );
|
|
|
191
|
+ }
|
|
|
192
|
+ }
|
193
|
}
|
193
|
}
|
194
|
|
194
|
|
195
|
// 商品图
|
195
|
// 商品图
|
|
@@ -227,7 +227,7 @@ class DetailModel |
|
@@ -227,7 +227,7 @@ class DetailModel |
227
|
}
|
227
|
}
|
228
|
// 已售磬
|
228
|
// 已售磬
|
229
|
elseif (!$notForSale && $soldOut) {
|
229
|
elseif (!$notForSale && $soldOut) {
|
230
|
- $result['cartInfo']['soldOut'] = true;
|
230
|
+ $result['cartInfo']['soldOut'] = true;
|
231
|
}
|
231
|
}
|
232
|
// 非卖品
|
232
|
// 非卖品
|
233
|
elseif (!$soldOut && $notForSale) {
|
233
|
elseif (!$soldOut && $notForSale) {
|