秒杀价公式调整
This commit is contained in:
parent
e484814c15
commit
4211dde102
|
@ -1003,13 +1003,14 @@ export default {
|
||||||
val.give_discount = toFixedNoRounding(
|
val.give_discount = toFixedNoRounding(
|
||||||
1 - Number(val.cost) / Number(val.original_cost)
|
1 - Number(val.cost) / Number(val.original_cost)
|
||||||
);
|
);
|
||||||
val.price = toFixedNoRounding(
|
// val.price = toFixedNoRounding(
|
||||||
val.original_price *
|
// val.original_price *
|
||||||
(1 -
|
// (1 -
|
||||||
toFixedNoRounding(
|
// toFixedNoRounding(
|
||||||
1 - Number(val.cost) / Number(val.original_cost)
|
// 1 - Number(val.cost) / Number(val.original_cost)
|
||||||
))
|
// ))
|
||||||
);
|
// );
|
||||||
|
val.price = toFixedNoRounding(val.cost / 0.89);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleCost(val, i) {
|
handleCost(val, i) {
|
||||||
|
|
Loading…
Reference in New Issue