CustomerInfo.wxml 1.92 KB
<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="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/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>