提交 Salon 小程序现有调整

This commit is contained in:
2026-10-20 18:02:49 +08:00
parent 527754af02
commit 68533738e0
34 changed files with 98 additions and 95 deletions
@@ -87,7 +87,7 @@ Page({
.filter(item => !keyword || String(item.name || '').toLowerCase().includes(keyword))
.map(item => ({
...item,
title: item.name || '未命名员工',
title: item.name || '未命名美甲师',
subtitle: item.statusText || '可用于改派',
meta: item.workStartTime && item.workEndTime ? `${item.workStartTime.slice(0, 5)}-${item.workEndTime.slice(0, 5)}` : '',
avatar: item.avatar || item.avatarUrl || '/assets/images/default-user-avatar.png'
@@ -1,5 +1,5 @@
{
"navigationBarTitleText": "改派员工",
"navigationBarTitleText": "改派美甲师",
"usingComponents": {
"entity-selector-sheet": "/components/entity-selector-sheet/index"
}
@@ -1,10 +1,10 @@
<view class="page no-tab">
<view class="card form-card section">
<view class="field">
<text class="field-label required">{{isUnassigned ? '分配员工' : '改派员工'}}</text>
<text class="field-label required">{{isUnassigned ? '分配美甲师' : '改派美甲师'}}</text>
<view class="field-value transfer-reference" bindtap="openArtistSheet">
<view>
<text>{{selectedArtist.name || '请选择员工'}}</text>
<text>{{selectedArtist.name || '请选择美甲师'}}</text>
<text wx:if="{{loadError}}" class="transfer-error">{{loadError}}</text>
</view>
<text class="transfer-arrow">›</text>
@@ -26,15 +26,15 @@
<entity-selector-sheet
visible="{{artistSheetVisible}}"
title="{{isUnassigned ? '选择分配员工' : '选择改派员工'}}"
title="{{isUnassigned ? '选择分配美甲师' : '选择改派美甲师'}}"
keyword="{{artistKeyword}}"
placeholder="搜索员工姓名"
placeholder="搜索美甲师姓名"
items="{{artistItems}}"
selected-id="{{selectedArtistId}}"
loading="{{false}}"
error-text="{{loadError}}"
empty-text="暂无可选员工"
action-text="快速新增员工"
empty-text="暂无可选美甲师"
action-text="快速新增美甲师"
bind:search="onArtistSearch"
bind:select="selectArtist"
bind:retry="retryArtists"