Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop
Showing
1 changed file
with
2 additions
and
0 deletions
@@ -238,6 +238,7 @@ class DetailModel | @@ -238,6 +238,7 @@ class DetailModel | ||
238 | $colorArr['colorNum'] = isset($colorStorageGroup[ $colorArr['skcId'] ][$sizeName]) ? $colorStorageGroup[ $colorArr['skcId'] ][$sizeName] : 0; | 238 | $colorArr['colorNum'] = isset($colorStorageGroup[ $colorArr['skcId'] ][$sizeName]) ? $colorStorageGroup[ $colorArr['skcId'] ][$sizeName] : 0; |
239 | $colorGroup[$i]['color'][] = $colorArr; | 239 | $colorGroup[$i]['color'][] = $colorArr; |
240 | } | 240 | } |
241 | + $colorGroup[$i]['sizeName'] = $sizeName; | ||
241 | 242 | ||
242 | ++ $i; | 243 | ++ $i; |
243 | } | 244 | } |
@@ -246,6 +247,7 @@ class DetailModel | @@ -246,6 +247,7 @@ class DetailModel | ||
246 | foreach ($colorList as $value) { | 247 | foreach ($colorList as $value) { |
247 | // 各个尺码的颜色,每行显示一个颜色的对应尺码 | 248 | // 各个尺码的颜色,每行显示一个颜色的对应尺码 |
248 | $sizeGroup[$i]['size'] = $sizeList[ $value['skcId'] ]; | 249 | $sizeGroup[$i]['size'] = $sizeList[ $value['skcId'] ]; |
250 | + $sizeGroup[$i]['colorId'] = $value['skcId']; | ||
249 | // 默认颜色 | 251 | // 默认颜色 |
250 | $colorGroup[0]['color'][] = $value; | 252 | $colorGroup[0]['color'][] = $value; |
251 | 253 |
-
Please register or login to post a comment