You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
2.3 KiB
43 lines
2.3 KiB
<!--pages/setting/paper/index.wxml-->
|
|
<cu-custom bgColor="bg-white" isBack="{{true}}">
|
|
<view slot="content" style="color:black;font-size:18px">车辆管理</view>
|
|
</cu-custom>
|
|
|
|
<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>
|
|
</van-search>
|
|
<refresh-view id="refresh" height="{{height}}" bind:refresh="onRefreshList" bind:loadmore="fetchOrderList">
|
|
<view class="list-empty" style="height:{{height}}rpx" wx:if="{{!orderList.length}}">
|
|
<view style="margin-bottom:24px" wx:if="{{loading}}">
|
|
<van-loading type="spinner" size="32" />
|
|
</view>
|
|
<image class="img-empty" src="/assets/image/list_empty.png" wx:else></image>
|
|
<view class="text-empty">{{loading? '正在加载' : '暂无数据'}}</view>
|
|
</view>
|
|
<view wx:for-item="pageItem" wx:for-index="pageIndex" wx:for="{{orderList}}" wx:key="pageIndex">
|
|
<van-cell center clickable wx:for="{{pageItem}}" wx:key="index">
|
|
<view slot="title" class="flex flex-justify" data-page="{{pageIndex}}" data-index="{{index}}" bindtap="lookItem">
|
|
<view>
|
|
<view class="text-sg text-bold">车牌号码:{{item.plateNumber}}</view>
|
|
<view class="text-sm text-gray" style="line-height: 28rpx">
|
|
<text>司机:{{item.driverName}}</text>
|
|
<text wx:if="{{item.driverMobile}}">({{item.driverMobile}})</text>
|
|
</view>
|
|
</view>
|
|
<van-button plain type="danger" size="small" bind:click="deleteForm" data-page="{{pageIndex}}" data-index="{{index}}">删除</van-button>
|
|
</view>
|
|
</van-cell>
|
|
</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>
|
|
|
|
<view style="border-radius: 50rpx;position: fixed;bottom:160rpx;right:50rpx">
|
|
<van-button round type="info" icon="plus" bind:click="lookItem" custom-style="width: 100rpx;height: 100rpx;"></van-button>
|
|
</view>
|
|
|
|
<van-dialog id="van-dialog" />
|
|
<notification id="qn-notification"/>
|