...
|
...
|
@@ -31,10 +31,13 @@ const detail = (params) => { |
|
|
}
|
|
|
|
|
|
return getBundleBySkn(params.skn).then(result => {
|
|
|
let discountPrice = (_.get(result, 'data.bundleInfo.salesPrice', 0) -
|
|
|
_.get(result, 'data.bundleInfo.discountPrice', 0));
|
|
|
let priceShow = _.split(discountPrice + '', '.')[0];
|
|
|
|
|
|
return {
|
|
|
bundleInfo: Object.assign(_.get(result, 'data.bundleInfo', {}), {
|
|
|
discount: parseInt(_.get(result, 'data.bundleInfo.salesPrice', 0), 10) -
|
|
|
parseInt(_.get(result, 'data.bundleInfo.discountPrice', 0), 10)
|
|
|
discount: priceShow
|
|
|
}),
|
|
|
productList: productProcess.processProductList(_.get(result, 'data.productList', []))
|
|
|
};
|
...
|
...
|
|