Compare commits
No commits in common. "47f0ef23d0576196184a884c0da027762b5de70d" and "39700f1d0a75c310a4a75e11499d121c41c91a6a" have entirely different histories.
47f0ef23d0
...
39700f1d0a
@ -298,13 +298,7 @@ export default {
|
||||
val += cost * item.num
|
||||
}
|
||||
})
|
||||
data.itemInfo.goods_cost = toTwoDecimals(val)
|
||||
}
|
||||
|
||||
function toTwoDecimals(num) {
|
||||
let truncated = Math.floor(num)
|
||||
let result = truncated / 100
|
||||
return result.toFixed(2)
|
||||
data.itemInfo.goods_cost = (val / 100).toFixed(2)
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user