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

60 lines
2.9 KiB

<wxs module="bidding" src="../../bidding/bidding.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" data-page="{{pageIndex}}" data-index="{{index}}" bindtap="lookItem">
<view style="height:16rpx" wx:if="{{pageIndex != 0 || index != 0 }}"></view>
<view class="bg-white flex flex-justify" style="width:100%;height:80rpx;padding: 0rpx 32rpx">
<view>
<text class="cuIcon-shop text-blue" style="width:32rpx;height:32rpx"></text>
<text style="width:32rpx;height:32rpx;margin-left: 8rpx">{{item.storeName}}</text>
</view>
<view class="text-red">{{bidding.orderBidding(item.status)}}</view>
</view>
<view class="bg-white" style="width:100%;padding: 0rpx 32rpx">
<wux-divider dashed show-text="{{ false }}"></wux-divider>
</view>
<view class="flex bg-white" style="width:100%;padding: 24rpx 32rpx">
<wux-image width="{{90}}" height="{{90}}" shape="rounded" lazyLoad="true" src="{{item.productCoverImgUrl}}" 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">
<view class="page-name">{{item.productSecondCategoryName}}</view>
<view class="page-num">我的报价:{{formate.formatePrice2(item.unitPrice, kg)}}</view>
</view>
<view style="height:60px">
<view class="page-outline">{{item.productSummary}}</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>