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