From 691edd64575599c61f4d2d0f17e57cc390b3e697 Mon Sep 17 00:00:00 2001 From: lxf Date: Thu, 31 Jul 2025 15:49:33 +0800 Subject: [PATCH] fix: 下单加保险 --- pages/order/insurance.vue | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) diff --git a/pages/order/insurance.vue b/pages/order/insurance.vue index 70c7d64..dff94b6 100644 --- a/pages/order/insurance.vue +++ b/pages/order/insurance.vue @@ -158,6 +158,9 @@ export default { if (!this.form.startDate) { return uni.showToast({ title: '起运时间不能为空', icon: 'none' }); } + if (this.form.startDate && dayjs(this.form.startDate).isBefore(dayjs())) { + return uni.showToast({ title: '发车时间必须大于当前时间', icon: 'none' }); + } if (!this.form.insuranceProgramCode) { return uni.showToast({ title: '请选择方案', icon: 'none' }); } -- libgit2 0.21.0