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

<!--pages/agent/index/index.wxml-->
<wxs module="formate" src="../../../pages/formate.wxs"></wxs>
<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">
<view class="bg-white flex flex-center" style="margin-left:24rpx;flex: 1;border-radius: 16rpx;height: 60rpx;" 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>
<!-- <image src="/assets/image/icon-calendar.png" style="height: 42rpx;width: 42rpx;margin-left: 24rpx;" bindtap="chooseCity"></image> -->
</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 bind:refresh="onRefreshList" height="{{height}}" triggered="{{requesting}}" scrollTop="{{top}}" bind:scrolltolower="fetchPapersList">
<wux-skeleton active wx:if="{{loading}}">
<view class="flex bg-white" style="height:{{height}}rpx;padding:32rpx">
<wux-skeleton-paragraph rounded rows="12" wux-class="case3-class" />
</view>
</wux-skeleton>
<view class="bg-white list-empty" style="height:{{height}}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 class="bg-white" wx:if="{{hasActivity}}" bindtap="toAbility">
<wux-image width="{{750}}" height="{{160}}" nuit="{{'rpx'}}" src="https://img.imgdb.cn/item/603f4f7e360785be54c19c1d.png" mode="aspectFill">
<view class="flex flex-center" slot="loading" style="height:146rpx;width:686rpx">
<text class="icon--refresher"></text>
</view>
</wux-image>
</view>
<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>