From 2e8490c6913abbf777b6fac77dde359f3c4f2b97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=9F=E5=B7=9D=E4=B8=9C?= Date: Sat, 26 Apr 2025 23:43:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=9C=AA=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E4=B8=8A=E9=97=A8=E6=97=B6=E9=97=B4=EF=BC=8C=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E8=BF=9B=E5=85=A5=E5=AE=8C=E6=88=90=E4=B8=8A=E9=97=A8?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/order/select-time.vue | 2 +- utils/helpers.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pages/order/select-time.vue b/pages/order/select-time.vue index 5b90ccf..551db2a 100644 --- a/pages/order/select-time.vue +++ b/pages/order/select-time.vue @@ -9,7 +9,7 @@ 上门时间 - 点击选择上门时间 + 点击选择上门时间 {{ helpers.removeSeconds(data.plan_time) }} diff --git a/utils/helpers.js b/utils/helpers.js index a545c0c..4f4c09b 100644 --- a/utils/helpers.js +++ b/utils/helpers.js @@ -140,6 +140,10 @@ class helpers { } static removeSeconds(datetimeStr) { + if (datetimeStr === null) { + return '' + } + return datetimeStr.slice(0, 16); }