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

49 lines
1.8 KiB
Plaintext
Raw Normal View History

2026-06-04 16:39:06 +08:00
<view class="page no-tab">
<view class="card form-card section">
<view class="field">
2026-10-20 18:02:49 +08:00
<text class="field-label required">{{isUnassigned ? '分配美甲师' : '改派美甲师'}}</text>
<view class="field-value transfer-reference" bindtap="openArtistSheet">
<view>
2026-10-20 18:02:49 +08:00
<text>{{selectedArtist.name || '请选择美甲师'}}</text>
<text wx:if="{{loadError}}" class="transfer-error">{{loadError}}</text>
2026-06-04 16:39:06 +08:00
</view>
<text class="transfer-arrow">›</text>
2026-06-04 16:39:06 +08:00
</view>
</view>
<view class="field">
<text class="field-label required">预约日期</text>
2026-06-04 16:39:06 +08:00
<picker mode="date" value="{{date}}" bindchange="onDateChange">
<view class="field-value">{{date}}</view>
</picker>
</view>
<view class="field">
<text class="field-label required">预约时间</text>
2026-06-04 16:39:06 +08:00
<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}}"
2026-10-20 18:02:49 +08:00
title="{{isUnassigned ? '选择分配美甲师' : '选择改派美甲师'}}"
keyword="{{artistKeyword}}"
2026-10-20 18:02:49 +08:00
placeholder="搜索美甲师姓名"
items="{{artistItems}}"
selected-id="{{selectedArtistId}}"
loading="{{false}}"
error-text="{{loadError}}"
2026-10-20 18:02:49 +08:00
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>
2026-06-04 16:39:06 +08:00
</view>
</view>