CustomerInfo.wxml
1.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<popup title="选择客户" show="{{show}}" bindconfirm="confirm" bindcancel="onPopupCancel" height="90%">
<view class="car-brands-box">
<search-input bindsearch="searchCar" />
<view class="car-brands" catchtouchmove="noScroll">
<view class="label title y-center">
<span class="labelName">姓名</span>
<span class="labelPhone">| 手机号</span>
</view>
<scroll-view style="height: calc(100% - var(--fontSize88))" scroll-y enhanced="{{ true }}" show-scrollbar="{{ false }}" scroll-into-view="{{letter}}" bindscrolltolower="scrolltolower" lower-threshold="100">
<block wx:if="{{customerList.length > 0}}">
<view class="box">
<block wx:for="{{customerList}}" wx:for-item="item" wx:key="ind" wx:for-index="ind">
<view class="list y-center child {{item.active?'active':''}}" data-item="{{item}}" data-index="{{ind}}" catchtap="choose">
<span class="name text-hide">{{item.customer.customerName || '--'}}</span>
<span class="carType " wx:if="{{item.carType.length}}">
<view>(</view>
<view class="text-hide cartypeLabel">{{item.carType}}</view>
<view>)</view>
</span>
<span class="phone">{{item.customer.customerPhone}}</span>
<view class="icon">
<image src="/components/images/choose.png" />
</view>
</view>
</block>
</view>
<block wx:if="{{ nothing }}">
<view class="list-nothing">到底了~</view>
</block>
</block>
<block wx:if="{{ customerList.length <= 0 && !loading }}">
<view class="nothing">暂无数据</view>
</block>
</scroll-view>
<view class='tips' hidden='{{!showTip}}'>{{letter}}</view>
</view>
</view>
</popup>