...
|
...
|
@@ -292,8 +292,6 @@ const _getSkuDataByProductBaseInfo = (data) => { |
|
|
return acc;
|
|
|
}
|
|
|
|
|
|
console.log(cur);
|
|
|
|
|
|
if (cur.images_list) {
|
|
|
// 商品列表
|
|
|
goodsGroup.productSkc = cur.product_skc;
|
...
|
...
|
@@ -1160,7 +1158,6 @@ const _detailDataPkg = (origin, uid, vipLevel, cookies) => { |
|
|
result.marketPrice = propOrigin('format_market_price');
|
|
|
result.salePrice = propOrigin('format_sales_price');
|
|
|
result.hasOtherPrice = true;
|
|
|
result.promotion = '8.5折';
|
|
|
|
|
|
if (result.salePrice === '0') {
|
|
|
delete result.salePrice;
|
...
|
...
|
@@ -1175,6 +1172,14 @@ const _detailDataPkg = (origin, uid, vipLevel, cookies) => { |
|
|
result.vipPrice = _getVipDataByProductBaseInfo(origin, vipLevel, uid);
|
|
|
}
|
|
|
|
|
|
// 计算折扣比例
|
|
|
let marketPriceNum = propOrigin('market_price', 0);
|
|
|
let salePriceNum = propOrigin('sales_price', 0);
|
|
|
|
|
|
if (marketPriceNum && salePriceNum) {
|
|
|
result.promotion = ((salePriceNum / marketPriceNum) * 10).toFixed(1);
|
|
|
}
|
|
|
|
|
|
// 促销活动banner,虚拟商品无促销
|
|
|
if (propOrigin('attribute') !== 3) {
|
|
|
result.activity = _getActivityDataByProductBaseInfo(promotionData);
|
...
|
...
|
|