...
|
...
|
@@ -313,7 +313,11 @@ export function goodsProductBySkns(item, contentIndex) { |
|
|
result.map((item3, i3) => {
|
|
|
let src = productImages[item3.product_skn];
|
|
|
if (src) {
|
|
|
item3.tags = [];
|
|
|
if (item3.tags.includes('is_soon_sold_out')) {
|
|
|
item3.tags = ['is_soon_sold_out'];
|
|
|
} else {
|
|
|
item3.tags = [];
|
|
|
}
|
|
|
item3.default_images = helper.image(src, 235, 314);
|
|
|
productList.push(item3);
|
|
|
}
|
...
|
...
|
@@ -352,16 +356,17 @@ export function goodsGroupProductBySkns(item, contentIndex) { |
|
|
dispatch(productBySknsRequest());
|
|
|
return new DetailService(app.host).productInfoBySkns(skns)
|
|
|
.then(json => {
|
|
|
let products = {};
|
|
|
let result = json.product_list;
|
|
|
result.map((item4) => {
|
|
|
let src = productImages[item4.product_skn];
|
|
|
if (src) {
|
|
|
item4.tags = [];
|
|
|
if (item4.tags.includes('is_soon_sold_out')) {
|
|
|
item4.tags = ['is_soon_sold_out'];
|
|
|
} else {
|
|
|
item4.tags = [];
|
|
|
}
|
|
|
item4.default_images = helper.image(src, 235, 314);
|
|
|
products[item4.product_skn] = item4;
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
let productList = []
|
...
|
...
|
@@ -372,10 +377,13 @@ export function goodsGroupProductBySkns(item, contentIndex) { |
|
|
list: [],
|
|
|
};
|
|
|
|
|
|
item5.list.map((item6) => {
|
|
|
let product = products[item6.id];
|
|
|
if (product) {
|
|
|
good.list.push(product);
|
|
|
result.map((item6) => {
|
|
|
let sameSkn = item5.list.filter((item7) => {
|
|
|
return item6.product_skn == item7.id;
|
|
|
});
|
|
|
|
|
|
if (sameSkn && sameSkn.length > 0) {
|
|
|
good.list.push(item6);
|
|
|
}
|
|
|
});
|
|
|
|
...
|
...
|
|