From 4279ac5dfdc2ef95112417aa65b350d86563107e Mon Sep 17 00:00:00 2001 From: lixuan Date: Mon, 4 Jul 2022 10:15:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/stationDetail/openStationDetail.vue | 8 ++++++-- pages/stationDetail/stationDetail.vue | 9 +++++++-- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/pages/stationDetail/openStationDetail.vue b/pages/stationDetail/openStationDetail.vue index 73593af..1e89228 100644 --- a/pages/stationDetail/openStationDetail.vue +++ b/pages/stationDetail/openStationDetail.vue @@ -566,8 +566,12 @@ }, numberFilter(value) { - value = value - 1 + 1 - return value.toFixed(2) + if(value){ + value = value - 1 + 1 + return value.toFixed(2) + }else{ + return '0.00' + } }, payStateFormat(value) { switch (parseInt(value)) { diff --git a/pages/stationDetail/stationDetail.vue b/pages/stationDetail/stationDetail.vue index 278c159..83fa844 100644 --- a/pages/stationDetail/stationDetail.vue +++ b/pages/stationDetail/stationDetail.vue @@ -522,8 +522,13 @@ }, numberFilter(value) { - value = value - 1 + 1 - return value.toFixed(2) + if(value){ + value = value - 1 + 1 + return value.toFixed(2) + }else{ + return '0.00' + } + }, payStateFormat(value) { switch (parseInt(value)) {