From 22146946c4006fde4e8e71dc5e086e029433fd61 Mon Sep 17 00:00:00 2001 From: caolc <572275724@qq.com> Date: Wed, 2 Nov 2022 22:24:31 +0800 Subject: [PATCH] 11 --- BagStation/pages/components/price-tab.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BagStation/pages/components/price-tab.vue b/BagStation/pages/components/price-tab.vue index 3d90064..0f31304 100644 --- a/BagStation/pages/components/price-tab.vue +++ b/BagStation/pages/components/price-tab.vue @@ -116,7 +116,7 @@ // console.log( Number(`${String(value).split('.')[0]}.${String(value).split('.')[1].substring(0,2)}`)+0.01,'************'); // return String(value).split('.')[1]&&String(value).split('.')[1].length>2? Number(`${String(value).split('.')[0]}.${String(value).split('.')[1].substring(0,2)}`)+0.01 :Number(value).toFixed(2); return String(value).split('.')[1]&&String(value).split('.')[1].length>2? - Number(`${String(value).split('.')[0]}.${String(value).split('.')[1].substring(0,3)}`).toFixed(2) :Number(value).toFixed(2); + Number(`${String(value).split('.')[0]}.${String(value).split('.')[1].substring(0,2)}9`).toFixed(2) :Number(value).toFixed(2); } else { return Number(value).toFixed(2) }