Feat:旅居界面调整,逻辑补充

This commit is contained in:
LinCyJang
2025-10-28 00:23:42 +08:00
parent 670c6385e5
commit 4ff143ab29
6 changed files with 54 additions and 27 deletions
@@ -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')