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.
77 lines
3.8 KiB
77 lines
3.8 KiB
<!--pages/order/order-list/index.wxml-->
|
|
<cu-custom bgColor="bg-white" isBack="{{true}}">
|
|
<view slot="backText">返回</view>
|
|
<view slot="content" style="color:black;font-size:36rpx">全部订单</view>
|
|
</cu-custom>
|
|
|
|
<view class="nav bg-white fixed" style="top:{{CustomBar}}px;">
|
|
<view class="cu-bar bg-white search">
|
|
<view class="search-form round" bindtap="searchList">
|
|
<text class="cuIcon-search"></text>
|
|
<input type="text" disabled="true" placeholder="输入搜索的关键词" confirm-type="search"></input>
|
|
</view>
|
|
</view>
|
|
<view style="height:80rpx;padding: 10rpx 32rpx">
|
|
<wux-tab scroll tab-data="{{tabs}}" tab-cur="{{pageIndex}}" size="{{60}}" bindchange="onTabChange"></wux-tab>
|
|
</view>
|
|
</view>
|
|
|
|
<view style="padding-top: 80rpx">
|
|
<view wx:if="{{loading}}" class="flex flex-column flex-center" style="height:{{height}}rpx">
|
|
<view class="load-spinner text-gray" />
|
|
<view class="text-empty" style="margin-top:48rpx">加载中...</view>
|
|
</view>
|
|
<view wx:elif="{{taskList.length}}" class="flex list-empty" style="height:{{height}}rpx">
|
|
<image class="img-empty" src="/assets/image/icon_empty.svg"></image>
|
|
<view class="text-empty">暂无消息</view>
|
|
</view>
|
|
<scroll-view wx:else scroll-y style="height:{{height}}rpx" bindscrolltolower="fetchTaskList">
|
|
<view class="list-view" wx:for="{{taskList}}" wx:key="index" data-index="{{index}}" bindtap="lookItem">
|
|
<view class="flex flex-justify item-header">
|
|
<view class="flex">
|
|
<view class="customer-box-{{order.colorType(item.customerType)}}">
|
|
<view class="customer-text-{{order.colorType(item.customerType)}}">{{order.customerType(item.customerType)}}</view>
|
|
<view class="customer-type-{{order.colorType(item.customerType)}}">{{item.completedOrdersNumber}}</view>
|
|
</view>
|
|
<view style="margin-left:16rpx">
|
|
<view class="flex" style="align-items: center">
|
|
<view class="text-black text-sg">{{item.customerName}}</view>
|
|
<view class="item-label" wx:if="{{item.hasContract==1}}">合</view>
|
|
<view class="item-label" wx:if="{{item.hasDepositAmount==1}}">押</view>
|
|
<view class="item-label" wx:if="{{item.hasAdvance==1}}">预</view>
|
|
</view>
|
|
<view class="flex" style="margin-top:4rpx">
|
|
<view class="text-gray text-sm">{{ item.linkmanName }} {{ item.linkmanPhone }}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="text-{{item.orderStatus==3?'red':'blue'}} text-status">{{order.orderStatus(item.orderStatus)}}</view>
|
|
</view>
|
|
<view class="cu-bar item-title" style="min-height:80rpx;margin: 0 24rpx">
|
|
<view class="flex text-sg">
|
|
<text class="text-cut text-black">{{order.getCateName(item)}}</text>
|
|
<text class="text-df text-gray">(共{{ item.cateNum }}个)</text>
|
|
</view>
|
|
<view class="flex flex-center text-blue text-df">
|
|
<text class="text-{{order.orderStatusColor(item.orderStatus)}}">{{item.orderStatusStr}}</text>
|
|
</view>
|
|
</view>
|
|
<view class="cu-bar cate_item">
|
|
<view class="action text-df">预估重量(吨):{{order.formateWeight(item.estimateWeight)}}</view>
|
|
<view class="action text-df">预估金额(元):{{order.formatePrice(item.estimatePrice)}}</view>
|
|
</view>
|
|
<view class="cu-bar item-title" style="min-height:80rpx;margin: 0 24rpx">
|
|
<view class="text-gray text-df">下单时间:{{item.createTime}}</view>
|
|
<view class="flex flex-center text-blue text-df">
|
|
<text class="text-gray">查看详情</text>
|
|
<text class="cuIcon-right text-gray" style="padding-top:6rpx"></text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<!--加载更多的UI-->
|
|
<view class="flex flex-center" style="height:80rpx;padding-bottom:18rpx" wx:if="{{form.pageNum>1}}">
|
|
<text class="icon--refresher" wx:if="{{!finished}}"></text>
|
|
<text class="text-sg" style="margin-left:8rpx">{{finished?'已经全部加载':'加载中...'}}</text>
|
|
</view>
|
|
</scroll-view>
|
|
</view>
|