Files
JayuCloud/JC-Salon-WeChat/pages/artist-transfer/index.wxml
T

49 lines
1.8 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 form-card section">
<view class="field">
<text class="field-label required">{{isUnassigned ? '分配美甲师' : '改派美甲师'}}</text>
<view class="field-value transfer-reference" bindtap="openArtistSheet">
<view>
<text>{{selectedArtist.name || '请选择美甲师'}}</text>
<text wx:if="{{loadError}}" class="transfer-error">{{loadError}}</text>
</view>
<text class="transfer-arrow">›</text>
</view>
</view>
<view class="field">
<text class="field-label required">预约日期</text>
<picker mode="date" value="{{date}}" bindchange="onDateChange">
<view class="field-value">{{date}}</view>
</picker>
</view>
<view class="field">
<text class="field-label required">预约时间</text>
<picker mode="time" value="{{time}}" start="10:00" end="22:00" bindchange="onTimeChange">
<view class="field-value">{{time}}</view>
</picker>
</view>
</view>
<entity-selector-sheet
visible="{{artistSheetVisible}}"
title="{{isUnassigned ? '选择分配美甲师' : '选择改派美甲师'}}"
keyword="{{artistKeyword}}"
placeholder="搜索美甲师姓名"
items="{{artistItems}}"
selected-id="{{selectedArtistId}}"
loading="{{false}}"
error-text="{{loadError}}"
empty-text="暂无可选美甲师"
action-text="快速新增美甲师"
bind:search="onArtistSearch"
bind:select="selectArtist"
bind:retry="retryArtists"
bind:action="addEmployeeFromSelector"
bind:close="closeArtistSheet"
/>
<view class="fixed-bottom">
<button class="primary-btn" loading="{{loading}}" bindtap="submit">{{isUnassigned ? '确认分配' : '确认改派'}}</button>
</view>
</view>