...
|
...
|
@@ -1242,11 +1242,13 @@ const _detailDataPkg = (origin, uid, vipLevel, cookies) => { |
|
|
|
|
|
if (propOrigin('format_sales_price', '0') !== '0') {
|
|
|
result.presalePrice = propOrigin('format_sales_price');
|
|
|
delete result.salePrice;
|
|
|
result.hasOtherPrice = true;
|
|
|
} else {
|
|
|
result.presalePrice = result.marketPrice;
|
|
|
delete result.marketPrice;
|
|
|
}
|
|
|
|
|
|
delete result.salePrice;
|
|
|
result.hasOtherPrice = false;
|
|
|
|
|
|
// 普通预售
|
|
|
result.presale = 'Y';
|
|
|
}
|
...
|
...
|
@@ -1380,8 +1382,8 @@ const _detailDataPkg = (origin, uid, vipLevel, cookies) => { |
|
|
statGoodsInfo.productId = propOrigin('product_id');
|
|
|
statGoodsInfo.productName = result.name.replace('\'', '’');
|
|
|
statGoodsInfo.brandName = (result.brandName || '').replace('\'', '’');
|
|
|
statGoodsInfo.marketPrice = result.marketPrice.replace('¥', ''); // 数字
|
|
|
statGoodsInfo.salePrice = (result.salePrice ? result.salePrice : result.marketPrice).replace('¥', ''); // 数字
|
|
|
statGoodsInfo.marketPrice = (result.marketPrice ? result.marketPrice : result.presalePrice).replace('¥', ''); // 数字
|
|
|
statGoodsInfo.salePrice = (result.salePrice ? result.salePrice : (result.marketPrice || result.presalePrice)).replace('¥', ''); // 数字
|
|
|
statGoodsInfo.imageUrl = 'http:' + result.img.split('?')[0];
|
|
|
statGoodsInfo.productUrl = 'http:' +
|
|
|
helpers.urlFormat(url.parse(propOrigin('product_url')).pathname, null, 'item');
|
...
|
...
|
|