From 4211dde102525968d9f1bde847693fba80010586 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A5=8F?= <1978476055@qq.com> Date: Fri, 22 Nov 2024 18:54:45 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=92=E6=9D=80=E4=BB=B7=E5=85=AC=E5=BC=8F?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../marketing/seckill/seckillGoods/editAttr.vue | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/views/marketing/seckill/seckillGoods/editAttr.vue b/src/views/marketing/seckill/seckillGoods/editAttr.vue index 5dd2acb..935b27a 100644 --- a/src/views/marketing/seckill/seckillGoods/editAttr.vue +++ b/src/views/marketing/seckill/seckillGoods/editAttr.vue @@ -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) {