...
|
...
|
@@ -216,12 +216,14 @@ const tool = { |
|
|
* @returns {{}}
|
|
|
*/
|
|
|
processBundle(bundleData, skn) {
|
|
|
let discountPrice = (_.get(bundleData, 'bundleInfo.salesPrice', 0) -
|
|
|
_.get(bundleData, 'bundleInfo.discountPrice', 0));
|
|
|
let priceShow = _.split(discountPrice + '', '.')[0];
|
|
|
|
|
|
return {
|
|
|
title: '优惠套装',
|
|
|
href: helpers.urlFormat('/product/bundle/detail', {skn: skn}),
|
|
|
description: '立省¥' +
|
|
|
(parseInt(_.get(bundleData, 'bundleInfo.salesPrice', 0), 10) -
|
|
|
parseInt(_.get(bundleData, 'bundleInfo.discountPrice', 0), 10)) + '元',
|
|
|
description: '立省¥' + priceShow + '元',
|
|
|
productList: productProcess.processProductList(bundleData && bundleData.productList)
|
|
|
};
|
|
|
}
|
...
|
...
|
|