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) }