...
|
...
|
@@ -300,6 +300,8 @@ const _getSkuDataByProductBaseInfo = (data) => { |
|
|
let defaultImage = '';// 默认图
|
|
|
let chooseSkuFlag = false; // 选中状态
|
|
|
|
|
|
let fixQuality = imageUrl => imageUrl.replace('/quality/70', '/quality/90');
|
|
|
|
|
|
if (data.goodsList) {
|
|
|
skuGoods = _.get(data, 'goodsList', []).reduce((acc, cur, pos)=> {
|
|
|
|
...
|
...
|
@@ -313,7 +315,7 @@ const _getSkuDataByProductBaseInfo = (data) => { |
|
|
if (cur.goodsImagesList) {
|
|
|
// 商品列表
|
|
|
goodsGroup.productSkc = cur.productSkc;
|
|
|
goodsGroup.src = helpers.image(cur.colorImage, 40, 40);
|
|
|
goodsGroup.src = fixQuality(helpers.image(cur.colorImage, 40, 40));
|
|
|
goodsGroup.title = `${_.trim(data.productName)} ${cur.colorName}`;
|
|
|
goodsGroup.name = cur.colorName;
|
|
|
goodsGroup.focus = false;
|
...
|
...
|
@@ -326,8 +328,8 @@ const _getSkuDataByProductBaseInfo = (data) => { |
|
|
if (good.imageUrl) {
|
|
|
goodsGroup.thumbs.push({
|
|
|
url: '',
|
|
|
shower: helpers.image(good.imageUrl, 420, 560),
|
|
|
img: helpers.image(good.imageUrl, 75, 100)
|
|
|
shower: fixQuality(helpers.image(good.imageUrl, 420, 560)),
|
|
|
img: fixQuality(helpers.image(good.imageUrl, 75, 100))
|
|
|
});
|
|
|
}
|
|
|
});
|
...
|
...
|
@@ -339,7 +341,7 @@ const _getSkuDataByProductBaseInfo = (data) => { |
|
|
|
|
|
// 默认第一张图片
|
|
|
if (pos === 0) {
|
|
|
defaultImage = helpers.image(cur.colorImage, 420, 560);
|
|
|
defaultImage = fixQuality(helpers.image(cur.colorImage, 420, 560));
|
|
|
}
|
|
|
|
|
|
// 商品的尺码列表
|
...
|
...
|
|