纸通宝小程序
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.
 

91 lines
3.8 KiB

<!--pages/bidding/index/index.wxml-->
<wxs module="agent" src="../../agent/index.wxs"></wxs>
<wxs module="formate" src="../../../pages/formate.wxs"></wxs>
<cu-custom bgColor="bg-white" isBack="{{true}}">
<view slot="content">代卖订单</view>
</cu-custom>
<view class="nav bg-white fixed" style="top:{{CustomBar}}px;">
<wux-tabi tab-data="{{tabList}}" tab-index="{{tabIndex}}" bind:change="onTabChange"></wux-tabi>
</view>
<view style="height:90rpx;width:100%"></view>
<refresh-view bind:refresh="onRefreshList" height="{{height}}" triggered="{{requesting}}" scrollTop="{{top}}" bind:scrolltolower="fetchOrderList">
<view wx:if="{{!orderList.length}}">
<view class="list-empty" style="height:{{height}}rpx">
<view class="load-spinner text-gray" style="margin-bottom:24px" wx:if="{{loading}}" />
<image class="img-empty" src="/assets/image/list_empty.png" wx:else></image>
<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 wx:for="{{pageItem}}" wx:key="index">
<view data-page="{{pageIndex}}" data-index="{{index}}" bindtap="lookItem">
<view style="height:20rpx" wx:if="{{pageIndex != 0 || index != 0 }}"></view>
<view class="flex flex-justify item-content">
<view class="flex flex-center">
<wux-image width="{{20}}" height="{{20}}" shape="circle" src="{{item.logoImg}}" mode="aspectFill">
<image class="image-load" slot="loading" src="/assets/image/def_image.png"></image>
<image class="image-load" slot="error" src="/assets/image/def_image.png"></image>
</wux-image>
<text class="text-sg" style="margin-left:8rpx">{{item.paperMillName}}</text>
</view>
<view class="page-name" style="color:{{statusColor(item.status)}}">{{agent.orderStatus(item.status)}}</view>
</view>
<view class="item-content" style="border-top:2rpx solid #f3f3f3">
<view class="flex flex-justify text-df">
<text class="text-black">订单编号</text>
<text class="text-gray">{{item.orderId}}</text>
</view>
<view class="flex flex-justify text-df" style="margin-top:8rpx">
<text class="text-black">纸品分类:</text>
<text class="text-gray">{{item.paperCategoryName}}</text>
</view>
<view class="flex flex-justify text-df" style="margin-top:8rpx">
<text class="text-black">预估重量:</text>
<text class="text-gray">{{formate.formateWeight(item.totalEstimatedWeight)}}</text>
</view>
<view class="flex flex-justify text-df" style="margin-top:8rpx">
<text class="text-black">货车数量:</text>
<text class="text-gray">{{item.carNum}}辆</text>
</view>
<view class="flex flex-justify text-df" style="margin-top:8rpx">
<text class="text-black">货到时间:</text>
<text class="text-gray">{{item.deliveryTime}}</text>
</view>
</view>
</view>
</view>
</view>
<!--加载更多的UI-->
<view wx:if="{{form.pageNum>1}}" style="padding:20rpx">
<wux-divider>
<view class="loadmore">
<text class="icon--refresher" wx:if="{{!finished}}"></text>
<text class="text-sm" style="margin-left:8rpx">{{finished?'到底啦~':'加载中...'}}</text>
</view>
</wux-divider>
</view>
</view>
</refresh-view>
<wxs module="statusColor">
function statusColor(status) {
if (status == 50) {
return '#F12C20'
} else if (status == 51) {
return '#F12C20'
} else if (status == 52) {
return '#F12C20'
} else if (status == 53) {
return '#008AFF'
} else if (status == 54) {
return '#09BB07'
} else if (status == 55) {
return '#888888'
}
return ''
}
module.exports = statusColor
</wxs>