提交 9d08e057 编写于 作者: guangjun.yang's avatar guangjun.yang

只判断有没有优惠价格

上级 bc137aa9
...@@ -470,7 +470,8 @@ export default { ...@@ -470,7 +470,8 @@ export default {
goods.salePriceNew = this.formatPrice(priceNew); goods.salePriceNew = this.formatPrice(priceNew);
goods.salePrice = this.formatPrice(price); goods.salePrice = this.formatPrice(price);
goods.costPriceText = (goods.costPrice / 100).toFixed(2); goods.costPriceText = (goods.costPrice / 100).toFixed(2);
goods.hasDiscount = !!(goods.couponPrice || goods.preferentialPrice); goods.hasDiscount = !!goods.preferentialPrice;
// goods.hasDiscount = !!(goods.couponPrice || goods.preferentialPrice);
let savePrice = 0; let savePrice = 0;
if (goods.couponPrice) { if (goods.couponPrice) {
if (goods.preferentialPrice) { if (goods.preferentialPrice) {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册