feat: 日期选择的调整

This commit is contained in:
2026-01-07 12:12:01 +08:00
parent 9c658e9f9f
commit 5d98b76fd1
4 changed files with 231 additions and 55 deletions

View File

@@ -65,8 +65,9 @@
<!-- 日历组件 -->
<Calender
:visible="calendarVisible"
:price-data="priceData"
mode="range"
:range-require-price="true"
:price-data="priceData"
@close="handleCalendarClose"
@range-select="handleDateSelect"
/>
@@ -107,7 +108,8 @@ const selectedDate = ref({
endDate: DateUtils.formatDate(new Date(Date.now() + 24 * 60 * 60 * 1000)), // 第二天日期
totalDays: 1,
});
const priceData = ref([]);
const priceData = ref([])
// 计算的总价格
const calculatedTotalPrice = ref(0);