Commit 691edd64575599c61f4d2d0f17e57cc390b3e697
1 parent
5e89b37e
Exists in
master
and in
1 other branch
fix: 下单加保险
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
pages/order/insurance.vue
| ... | ... | @@ -158,6 +158,9 @@ export default { |
| 158 | 158 | if (!this.form.startDate) { |
| 159 | 159 | return uni.showToast({ title: '起运时间不能为空', icon: 'none' }); |
| 160 | 160 | } |
| 161 | + if (this.form.startDate && dayjs(this.form.startDate).isBefore(dayjs())) { | |
| 162 | + return uni.showToast({ title: '发车时间必须大于当前时间', icon: 'none' }); | |
| 163 | + } | |
| 161 | 164 | if (!this.form.insuranceProgramCode) { |
| 162 | 165 | return uni.showToast({ title: '请选择方案', icon: 'none' }); |
| 163 | 166 | } | ... | ... |