diff --git a/BagStation/pages/components/price-tab.vue b/BagStation/pages/components/price-tab.vue index 0f31304..2c2b13c 100644 --- a/BagStation/pages/components/price-tab.vue +++ b/BagStation/pages/components/price-tab.vue @@ -116,10 +116,10 @@ // 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,2)}9`).toFixed(2) :Number(value).toFixed(2); + Number(`${String(value).split('.')[0]}.${String(value).split('.')[1].substring(0,2)}${Number(String(value).split('.')[1].substr(2))==0?'':9}`).toFixed(2) :Number(value).toFixed(2); } else { return Number(value).toFixed(2) - } + } }, moneyFormat(value) { if (value != 'xxx.x') {