feat:额外收费

This commit is contained in:
dzc committed 2026-03-26 11:04:37 +08:00
1 parent f1e9c596b5
commit 1bd2ba3a8e
12 files changed
+749 -209

No files matched your search

+6
View File
@@ -9,6 +9,12 @@ export function displayPrice(price: any, suffix: string = "元", fixed = 2) {
return (parsedNumber / 100.0).toFixed(fixed) + suffix
}
export function displayYuanToYuan(price: any, suffix: string = "元", fixed = 2) {
if (typeof price === "undefined") return "0.00" + suffix
const parsedNumber = typeof price === "string" ? parseFloat(price) : price
return parsedNumber.toFixed(fixed) + suffix
}
export function displayWeight(price: any, fixed = 2) {
if (typeof price === "undefined") return "0"
const parsedNumber = typeof price === "string" ? parseFloat(price) : price
+1 -1
View File
@@ -391,7 +391,7 @@ export function handleBlobFile(response: any, fileName: string) {
}
}
if (typeof (blob as any).text === "function") {
;(blob as any).text().then((t: string) => handleText(t))
(blob as any).text().then((t: string) => handleText(t))
} else {
const reader = new FileReader()
reader.onload = () => handleText(String(reader.result || ""))