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