选择日程

This commit is contained in:
WindowBird 2025-11-04 16:26:48 +08:00
parent e5f7129d61
commit a364931dc7

View File

@ -5,12 +5,10 @@
<view class="content-wrapper">
<view>
<uv-calendar ref="calendar" mode="single" @confirm="handleConfirm" ></uv-calendar>
<button @click="openCalendar">选择日期</button>
<view style=" font-size: 12px; color: #666;">
当前选择日期{{ selectedDate }}日程数{{ eventsInDay ? eventsInDay.length : 0 }}
<button @click="openCalendar">{{ selectedDate }},日程数{{ eventsInDay ? eventsInDay.length : 0 }}</button>
</view>
</view>
<!-- 滑动容器 -->
<view
class="swipe-container"
@touchstart="handleTouchStart"
@ -174,7 +172,6 @@ function formatDateToYYYYMMDD(dateInput) {
if (/^\d{4}-\d{2}-\d{2}/.test(dateStr)) {
return dateStr.slice(0, 10);
}
return '';
}