秒杀价公式调整

This commit is contained in:
faiz 2024-11-22 18:54:45 +08:00
parent e484814c15
commit 4211dde102
1 changed files with 8 additions and 7 deletions

View File

@ -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) {