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

50 lines
2.8 KiB

<view class="cu-custom top-bg" style="height:{{customHeight}}rpx;z-index: 99;">
<view class="cu-bar fixed " style="height:{{customHeight}}rpx;padding-top:{{StatusBar}}rpx;border-bottom:none;padding-right: 24rpx;width: {{customWidth}}px">
<view class="bg-white flex flex-center" style="margin-left:24rpx;flex: 1;border-radius: 16rpx;height: 64rpx;" catchtap="searchList">
<image src="/assets/image/icon-search.png" style="height: 30rpx;width: 30rpx;margin-left: 16rpx"></image>
<text class="text-gray text-sm" style="flex: 1;margin-left: 8rpx">输入纸名/品名/纸厂/规格</text>
</view>
</view>
</view>
<view class="bg-white" style="height: 90rpx;border-bottom: 1rpx solid #f3f3f3;position: relative;" wx:if="{{tabList.length}}">
<wux-tabi scroll="{{scrolled}}" tab-data="{{tabList}}" disable="{{requesting}}" tab-index="{{tabIndex}}" bind:change="onTabChange"></wux-tabi>
<view class="flex flex-justify bg-white" style="height: 88rpx;position: absolute;right: 0px;top: 0px;padding: 0rpx 24rpx;" bindtap="chooseCity">
<text class="text-df text-blue">选择城市</text>
<text class="cuIcon-right text-blue" style="padding-top: 4rpx;"></text>
</view>
</view>
<wux-skeleton active wx:else>
<view class="flex bg-white" style="height: 90rpx;padding:32rpx;border-bottom: 1rpx solid #f3f3f3">
<wux-skeleton-paragraph rounded rows="1" wux-class="case3-class" />
</view>
</wux-skeleton>
<!-- <refresh-view id="refreshview" bind:refresh="onRefreshList" height="{{height - 90 - customHeight}}" bind:loadmore="fetchPapersList"> -->
<refresh-view bind:refresh="onRefreshList" height="{{mHeight}}" triggered="{{requesting}}" scrollTop="{{top}}" bind:scrolltolower="fetchPapersList">
<wux-skeleton active wx:if="{{loading}}">
<view class="flex bg-white" style="height:{{mHeight}}rpx;padding:32rpx">
<wux-skeleton-paragraph rounded rows="12" wux-class="case3-class" />
</view>
</wux-skeleton>
<view class="bg-white list-empty" style="height:{{mHeight}}rpx" bindtap="onRefreshList" wx:elif="{{!orderList.length && !loading}}">
<image class="img-empty" src="/assets/image/list_empty.png"></image>
<view class="text-empty">暂无数据,点击重新加载</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>
<agent-item item="{{item}}"></agent-item>
</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>