修改折扣返回数据

This commit is contained in:
2024-11-21 18:09:12 +08:00
parent 975921014f
commit 47da4d3041

View File

@@ -72,7 +72,7 @@
} }
}) })
function currentPriceInput(newval){ function currentPriceInput(newval){
form.discount=(newval*100/form.price).toFixed() form.discount=(newval*100/form.price)
} }
function discountInput(newval){ function discountInput(newval){
form.currentPrice=(form.price*newval/100).toFixed(2) form.currentPrice=(form.price*newval/100).toFixed(2)