Authored by hongweigao

价格保留两位小数

... ... @@ -1602,8 +1602,8 @@ const getPackage = (skn) => {
resData.data = {
bundleId: bundleInfo.bundleId,
salesPrice: bundleInfo.salesPrice,
pkgPrice: bundleInfo.discountPrice,
salesPrice: bundleInfo.salesPrice.toFixed(2),
pkgPrice: bundleInfo.discountPrice.toFixed(2),
savePrice: (bundleInfo.salesPrice - bundleInfo.discountPrice).toFixed(2)
};
_.forEach(productList, function(value) {
... ... @@ -1615,7 +1615,7 @@ const getPackage = (skn) => {
url: helpers.urlFormat(url.parse(value.product_url).pathname, null, 'item'),
src: value.default_images,
productName: value.product_name,
productPrice: value.sales_price,
productPrice: value.sales_price.toFixed(2),
colors: skuData.skuGoods
};
... ...