...
|
...
|
@@ -72,10 +72,9 @@ const handleGoodsImage = (goodsColorInfo) => { |
|
|
let image0 = {genderCover: 0, isDefault: 'Y'}; // 0商品正面图
|
|
|
let image3 = {genderCover: 1, isDefault: 'N'}; // 3男生频道封面图
|
|
|
let image4 = {genderCover: 2, isDefault: 'N'}; // 4女生频道封面图
|
|
|
|
|
|
let newGoods = handleGoods(goodsColorInfo);
|
|
|
|
|
|
goodsColorInfo.goodsImagesList.forEach((g, i) => {
|
|
|
_.get(goodsColorInfo, 'goodsImagesList', []).forEach((g, i) => {
|
|
|
if (_.isMatch(g, image0)) {
|
|
|
newGoods.goodsImage[0].imageUrl = g.imageUrl;
|
|
|
return;
|
...
|
...
|
|