修复Salon注册预约客户流程

This commit is contained in:
2026-10-30 15:13:38 +08:00
parent 53b6fcaa11
commit 7b9a5e4d1c
20 changed files with 748 additions and 67 deletions
+12 -3
View File
@@ -10,7 +10,7 @@
</view>
<view class="date-center">
<text class="date-main">{{dateTitle}}</text>
<text class="date-sub">{{businessStartTime}}-{{businessEndTime}}</text>
<text class="date-sub">{{businessHoursText}}</text>
</view>
<view class="date-side date-tools">
<button class="today-btn" bindtap="goToday">今</button>
@@ -35,6 +35,11 @@
</view>
</view>
<view wx:if="{{!businessHoursConfigured && !calendarError}}" class="business-hours-notice">
<view class="business-hours-notice-copy"><text class="business-hours-notice-title">门店营业时间未设置</text><text class="business-hours-notice-desc">设置后才能安排普通预约,历史订单与补录不受影响。</text></view>
<button wx:if="{{canManageShopSettings}}" class="business-hours-action" bindtap="openShopSettings">去设置</button>
</view>
<view wx:if="{{profilePromptVisible}}" class="profile-prompt-mask">
<view class="profile-prompt">
<text class="profile-prompt-title">完善你的工作名片</text><text class="profile-prompt-desc">头像和昵称会用于门店协作展示,可暂时跳过。</text>
@@ -83,7 +88,11 @@
</view>
</view>
<scroll-view class="day-board card" scroll-y>
<view wx:if="{{!businessHoursConfigured && !hasTimedAppointments}}" class="day-board card business-hours-empty">
<text class="business-hours-empty-title">预约时间轴暂不可用</text>
<text class="business-hours-empty-desc">请先设置门店营业时间,再安排普通预约。</text>
</view>
<scroll-view wx:else class="day-board card" scroll-y>
<view class="timeline-wrap" style="height: {{timelineHeight}}rpx;">
<view class="time-axis">
<view wx:for="{{hours}}" wx:key="value" class="time-label" style="top: {{item.top}}rpx;">{{item.label}}</view>
@@ -197,5 +206,5 @@
</view>
</block>
<button wx:if="{{canCreateAppointment && !calendarError}}" class="fab" bindtap="createAppointment">+</button>
<button wx:if="{{canCreateAppointment && businessHoursConfigured && !calendarError}}" class="fab" bindtap="createAppointment">+</button>
</view>