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