优化管理师登录与预约客户选择

This commit is contained in:
2026-06-26 13:32:06 +08:00
parent a5e36dc27c
commit 3e04d75f00
11 changed files with 332 additions and 32 deletions
@@ -1,12 +1,28 @@
<view class="page no-tab">
<view class="card form-card">
<view class="field">
<text class="field-label required">客户姓名</text>
<input value="{{form.customerName}}" data-field="customerName" bindinput="onInput" placeholder="请输入客户姓名" />
</view>
<view class="field">
<text class="field-label required">手机号</text>
<input value="{{form.phone}}" data-field="phone" bindinput="onInput" placeholder="请输入手机号" />
<view class="customer-select">
<view class="field">
<text class="field-label required">客户姓名</text>
<input value="{{form.customerName}}" data-field="customerName" bindinput="onInput" bindfocus="onCustomerFocus" bindblur="hideCustomerDropdown" placeholder="搜索或输入客户姓名" />
</view>
<view class="field">
<text class="field-label required">手机号</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>
<view wx:else>
<view wx:for="{{customerOptions}}" wx:key="id" class="customer-option" data-id="{{item.id}}" bindtap="selectCustomer">
<view class="customer-copy">
<text class="customer-name">{{item.displayName}}</text>
<text class="customer-phone">{{item.displayPhone}}</text>
</view>
<text class="customer-select-tag">选择</text>
</view>
<view wx:if="{{customerOptions.length === 0}}" class="customer-option muted-option">暂无匹配客户,可继续手动输入</view>
</view>
</view>
</view>
<view class="field">
<text class="field-label required">预约日期</text>