...
|
...
|
@@ -1560,7 +1560,6 @@ let getNewProductAsyncData = (data) => { |
|
|
}
|
|
|
finalResult.isStudent = data.isStudent;
|
|
|
|
|
|
|
|
|
return finalResult;
|
|
|
});
|
|
|
});
|
...
|
...
|
@@ -1753,7 +1752,8 @@ let _detailDataPkgAsync = (origin, uid, vipLevel, ua) => { |
|
|
goodsId: value.goods_id,
|
|
|
colorId: value.color_id,
|
|
|
name: size.size_name,
|
|
|
sizeNum: size.storage_number
|
|
|
sizeNum: size.storage_number,
|
|
|
sizeInfo: size.size_info
|
|
|
});
|
|
|
|
|
|
sizeName = size.size_name;
|
...
|
...
|
@@ -1762,7 +1762,8 @@ let _detailDataPkgAsync = (origin, uid, vipLevel, ua) => { |
|
|
// 判断出没有库存则显示灰色
|
|
|
let build = {
|
|
|
id: size.size_id,
|
|
|
storage: size.storage_number
|
|
|
storage: size.storage_number,
|
|
|
sizeInfo: size.size_info
|
|
|
};
|
|
|
|
|
|
allSizeList[sizeName] = (allSizeList[sizeName] === null ||
|
...
|
...
|
@@ -1771,6 +1772,7 @@ let _detailDataPkgAsync = (origin, uid, vipLevel, ua) => { |
|
|
colorStorageGroup[value.product_skc][sizeName] = parseInt(size.storage_number, 10);
|
|
|
});
|
|
|
|
|
|
|
|
|
// 颜色分组
|
|
|
colorList.push({
|
|
|
id: value.color_id,
|
...
|
...
|
@@ -1796,11 +1798,13 @@ let _detailDataPkgAsync = (origin, uid, vipLevel, ua) => { |
|
|
size: []
|
|
|
};
|
|
|
_.forEach(allSizeList, (value, key) => {
|
|
|
|
|
|
// 默认尺码
|
|
|
sizeGroup[0].size.push({
|
|
|
name: key,
|
|
|
sizeNum: _.toNumber(value.storage) > 0 ? true : false,
|
|
|
id: value.id
|
|
|
id: value.id,
|
|
|
sizeInfo: value.sizeInfo
|
|
|
});
|
|
|
|
|
|
colorGroup[i] = {
|
...
|
...
|
@@ -1831,6 +1835,7 @@ let _detailDataPkgAsync = (origin, uid, vipLevel, ua) => { |
|
|
// 遍历所有颜色, 构建尺码显示数据
|
|
|
i = 1;
|
|
|
_.forEach(colorList, function(value) {
|
|
|
|
|
|
// 各个尺码的颜色, 每行显示一个颜色的对应尺码
|
|
|
sizeGroup[i] = {
|
|
|
size: sizeList[value.skcId],
|
...
|
...
|
@@ -1841,6 +1846,7 @@ let _detailDataPkgAsync = (origin, uid, vipLevel, ua) => { |
|
|
colorGroup[0].color.push(value);
|
|
|
++i;
|
|
|
});
|
|
|
|
|
|
}
|
|
|
let soldOut = (origin.storage_sum === 0) || (totalStorageNum === 0); // status
|
|
|
let notForSale = origin.attribute === 2;
|
...
|
...
|
|