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

58 lines
2.9 KiB

<wxs module="order" src="../../order/order.wxs"></wxs>
<cu-custom bgColor="bg-white" isBack="{{false}}">
<view slot="content" style="color:black;font-size:36rpx">订单列表</view>
</cu-custom>
<!-- <scroll-view scroll-y="true" style="height: {{height}}rpx" bindscroll="scroll" bindscrolltolower="fetchOrderList"> -->
<refresh-view bind:refresh="onRefreshList" height="{{height}}" triggered="{{requesting}}" bind:scrolltolower="fetchOrderList">
<image style="width:100%;height:360rpx" mode="aspectFill" src="https://sc03.alicdn.com/kf/Had940d771b7a4cfe87ce933c21e8e5f5Q.jpg"></image>
<view class="bg-white {{stick? 'shadow' : ''}}" style="width:100%;height:80rpx;">
<wux-tabs controlled current="{{form.status}}" theme="positive" bindchange="onTabChange">
<wux-tab wx:for="{{tabList}}" wx:key="index" key="{{item.id}}">
<text class="text-df">{{item.name}}</text>
</wux-tab>
</wux-tabs>
</view>
<view wx:if="{{!orderList.length}}">
<view class="list-empty" style="height:{{ stick ? height : (height - 440)}}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? '正在加载' : userInfo ? '暂无数据' : '你还没登录'}}</view>
</view>
</view>
<view wx:for-item="pageItem" wx:for-index="pageIndex" wx:for="{{orderList}}" wx:key="pageIndex">
<view class="item-content" wx:for="{{pageItem}}" wx:key="index" data-page="{{pageIndex}}" data-index="{{index}}" bindtap="lookItem" style="margin-top:{{index==0?24:0}}rpx">
<view class="flex flex-justify" style="width:100%;height:80rpx">
<view class="item-name">{{item.userName || item.factoryName}}<text>{{item.receiveType == 1 ? '(厂内收货)' : '(厂外收货)'}}</text></view>
<view>{{order.orderStatus(item.status)}}</view>
</view>
<wux-divider dashed show-text="{{ false }}"></wux-divider>
<view style="width:100%;padding: 24rpx 0rpx">
<view class="item-cate">{{order.cateString(item.paperCategoryNameList)}}</view>
<view class="item-time">{{item.createTime}}</view>
</view>
<wux-divider show-text="{{ false }}"></wux-divider>
<view class="flex flex-justify" style="width:100%;height:80rpx">
<view>
<text class="item-label">总重量(Kg):</text>
<text class="item-val">{{order.numberFormat(item.settleWeight, 3)}}</text>
</view>
<view>
<text class="item-label">总金额(元):</text>
<text class="item-val">{{order.numberFormat(item.settlePrice, 2)}}</text>
</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>
</refresh-view>