小程序预约详情支持图片预览、编辑预约与完成收款拆分
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
<view class="page no-tab appointment-page">
|
||||
<view class="appointment-hero">
|
||||
<view class="appointment-hero-copy">
|
||||
<text class="appointment-eyebrow">NEW APPOINTMENT</text>
|
||||
<text class="appointment-title">安排一场美甲</text>
|
||||
<text class="appointment-eyebrow">{{editMode ? 'EDIT APPOINTMENT' : 'NEW APPOINTMENT'}}</text>
|
||||
<text class="appointment-title">{{editMode ? '调整这场预约' : '安排一场美甲'}}</text>
|
||||
</view>
|
||||
<view class="appointment-date-pill"><text class="date-pill-icon">◷</text><text>{{appointmentDateBadge}}</text></view>
|
||||
</view>
|
||||
@@ -47,16 +47,16 @@
|
||||
<text class="chevron">›</text>
|
||||
</view>
|
||||
</picker>
|
||||
<view class="field-card appointment-field-card" bindtap="openTimeSheet">
|
||||
<view class="field-icon">◷</view>
|
||||
<view class="field-text"><text class="field-label"><text class="required-mark required-mark-before">*</text>预约时间</text><text wx:if="{{form.appointmentTime}}" class="field-value">{{appointmentDayLabel}} {{form.appointmentTime}} · {{form.durationMinutes}}分钟</text><text wx:else class="field-value placeholder">{{timeSelectTip}}</text><text wx:if="{{form.appointmentTime}}" class="field-meta">{{selectedArtist.name || '暂不分配美甲师'}}</text></view>
|
||||
<text class="chevron">›</text>
|
||||
</view>
|
||||
<view class="field-card appointment-field-card" bindtap="openArtistSheet">
|
||||
<view class="field-icon">♙</view>
|
||||
<view class="field-text"><text class="field-label">服务美甲师(选填)</text><text wx:if="{{selectedArtist.id === '__unassigned__'}}" class="field-value">已选择暂不分配美甲师</text><text wx:else class="field-value {{selectedArtist.name ? '' : 'placeholder'}}">{{selectedArtist.name || '请选择美甲师或暂不分配'}}</text></view>
|
||||
<text class="chevron">›</text>
|
||||
</view>
|
||||
<view class="field-card appointment-field-card" bindtap="openTimeSheet">
|
||||
<view class="field-icon">◷</view>
|
||||
<view class="field-text"><text class="field-label"><text class="required-mark required-mark-before">*</text>预约时间</text><text wx:if="{{form.appointmentTime}}" class="field-value">{{appointmentDayLabel}} {{form.appointmentTime}} · {{form.durationMinutes}}分钟</text><text wx:else class="field-value placeholder">{{timeSelectTip}}</text><text wx:if="{{form.appointmentTime}}" class="field-meta">{{selectedArtist.name || '暂不分配美甲师'}}</text></view>
|
||||
<text class="chevron">›</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="card form-card customer-section">
|
||||
@@ -75,7 +75,7 @@
|
||||
<view wx:if="{{form.customerUserId}}" class="customer-selected-tip">已选择系统客户</view>
|
||||
</view>
|
||||
|
||||
<view class="draft-tip card"><text>{{draftSavedAtText}}</text><button class="text-btn draft-clear" bindtap="resetForm">恢复默认值</button></view>
|
||||
<view wx:if="{{!editMode}}" class="draft-tip card"><text>{{draftSavedAtText}}</text><button class="text-btn draft-clear" bindtap="resetForm">恢复默认值</button></view>
|
||||
<view wx:if="{{conflictTip}}" class="availability-tip card {{conflictLevel}}"><text class="tip-title">时段检查</text><text class="tip-text">{{conflictTip}}</text></view>
|
||||
|
||||
<entity-selector-sheet visible="{{customerSheetVisible}}" title="选择客户" keyword="{{customerKeyword}}" placeholder="搜索客户姓名或手机号" items="{{customerOptions}}" selected-id="{{form.customerUserId}}" loading="{{customerLoading}}" error-text="{{customerError}}" empty-text="暂无匹配客户" show-view-switch="{{true}}" view-mode="{{customerViewMode}}" sort-label="{{customerNewestFirst ? '最新添加' : '最早添加'}}" bind:search="onCustomerSearch" bind:select="selectCustomer" bind:retry="retryCustomerSearch" bind:changeview="changeCustomerView" bind:sort="toggleCustomerSort" bind:close="closeCustomerSheet" />
|
||||
@@ -148,6 +148,6 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="fixed-bottom"><view wx:if="{{canCreateAppointment}}" class="action-row"><button class="secondary-btn draft-btn" bindtap="saveDraft">保存草稿</button><button class="primary-btn submit-btn" loading="{{loading}}" bindtap="submit">提交预约</button></view></view>
|
||||
<view class="fixed-bottom"><view wx:if="{{canCreateAppointment}}" class="action-row"><button wx:if="{{!editMode}}" class="secondary-btn draft-btn" bindtap="saveDraft">保存草稿</button><button class="primary-btn submit-btn" loading="{{loading}}" bindtap="submit">{{editMode ? '保存修改' : '提交预约'}}</button></view></view>
|
||||
<action-modal id="actionModal" />
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user