fix: 处理日期范围选择
This commit is contained in:
@@ -352,6 +352,14 @@ const handleSingleSelect = (dateInfo) => {
|
||||
|
||||
// 处理范围选择
|
||||
const handleRangeSelection = (dateInfo) => {
|
||||
if (dateInfo.price === undefined || dateInfo.price === null || dateInfo.stock === '' || dateInfo.price === '-') {
|
||||
uni.showToast({
|
||||
title: "所选日期不可预订,请重新选择",
|
||||
icon: "none",
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
if (!rangeStart.value || (rangeStart.value && rangeEnd.value)) {
|
||||
// 开始新的范围选择
|
||||
rangeStart.value = dateInfo.date;
|
||||
|
||||
Reference in New Issue
Block a user