Files
JayuCloud/JC-Salon-WeChat/pages/leave-management/index.wxml
T
xiaowang 60d9bba61a 小程序页面视觉对齐二期:预约图片轮播、订单数据预览、微信用户关联与请假管理
新增预约详情作品图片轮播字段与组装;新增订单预览与未关联微信用户候选接口;补齐请假记录查询接口;订单数据预览改为四列;请假管理接入真实排班例外并支持新增;日程、我的、美甲师详情与改派选择器按设计稿微调;注册结果页与申请提交时间对齐设计稿。
2026-11-06 14:34:02 +08:00

73 lines
3.4 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<view class="page no-tab">
<view class="card leave-card">
<view class="leave-calendar">
<view wx:for="{{days}}" wx:key="date" class="leave-day {{item.rest ? 'rest' : ''}}">{{item.day}}</view>
</view>
</view>
<view class="section">
<view class="section-head">
<text class="section-title">请假记录</text>
<text wx:if="{{loading}}" class="section-note">加载中</text>
</view>
<view wx:if="{{loadError}}" class="card record-empty">{{loadError}}</view>
<view wx:elif="{{!records.length}}" class="card record-empty">暂无请假记录</view>
<view wx:else class="list">
<view wx:for="{{records}}" wx:key="key" class="card record-card">
<text class="record-date">{{item.date}}</text>
<text class="record-text">{{item.text}}</text>
</view>
</view>
</view>
<view class="fixed-bottom"><button class="primary-btn leave-add" bindtap="add">新增请假</button></view>
<view wx:if="{{formVisible}}" class="sheet-mask" catchtouchmove="stopTouchMove" bindtap="closeForm">
<view class="sheet" catchtap="noop">
<view class="sheet-head">
<text class="sheet-title">新增请假</text>
<text class="sheet-close" bindtap="closeForm">×</text>
</view>
<view class="sheet-body">
<view class="sheet-field">
<text class="sheet-label">美甲师</text>
<picker range="{{artists}}" range-key="name" value="{{form.artistIndex}}" bindchange="onArtistChange">
<view class="sheet-value">{{artists[form.artistIndex].name || '请选择'}}</view>
</picker>
</view>
<view class="sheet-field">
<text class="sheet-label">请假日期</text>
<picker mode="date" value="{{form.workDate}}" bindchange="onDateChange">
<view class="sheet-value">{{form.workDate}}</view>
</picker>
</view>
<view class="sheet-field">
<text class="sheet-label">请假类型</text>
<view class="type-switch">
<view class="type-option {{form.exceptionType === 'FULL_DAY' ? 'selected' : ''}}" data-type="FULL_DAY" bindtap="selectType">全天</view>
<view class="type-option {{form.exceptionType === 'TIME_RANGE' ? 'selected' : ''}}" data-type="TIME_RANGE" bindtap="selectType">时段</view>
</view>
</view>
<view wx:if="{{form.exceptionType !== 'FULL_DAY'}}" class="sheet-field">
<text class="sheet-label">请假时段</text>
<view class="time-row">
<picker mode="time" value="{{form.startTime}}" bindchange="onStartTimeChange">
<view class="time-value">{{form.startTime}}</view>
</picker>
<text class="time-separator">至</text>
<picker mode="time" value="{{form.endTime}}" bindchange="onEndTimeChange">
<view class="time-value">{{form.endTime}}</view>
</picker>
</view>
</view>
<view class="sheet-field">
<text class="sheet-label">备注</text>
<input class="sheet-input" value="{{form.remark}}" placeholder="选填" bindinput="onRemarkInput" />
</view>
</view>
<view class="sheet-actions">
<button class="secondary-btn sheet-btn" bindtap="closeForm">取消</button>
<button class="primary-btn sheet-btn" loading="{{saving}}" disabled="{{saving}}" bindtap="save">保存</button>
</view>
</view>
</view>
</view>