...
|
...
|
@@ -202,7 +202,7 @@ class ReturnsModel |
|
|
$result[$key]['href'] = Helpers::getUrlBySkc($value['product_id'], $value['goods_id'], $cnAlphabet);
|
|
|
$result[$key]['thumb'] = Helpers::getImageUrl($value['goods_image'], 60, 60);
|
|
|
$result[$key]['name'] = $value['product_name'];
|
|
|
$result[$key]['color'] = $value['color_name'];
|
|
|
$result[$key]['color'] = $value['factory_color_name'];
|
|
|
$result[$key]['size'] = $value['size_name'];
|
|
|
}
|
|
|
|
...
|
...
|
@@ -306,7 +306,7 @@ class ReturnsModel |
|
|
$result['goods'][$key]['href'] = Helpers::getUrlBySkc($value['product_id'], $value['goods_id'], $cnAlphabet);
|
|
|
$result['goods'][$key]['thumb'] = Helpers::getImageUrl($value['goods_image'], 60, 60);
|
|
|
$result['goods'][$key]['name'] = $value['product_name'];
|
|
|
$result['goods'][$key]['color'] = $value['color_name'];
|
|
|
$result['goods'][$key]['color'] = $value['factory_color_name'];
|
|
|
$result['goods'][$key]['size'] = $value['size_name'];
|
|
|
$result['goods'][$key]['price'] = $value['last_price'];
|
|
|
$result['goods'][$key]['skn'] = $value['product_skn'];
|
...
|
...
|
@@ -401,7 +401,7 @@ class ReturnsModel |
|
|
$result['goods'][$key]['href'] = Helpers::getUrlBySkc($value['product_id'], $value['goods_id'], $cnAlphabet);
|
|
|
$result['goods'][$key]['thumb'] = Helpers::getImageUrl($value['goods_image'], 60, 60);
|
|
|
$result['goods'][$key]['name'] = $value['product_name'];
|
|
|
$result['goods'][$key]['color'] = $value['color_name'];
|
|
|
$result['goods'][$key]['color'] = $value['factory_color_name'];
|
|
|
$result['goods'][$key]['size'] = $value['size_name'];
|
|
|
$result['goods'][$key]['price'] = $value['last_price'];
|
|
|
$result['goods'][$key]['skn'] = $value['product_skn'];
|
...
|
...
|
@@ -465,10 +465,14 @@ class ReturnsModel |
|
|
foreach ($v['size_list'] as $k1 => $v1) {//遍历颜色得到每个尺码
|
|
|
$num += $v1['storage_number'];//将商品颜色对应尺码下的每个商品的库存相加
|
|
|
if ($v1['storage_number'] > 0) {//当某个尺码下有库存时,将该颜色及其对应的尺码加入该商品选项下
|
|
|
$result['goods'][$key]['colorSize'][$k]['color'] = $v['color_name'];
|
|
|
$result['goods'][$key]['colorSize'][$k]['color'] = $v['factory_goods_name'];
|
|
|
$result['goods'][$key]['colorSize'][$k]['colorId'] = $v['color_id'];
|
|
|
$result['goods'][$key]['colorSize'][$k]['goodsId'] = $v['goods_id'];
|
|
|
$result['goods'][$key]['colorSize'][$k]['sizeList'][] = $v1;
|
|
|
|
|
|
if($result['goods'][$key]['colorSize'][$k]['color'].length>10){
|
|
|
$result['goods'][$key]['colorSize'][$k]['color'] = substr($result['goods'][$key]['colorSize'][$k]['color'],0,10) + '...';
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
...
|
...
|
|