|
|
@ -1,13 +1,14 @@ |
|
|
<!--pages/home/customer/index.wxml--> |
|
|
<!--pages/home/customer/index.wxml--> |
|
|
<cu-custom bgColor="bg-white" isBack="{{true}}"> |
|
|
<cu-custom bgColor="bg-white" isBack="{{true}}"> |
|
|
<view slot="content">客户列表</view> |
|
|
|
|
|
|
|
|
<view slot="content">客户列表</view> |
|
|
</cu-custom> |
|
|
</cu-custom> |
|
|
|
|
|
|
|
|
<van-search value="{{ form.name }}" shape="round" placeholder="请输入搜索关键词" use-action-slot bind:change="onChange"> |
|
|
<van-search value="{{ form.name }}" shape="round" placeholder="请输入搜索关键词" use-action-slot bind:change="onChange"> |
|
|
<view slot="action" bind:tap="onSearch" style="padding: 0rpx 8rpx">搜索</view> |
|
|
<view slot="action" bind:tap="onSearch" style="padding: 0rpx 8rpx">搜索</view> |
|
|
</van-search> |
|
|
</van-search> |
|
|
|
|
|
|
|
|
<refresh-view bind:refresh="onRefreshList" height="{{height}}" triggered="{{requesting}}" scrollTop="{{top}}" bind:scrolltolower="fetchCustomerList"> |
|
|
|
|
|
|
|
|
<refresh-view bind:refresh="onRefreshList" height="{{height}}" triggered="{{requesting}}" scrollTop="{{top}}" |
|
|
|
|
|
bind:scrolltolower="fetchCustomerList"> |
|
|
<view class="list-empty" style="height:{{height}}rpx" wx:if="{{!orderList.length}}"> |
|
|
<view class="list-empty" style="height:{{height}}rpx" wx:if="{{!orderList.length}}"> |
|
|
<view style="margin-bottom:24px" wx:if="{{loading}}"> |
|
|
<view style="margin-bottom:24px" wx:if="{{loading}}"> |
|
|
<van-loading type="spinner" size="32" /> |
|
|
<van-loading type="spinner" size="32" /> |
|
|
@ -15,16 +16,20 @@ |
|
|
<image class="img-empty" src="/assets/image/list_empty.png" wx:else></image> |
|
|
<image class="img-empty" src="/assets/image/list_empty.png" wx:else></image> |
|
|
<view class="text-empty">{{loading? '正在加载' : '暂无数据'}}</view> |
|
|
<view class="text-empty">{{loading? '正在加载' : '暂无数据'}}</view> |
|
|
</view> |
|
|
</view> |
|
|
<view wx:else> |
|
|
|
|
|
<view wx:for-item="pageItem" wx:for-index="pageIndex" wx:for="{{orderList}}" wx:key="pageIndex"> |
|
|
|
|
|
<view class="bg-white" style="padding:0rpx 32rpx" wx:if="{{pageIndex>0}}"> |
|
|
|
|
|
<view style="height:2rpx;background-color:#f3f3f3"></view> |
|
|
|
|
|
|
|
|
<view wx:for-item="pageItem" wx:for-index="pageIndex" wx:for="{{orderList}}" wx:key="pageIndex"> |
|
|
|
|
|
<van-cell clickable wx:for="{{pageItem}}" wx:key="index"> |
|
|
|
|
|
<view slot="title" class="flex" style="margin-bottom:-12rpx"> |
|
|
|
|
|
<van-image round width="80rpx" height="80rpx" src="{{ item.avatarUrl || '/assets/image/ygImg.png' }}" /> |
|
|
|
|
|
<view style="margin-left:18rpx;width:100%"> |
|
|
|
|
|
<view class="text-sg text-bold">{{item.name || ''}}</view> |
|
|
|
|
|
<view class="text-sm text-gray" style="line-height:32rpx">{{item.mobile || ('卡号:' + item.cardNo)}}</view> |
|
|
|
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
<!--加载更多的UI--> |
|
|
|
|
|
<van-divider content-position="center" wx:if="{{ form.pageNum > 1}}" custom-style="padding:0rpx 120rpx"> |
|
|
|
|
|
<van-loading type="spinner" size="16" wx:if="{{!finished}}" /> |
|
|
|
|
|
<text class="text-sm" style="margin-left:8rpx">{{finished?'到底啦~':'加载中...'}}</text> |
|
|
|
|
|
</van-divider> |
|
|
|
|
|
|
|
|
</van-cell> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
<!--加载更多的UI--> |
|
|
|
|
|
<van-divider content-position="center" wx:if="{{ form.pageNum > 1}}" custom-style="padding:0rpx 120rpx"> |
|
|
|
|
|
<van-loading type="spinner" size="16" wx:if="{{!finished}}" /> |
|
|
|
|
|
<text class="text-sm" style="margin-left:8rpx">{{finished?'到底啦~':'加载中...'}}</text> |
|
|
|
|
|
</van-divider> |
|
|
</refresh-view> |
|
|
</refresh-view> |