优化规划月视图空日期操作
This commit is contained in:
@@ -122,7 +122,7 @@
|
||||
<text wx:for="{{weekLabels}}" wx:key="*this">{{item}}</text>
|
||||
</view>
|
||||
<view class="month-grid">
|
||||
<view wx:for="{{monthDays}}" wx:key="date" class="month-cell {{item.isCurrentMonth ? '' : 'out-month'}} {{item.date === currentDateText ? 'selected' : ''}}" data-date="{{item.date}}" bindtap="selectDate">
|
||||
<view wx:for="{{monthDays}}" wx:key="date" class="month-cell {{item.isCurrentMonth ? '' : 'out-month'}} {{item.date === currentDateText ? 'selected' : ''}} {{emptyDateActionVisible && item.date === pendingEmptyDate ? 'action-target' : ''}} {{!item.isPast && item.shopRest ? 'is-rest' : ''}}" data-date="{{item.date}}" bindtap="selectDate">
|
||||
<view class="month-cell-head">
|
||||
<text class="month-day">{{item.day}}</text>
|
||||
<text wx:if="{{!item.isPast && item.shopRest}}" class="day-mark rest">休</text>
|
||||
@@ -153,4 +153,33 @@
|
||||
</block>
|
||||
|
||||
<button wx:if="{{canCreateAppointment && !calendarError}}" class="fab" bindtap="createAppointment">+</button>
|
||||
|
||||
<view wx:if="{{emptyDateActionVisible}}" class="empty-date-mask" catchtap="stopTap">
|
||||
<view class="empty-date-sheet" catchtap="stopTap">
|
||||
<view class="sheet-grabber"></view>
|
||||
<view class="empty-date-head">
|
||||
<view class="empty-date-title-wrap">
|
||||
<text class="empty-date-title">{{pendingEmptyDateTitle}}</text>
|
||||
<text class="empty-date-subtitle">当前日期暂无预约,可以直接创建预约或设为特殊休息日</text>
|
||||
</view>
|
||||
<button class="empty-date-close" bindtap="closeEmptyDateAction">×</button>
|
||||
</view>
|
||||
<view class="empty-date-actions">
|
||||
<button class="empty-date-action primary" bindtap="createAppointmentFromEmptyDate">
|
||||
<view class="empty-date-action-icon">+</view>
|
||||
<view class="empty-date-action-copy">
|
||||
<text class="empty-date-action-title">以 {{pendingEmptyDateLabel}} 新建预约</text>
|
||||
<text class="empty-date-action-desc">进入预约表单,并自动带入日期;员工沿用当前筛选</text>
|
||||
</view>
|
||||
</button>
|
||||
<button class="empty-date-action rest" loading="{{savingRestDate}}" bindtap="setEmptyDateAsRest">
|
||||
<view class="empty-date-action-icon">休</view>
|
||||
<view class="empty-date-action-copy">
|
||||
<text class="empty-date-action-title">设为特殊休息日期</text>
|
||||
<text class="empty-date-action-desc">保存后月历标记为“休”,当天不再生成可约时间</text>
|
||||
</view>
|
||||
</button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user