完善店务预约状态与详情流程

This commit is contained in:
2026-07-23 01:34:35 +08:00
parent c347e59b50
commit aeaead1648
18 changed files with 1360 additions and 139 deletions
@@ -5,10 +5,6 @@
<text class="field-label required">客户姓名</text>
<input value="{{form.customerName}}" data-field="customerName" bindinput="onInput" bindfocus="onCustomerFocus" bindblur="hideCustomerDropdown" placeholder="搜索或输入客户姓名" focus="{{customerNameFocused}}" />
</view>
<view class="field">
<text class="field-label">手机号</text>
<input value="{{form.phone}}" data-field="phone" bindinput="onInput" bindfocus="onCustomerFocus" bindblur="hideCustomerDropdown" placeholder="可选,填写后匹配客户" />
</view>
<view wx:if="{{customerDropdownVisible}}" class="customer-dropdown">
<view wx:if="{{customerLoading}}" class="customer-option muted-option">正在搜索客户...</view>
<view wx:elif="{{customerError}}" class="customer-option muted-option">{{customerError}},可继续手动输入</view>
@@ -36,10 +32,18 @@
<text>{{form.customerName ? (form.manualProductTitle || selectedProduct.title || '请选择作品') : '请先填写客户姓名'}}</text>
</view>
</view>
<view wx:if="{{form.productId || form.manualProductTitle}}" class="field">
<text class="field-label required">本次价格</text>
<input value="{{form.manualProductPrice}}" data-field="manualProductPrice" bindinput="onInput" type="digit" placeholder="可按本次预约修改" />
<text class="unit">元</text>
<view wx:if="{{form.productId || form.manualProductTitle}}" class="field price-field">
<text class="field-label">本次价格</text>
<view class="price-control">
<view class="price-input {{form.manualProductPriceUndetermined ? 'disabled' : ''}}">
<input value="{{form.manualProductPrice}}" data-field="manualProductPrice" bindinput="onInput" disabled="{{form.manualProductPriceUndetermined}}" type="digit" placeholder="{{form.manualProductPriceUndetermined ? '未定' : '可按本次预约修改'}}" />
<text>{{form.manualProductPriceUndetermined ? '未定' : '元'}}</text>
</view>
<view class="price-toggle">
<text>价格未定</text>
<switch checked="{{form.manualProductPriceUndetermined}}" color="#6f8f83" bindchange="onPriceUndeterminedChange" />
</view>
</view>
</view>
<view class="field">
<text class="field-label required">预计时长</text>
@@ -110,16 +114,20 @@
<input value="{{form.manualProductTitle}}" data-field="manualProductTitle" bindinput="onInput" placeholder="作品名称" />
</view>
<view class="manual-field manual-price-field">
<text class="manual-field-label required-label">价格</text>
<view class="manual-price-input">
<input value="{{form.manualProductPrice}}" data-field="manualProductPrice" bindinput="onInput" type="digit" placeholder="价格" />
<text>元</text>
<text class="manual-field-label">价格</text>
<view class="manual-price-input {{form.manualProductPriceUndetermined ? 'disabled' : ''}}">
<input value="{{form.manualProductPrice}}" data-field="manualProductPrice" bindinput="onInput" disabled="{{form.manualProductPriceUndetermined}}" type="digit" placeholder="{{form.manualProductPriceUndetermined ? '未定' : '价格'}}" />
<text>{{form.manualProductPriceUndetermined ? '未定' : '元'}}</text>
</view>
<view class="manual-price-toggle">
<text>价格未定</text>
<switch checked="{{form.manualProductPriceUndetermined}}" color="#6f8f83" bindchange="onPriceUndeterminedChange" />
</view>
</view>
</view>
<view class="manual-image-section">
<view class="manual-image-head">
<text class="manual-image-title required-label">作品图片</text>
<text class="manual-image-title">作品图片</text>
</view>
<view class="manual-image-list">
<view wx:for="{{manualProductImageUrls}}" wx:for-item="imageUrl" wx:key="*this" class="manual-image-item">
@@ -155,10 +163,8 @@
<view wx:if="{{productModalVisible}}" class="modal-mask template-mask" catchtap="stopTap">
<view class="product-modal template-modal" catchtap="stopTap">
<view class="modal-head">
<view>
<text class="modal-title">使用已有作品模板</text>
</view>
<view class="modal-close" bindtap="closeProductModal">×</view>
<view><text class="modal-title">选择已有作品</text></view>
</view>
<input class="product-search" value="{{productKeyword}}" bindinput="onProductSearch" placeholder="搜索作品、标签、美甲师" />
<scroll-view class="product-list" scroll-y>