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.
168 lines
7.8 KiB
168 lines
7.8 KiB
<!--pages/bidding/index/index.wxml-->
|
|
<wxs module="order" src="../../morder/order.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="cu-custom" style="height:{{CustomBar}}px;z-index: 99;">
|
|
<view class="cu-bar fixed" style="height:{{CustomBar}}px;padding-top:{{StatusBar}}rpx;{{shadow?'box-shadow: none': ''}};{{shadow?'border-bottom: none': ''}};background-color:white">
|
|
<view class="action" bindtap="backspace" wx:if="true">
|
|
<text class="weui_goback"></text>
|
|
<slot name="backText"></slot>
|
|
</view>
|
|
<view class="" style="top:{{StatusBar}}rpx;color:black;font-size:32rpx">
|
|
<view style="width:260rpx">
|
|
<view data-index="1" style="width:128rpx;color:{{bidType == 1 ? '#008AFF' : '#333'}};z-index: 100;float:left" bindtap="onTabChangeTop"><text>交易订单</text></view>
|
|
<view data-index="2" style="width:128rpx;color:{{bidType == 2 ? '#008AFF' : '#333'}};z-index: 100;float:right" bindtap="onTabChangeTop"><text>代卖订单</text></view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view> -->
|
|
|
|
<view wx:if="{{bidType == 1}}" class="nav bg-white fixed" style="top:{{CustomBar}}px;">
|
|
<wux-tabi tab-data="{{tabList}}" tab-index="{{tabIndex}}" scroll="{{true}}" bind:change="onTabChange"></wux-tabi>
|
|
</view>
|
|
<view wx:if="{{bidType == 1}}" style="height:90rpx;width:100%"></view>
|
|
|
|
<refresh-view wx:if="{{bidType == 1}}" 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 style="height:16rpx" wx:if="{{pageIndex != 0 || index != 0 }}"></view>
|
|
<view data-page="{{pageIndex}}" data-index="{{index}}" bindtap="lookItem">
|
|
<view class="flex flex-justify item-content">
|
|
<view>
|
|
<view class="page-name">
|
|
<text>{{item.bidType == 1 ? '一口价' : '竞拍订单'}}</text>
|
|
<text style="margin-left:6rpx;font-size:28rpx">({{item.storeName}})</text>
|
|
</view>
|
|
<view class="page-num">单号:{{item.orderId}}</view>
|
|
</view>
|
|
<view class="page-name">{{order.orderStatus(item.status)}}</view>
|
|
</view>
|
|
<wux-divider show-text="{{ false }}" dashed></wux-divider>
|
|
<view class="flex item-content">
|
|
<wux-image width="{{80}}" height="{{80}}" shape="rounded" lazyLoad="true" src="{{item.coverImgUrl}}" mode="aspectFill">
|
|
<image class="image-load" slot="loading" src="/assets/image/def_image.png"></image>
|
|
</wux-image>
|
|
<view style="flex:1;padding-left:20rpx;padding-top:8rpx;height:80px">
|
|
<view class="flex flex-justify" style="height:20px;">
|
|
<view class="page-name">{{item.secondCategoryName}}</view>
|
|
<view class="page-num">单价:{{formate.formatePrice2(item.unitPrice, kg)}}</view>
|
|
</view>
|
|
<view style="height:50px">
|
|
<view class="page-outline">{{item.description}}</view>
|
|
</view>
|
|
</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>
|
|
|
|
<!-- 代卖订单-->
|
|
|
|
<!-- <view wx:if="{{bidType == 2}}" class="nav bg-white fixed" style="top:{{CustomBar}}px;">
|
|
<wux-tabi tab-data="{{tabList2}}" tab-index="{{tabIndex2}}" bind:change="onTabTopChange2"></wux-tabi>
|
|
</view>
|
|
<view style="height:90rpx;width:100%"></view>
|
|
|
|
<refresh-view wx:if="{{bidType == 2}}" bind:refresh="onRefreshList2" height="{{height2}}" triggered="{{requesting2}}" scrollTop="{{top2}}" bind:scrolltolower="fetchOrderList2">
|
|
<view wx:if="{{!orderList2.length}}">
|
|
<view class="list-empty" style="height:{{height2}}rpx">
|
|
<view class="load-spinner text-gray" style="margin-bottom:24px" wx:if="{{loading2}}" />
|
|
<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="{{orderList2}}" wx:key="pageIndex">
|
|
<view wx:for="{{pageItem}}" wx:key="index">
|
|
<view data-page="{{pageIndex}}" data-index="{{index}}" bindtap="lookItem2">
|
|
<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 class="flex flex-justify text-df" style="margin-top:8rpx" wx:if="{{item.orderItems}}" wx:for="{{item.orderItems}}" wx:for-item="cell" wx:key="index">
|
|
<text class="text-black">货车车牌{{index+1}}:{{cell.logisticcsInfo.plateNumber}}</text>
|
|
<text class="text-gray" >{{cell.status==50?'待预约':(cell.status==51?'待送货':(cell.status==52?'结算中':(cell.status==53?'已完成':(cell.status==54?'已关闭':'---'))))}}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view wx:if="{{form2.pageNum>1}}" style="padding:20rpx">
|
|
<wux-divider>
|
|
<view class="loadmore">
|
|
<text class="icon--refresher" wx:if="{{!finished2}}"></text>
|
|
<text class="text-sm" style="margin-left:8rpx">{{finished2?'到底啦~':'加载中...'}}</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>
|