diff --git a/components/DateRangePicker/DateRangePicker.vue b/components/DateRangePicker/DateRangePicker.vue index 83c54fc..0c2967f 100644 --- a/components/DateRangePicker/DateRangePicker.vue +++ b/components/DateRangePicker/DateRangePicker.vue @@ -395,18 +395,18 @@ export default { } // 验证选择的日期范围内是否包含禁用日期 - const currentDate = new Date(this.tempStartDate) - while (currentDate <= this.tempEndDate) { - const day = currentDate.getDate() - if (this.isDisabled(day)) { - uni.showToast({ - title: '所选日期范围包含不可预约日期,请重新选择', - icon: 'none' - }) - return - } - currentDate.setDate(currentDate.getDate() + 1) - } + // const currentDate = new Date(this.tempStartDate) + // while (currentDate <= this.tempEndDate) { + // const day = currentDate.getDate() + // if (this.isDisabled(day)) { + // uni.showToast({ + // title: '所选日期范围包含不可预约日期,请重新选择', + // icon: 'none' + // }) + // return + // } + // currentDate.setDate(currentDate.getDate() + 1) + // } sojoumOrderCheckDate({ travelGroupProductId: this.travelGroupProductId, orderStartDate: this.formatDate(this.tempStartDate),