66 lines
2.8 KiB
Plaintext
66 lines
2.8 KiB
Plaintext
<view class="page no-tab">
|
|
<view wx:if="{{optionError}}" class="card error-card">
|
|
<text class="error-title">选项加载不完整</text>
|
|
<text class="error-desc">{{optionError}}</text>
|
|
<button class="compact-btn" bindtap="loadOptions">重试</button>
|
|
</view>
|
|
|
|
<view class="card form-card">
|
|
<view class="field">
|
|
<text class="field-label">客户姓名</text>
|
|
<input value="{{form.customerName}}" data-field="customerName" bindinput="onInput" placeholder="请输入客户姓名" />
|
|
</view>
|
|
<view class="field">
|
|
<text class="field-label">手机号</text>
|
|
<input value="{{form.phone}}" data-field="phone" bindinput="onInput" placeholder="请输入手机号" />
|
|
</view>
|
|
<view class="field">
|
|
<text class="field-label">预约日期</text>
|
|
<picker mode="date" value="{{form.appointmentDate}}" bindchange="onDateChange">
|
|
<view class="field-value">{{form.appointmentDate}}</view>
|
|
</picker>
|
|
</view>
|
|
<view class="field">
|
|
<text class="field-label">预约时间</text>
|
|
<picker mode="time" value="{{form.appointmentTime}}" start="10:00" end="22:00" bindchange="onTimeChange">
|
|
<view class="field-value">{{form.appointmentTime}}</view>
|
|
</picker>
|
|
</view>
|
|
<view class="field">
|
|
<text class="field-label">项目内容</text>
|
|
<picker range="{{products}}" range-key="title" bindchange="onProductChange">
|
|
<view class="field-value">{{selectedProduct.title || '请选择项目'}}</view>
|
|
</picker>
|
|
</view>
|
|
<view class="field">
|
|
<text class="field-label">预计时长</text>
|
|
<input value="{{form.durationMinutes}}" data-field="durationMinutes" bindinput="onInput" type="number" placeholder="默认读取项目时长" />
|
|
<text class="unit">分钟</text>
|
|
</view>
|
|
<view class="field">
|
|
<text class="field-label">指定员工</text>
|
|
<picker range="{{artists}}" range-key="name" bindchange="onArtistChange">
|
|
<view class="field-value">{{selectedArtist.name || '请选择美甲师'}}</view>
|
|
</picker>
|
|
</view>
|
|
<view class="field textarea-field">
|
|
<text class="field-label">备注</text>
|
|
<textarea value="{{form.remark}}" data-field="remark" bindinput="onInput" placeholder="客户偏好、款式说明" />
|
|
</view>
|
|
</view>
|
|
|
|
<view class="capacity-tip card">
|
|
<text class="tip-title">容量校验</text>
|
|
<text class="tip-text">保存时会校验营业时间、美甲师休息和同时间段容量,冲突会直接拦截。</text>
|
|
</view>
|
|
|
|
<view wx:if="{{conflictTip}}" class="availability-tip card {{conflictLevel}}">
|
|
<text class="tip-title">时段检查</text>
|
|
<text class="tip-text">{{conflictTip}}</text>
|
|
</view>
|
|
|
|
<view class="fixed-bottom">
|
|
<button class="primary-btn" loading="{{loading}}" bindtap="submit">保存预约</button>
|
|
</view>
|
|
</view>
|