优化预约美甲师选择弹窗

This commit is contained in:
2026-07-21 21:34:45 +08:00
parent a84646ea60
commit b66e789098
3 changed files with 359 additions and 5 deletions
@@ -48,9 +48,10 @@
</view>
<view class="field">
<text class="field-label required">指定员工</text>
<picker range="{{artists}}" range-key="name" bindchange="onArtistChange">
<view class="field-value">{{selectedArtist.name || '请选择美甲师'}}</view>
</picker>
<view class="field-value artist-value {{selectedArtist.name ? '' : 'placeholder'}}" bindtap="openArtistSheet">
<text>{{selectedArtist.name || '请选择美甲师'}}</text>
<text class="time-arrow">›</text>
</view>
</view>
<view class="field">
<text class="field-label required">预约时间</text>
@@ -181,6 +182,39 @@
</view>
</view>
<view wx:if="{{artistSheetVisible}}" class="modal-mask artist-mask" catchtap="stopTap">
<view class="artist-modal" catchtap="stopTap">
<view class="modal-head artist-modal-head">
<text class="artist-modal-action muted" bindtap="closeArtistSheet">取消</text>
<view class="artist-modal-title-block">
<text class="modal-title">选择美甲师</text>
<text class="modal-subtitle">选择后将重新计算可约时间</text>
</view>
<text class="artist-modal-action primary" bindtap="confirmArtistSheet">确定</text>
</view>
<scroll-view class="artist-list" scroll-y>
<view wx:if="{{artists.length === 0}}" class="time-empty">暂无可选美甲师</view>
<view wx:for="{{artists}}" wx:key="id" class="artist-card {{pendingArtistId == item.id ? 'active' : ''}}" data-id="{{item.id}}" bindtap="selectArtistCard">
<view class="artist-card-left">
<view wx:if="{{item.avatar}}" class="artist-avatar image-avatar">
<image src="{{item.avatar}}" mode="aspectFill"></image>
</view>
<view wx:else class="artist-avatar" style="background: {{item.color}};">{{item.shortName}}</view>
<view class="artist-info">
<view class="artist-name-row">
<text class="artist-name">{{item.name}}</text>
<text class="artist-option-status {{item.statusClass}}">{{item.statusText}}</text>
</view>
<text class="artist-schedule">{{item.scheduleSummary}}</text>
<text class="artist-meta">{{item.metaText}}</text>
</view>
</view>
<view class="artist-check {{pendingArtistId == item.id ? 'active' : ''}}">{{pendingArtistId == item.id ? '✓' : ''}}</view>
</view>
</scroll-view>
</view>
</view>
<view wx:if="{{timeSheetVisible}}" class="modal-mask" bindtap="closeTimeSheet">
<view class="time-modal" catchtap="stopTap">
<view class="modal-head">