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

68 lines
3.2 KiB

<!--pages/morder/index/index.wxml-->
<wxs module="shop" src="../../shop/shop.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}}" scroll="{{true}}" 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">
<wux-divider show-text="{{ false }}" wx:if="{{pageIndex != 0 || index != 0 }}"></wux-divider>
<view data-page="{{pageIndex}}" data-index="{{index}}" bindtap="lookItem">
<view class="flex flex-justify bg-white" style="width:100%;height:80rpx;padding: 0rpx 24rpx">
<view>
<text class="cuIcon-people text-blue" style="width:32rpx;height:32rpx"></text>
<text style="width:32rpx;height:32rpx;margin-left: 8rpx">{{item.orderPlacerName}}</text>
<text style="width:32rpx;height:32rpx;margin-left: 8rpx">{{item.phone}}</text>
</view>
</view>
<wux-divider show-text="{{ false }}" dashed></wux-divider>
<view class="flex flex-justify item-content">
<view>
<view class="page-name">{{item.bidType == 1 ? '一口价' : '竞拍订单'}}</view>
<view class="page-num">单号:{{item.orderId}}</view>
</view>
<view class="page-name">{{shop.orderStatus(item.status)}}</view>
</view>
<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>