纸通宝SAAS仓库
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.
 

66 lines
3.9 KiB

<!--pages/home/customer/index.wxml-->
<cu-custom bgColor="bg-white" isBack="{{true}}">
<view slot="content">渠道列表</view>
</cu-custom>
<!-- <van-tabs active="{{tabIndex}}" color="#008AFF" title-active-color="#008AFF" bind:change="onTabChange" line-height="2px" wx:if="{{type == 1}}">
<van-tab title="自有渠道">
<refresh-view bind:refresh="onRefreshList" height="{{height}}" triggered="{{requesting}}" scrollTop="{{top}}" bind:scrolltolower="fetchList">
<view class="list-empty" style="height:{{height}}rpx" wx:if="{{!orderList.length}}">
<view style="margin-bottom:24px" wx:if="{{loading}}">
<van-loading type="spinner" size="32" />
</view>
<image class="img-empty" src="/assets/image/list_empty.png" wx:else></image>
<view class="text-empty">{{loading? '正在加载' : '暂无数据'}}</view>
</view>
<view wx:for-item="pageItem" wx:for-index="pageIndex" wx:for="{{orderList}}" wx:key="pageIndex">
<van-cell clickable is-link wx:for="{{pageItem}}" wx:key="index" title="{{item.name}}" data-page="{{pageIndex}}" data-index="{{index}}" bind:click="lookItem"></van-cell>
</view>
<van-divider content-position="center" wx:if="{{ form.pageNum > 1}}" custom-style="padding:0rpx 120rpx">
<van-loading type="spinner" size="16" wx:if="{{!finished}}" />
<text class="text-sm" style="margin-left:8rpx">{{finished?'到底啦~':'加载中...'}}</text>
</van-divider>
</refresh-view>
</van-tab>
<van-tab title="千鸟渠道">
<refresh-view bind:refresh="onRefreshList2" height="{{height}}" triggered="{{requesting2}}" scrollTop="{{top}}">
<view class="list-empty" style="height:{{height}}rpx" wx:if="{{!factoryList.length}}">
<view style="margin-bottom:24px" wx:if="{{loading2}}">
<van-loading type="spinner" size="32" />
</view>
<image class="img-empty" src="/assets/image/list_empty.png" wx:else></image>
<view class="text-empty">{{loading? '正在加载' : '暂无数据'}}</view>
</view>
<van-cell clickable is-link wx:for="{{factoryList}}" wx:key="index" title="{{item.name}}" data-index="{{index}}" bind:click="lookItem"></van-cell>
</refresh-view>
</van-tab>
</van-tabs> -->
<refresh-view bind:refresh="onRefreshList" height="{{height}}" scrollTop="{{top}}" triggered="{{requesting}}" bind:scrolltolower="fetchList">
<view class="list-empty" style="height:{{height}}rpx" wx:if="{{!orderList.length}}">
<view style="margin-bottom:24px" wx:if="{{loading}}">
<van-loading type="spinner" size="32" />
</view>
<image class="img-empty" src="/assets/image/list_empty.png" wx:else></image>
<view class="text-empty">{{loading? '正在加载' : '暂无数据'}}</view>
</view>
<view wx:for-item="pageItem" wx:for-index="pageIndex" wx:for="{{orderList}}" wx:key="pageIndex">
<van-cell clickable is-link wx:for="{{pageItem}}" wx:key="index" title="{{item.name}}" data-page="{{pageIndex}}" data-index="{{index}}" bind:click="lookItem"></van-cell>
</view>
<!--加载更多的UI-->
<van-divider content-position="center" wx:if="{{ form.pageNum > 1}}" custom-style="padding:0rpx 120rpx">
<van-loading type="spinner" size="16" wx:if="{{!finished}}" />
<text class="text-sm" style="margin-left:8rpx">{{finished?'到底啦~':'加载中...'}}</text>
</van-divider>
</refresh-view>
<view class="booking-tool" style="bottom:200rpx" wx:if="{{tabIndex == 0}}">
<button class="roder-add flex flex-center" bindtap="showDialog">
<text class="cuIcon-add text-white" style="font-size:32px"></text>
</button>
</view>
<van-dialog use-slot title="{{nowItem.id ? '修改渠道' : '创建渠道'}}" show="{{ show }}" transition="fade" show-cancel-button bind:close="onClose" bind:confirm="onConfirm">
<input class="dialog-input" value="{{nowItem.name}}" placeholder-style="color:#aaa;" maxlength="8" placeholder="请输入纸厂名称" bindinput="bindInput" />
</van-dialog>
<notification id="qn-notification" />