feat:退款完成
This commit is contained in:
1 parent
af8e6df1c0
commit
105679446a
4 files changed
+100
-53
No files matched your search
@@ -9,6 +9,12 @@ export function displayPrice(price: any, suffix: string = "元", fixed = 2) {
|
||||
return (parsedNumber / 100.0).toFixed(fixed) + suffix
|
||||
}
|
||||
|
||||
export function displayWeight(price: any, fixed = 2) {
|
||||
if (typeof price === "undefined") return "0"
|
||||
const parsedNumber = typeof price === "string" ? parseFloat(price) : price
|
||||
return parsedNumber.toFixed(fixed)
|
||||
}
|
||||
|
||||
/**
|
||||
* 把显示价格改为分
|
||||
* @param price
|
||||
|
||||
Reference in new issue
Block a user