Feat:旅居界面调整,逻辑补充
This commit is contained in:
@@ -345,13 +345,13 @@ 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
|
||||
}
|
||||
// if (this.isDisabled(day)) {
|
||||
// uni.showToast({
|
||||
// title: '所选日期范围包含不可预约日期,请重新选择',
|
||||
// icon: 'none'
|
||||
// })
|
||||
// return
|
||||
// }
|
||||
currentDate.setDate(currentDate.getDate() + 1)
|
||||
}
|
||||
|
||||
@@ -362,7 +362,7 @@ export default {
|
||||
this.startDate ? this.formatDate(this.startDate) : null,
|
||||
this.endDate ? this.formatDate(this.endDate) : null
|
||||
])
|
||||
this.handleClose(false)
|
||||
this.handleClose(true)
|
||||
},
|
||||
|
||||
handleClose(shouldClear = true) {
|
||||
@@ -370,7 +370,7 @@ export default {
|
||||
this.clearDates()
|
||||
this.startDate = null
|
||||
this.endDate = null
|
||||
this.$emit('input', [null, null])
|
||||
// this.$emit('input', [null, null])
|
||||
}
|
||||
this.$emit('update:show', false)
|
||||
this.$emit('close')
|
||||
|
||||
Reference in New Issue
Block a user