Browse Source

no message

feature/v1.3
xpz2018 5 years ago
parent
commit
da207c161a
3 changed files with 7 additions and 8 deletions
  1. 2
      pages/home/factory-list/index.js
  2. 7
      pages/home/factory-list/index.wxml
  3. 6
      pages/process/index/index.wxml

2
pages/home/factory-list/index.js

@ -45,7 +45,7 @@ Scene({
this.setData({ height: app.globalData.fragmentHeight - 90 }) this.setData({ height: app.globalData.fragmentHeight - 90 })
} }
this.fetchCustomerList() this.fetchCustomerList()
this.fetchFactoryList()
// this.fetchFactoryList()
}, },
onTabChange: function ({detail}) { onTabChange: function ({detail}) {
if (this.data.tabIndex == Number(detail.index)) { if (this.data.tabIndex == Number(detail.index)) {

7
pages/home/factory-list/index.wxml

@ -3,7 +3,7 @@
<view slot="content">纸厂列表</view> <view slot="content">纸厂列表</view>
</cu-custom> </cu-custom>
<van-tabs active="{{tabIndex}}" color="#008AFF" title-active-color="#008AFF" bind:change="onTabChange" line-height="2px" wx:if="{{type == 1}}">
<!-- <van-tabs active="{{tabIndex}}" color="#008AFF" title-active-color="#008AFF" bind:change="onTabChange" line-height="2px" wx:if="{{type == 1}}">
<van-tab title="自有渠道"> <van-tab title="自有渠道">
<refresh-view bind:refresh="onRefreshList" height="{{height}}" triggered="{{requesting}}" scrollTop="{{top}}" bind:scrolltolower="fetchList"> <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 class="list-empty" style="height:{{height}}rpx" wx:if="{{!orderList.length}}">
@ -16,7 +16,6 @@
<view wx:for-item="pageItem" wx:for-index="pageIndex" wx:for="{{orderList}}" wx:key="pageIndex"> <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> <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> </view>
<!--加载更多的UI-->
<van-divider content-position="center" wx:if="{{ form.pageNum > 1}}" custom-style="padding:0rpx 120rpx"> <van-divider content-position="center" wx:if="{{ form.pageNum > 1}}" custom-style="padding:0rpx 120rpx">
<van-loading type="spinner" size="16" wx:if="{{!finished}}" /> <van-loading type="spinner" size="16" wx:if="{{!finished}}" />
<text class="text-sm" style="margin-left:8rpx">{{finished?'到底啦~':'加载中...'}}</text> <text class="text-sm" style="margin-left:8rpx">{{finished?'到底啦~':'加载中...'}}</text>
@ -35,9 +34,9 @@
<van-cell clickable is-link wx:for="{{factoryList}}" wx:key="index" title="{{item.name}}" data-index="{{index}}" bind:click="lookItem"></van-cell> <van-cell clickable is-link wx:for="{{factoryList}}" wx:key="index" title="{{item.name}}" data-index="{{index}}" bind:click="lookItem"></van-cell>
</refresh-view> </refresh-view>
</van-tab> </van-tab>
</van-tabs>
</van-tabs> -->
<refresh-view bind:refresh="onRefreshList" height="{{height}}" scrollTop="{{top}}" triggered="{{requesting}}" bind:scrolltolower="fetchList" wx:else>
<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 class="list-empty" style="height:{{height}}rpx" wx:if="{{!orderList.length}}">
<view style="margin-bottom:24px" wx:if="{{loading}}"> <view style="margin-bottom:24px" wx:if="{{loading}}">
<van-loading type="spinner" size="32" /> <van-loading type="spinner" size="32" />

6
pages/process/index/index.wxml

@ -58,13 +58,13 @@
</view> </view>
</view> </view>
<view style="padding: 0rpx 28rpx;margin-top:24rpx">
<!-- <view style="padding: 0rpx 28rpx;margin-top:24rpx">
<view class="bg-white" style="border-radius: 20rpx;padding: 24rpx 0rpx 8rpx 0rpx"> <view class="bg-white" style="border-radius: 20rpx;padding: 24rpx 0rpx 8rpx 0rpx">
<view class="flex flex-justify" style="padding: 0rpx 28rpx 24rpx 28rpx"> <view class="flex flex-justify" style="padding: 0rpx 28rpx 24rpx 28rpx">
<view class="text-black text-sg text-bold">出货统计</view> <view class="text-black text-sg text-bold">出货统计</view>
<view class="flex flex-center"> <view class="flex flex-center">
<view class="text-black text-sm" style="margin-right:8rpx">今日</view> <view class="text-black text-sm" style="margin-right:8rpx">今日</view>
<!-- <van-icon name="arrow-down" /> -->
<van-icon name="arrow-down" />
</view> </view>
</view> </view>
<view class="flex" style="padding:0rpx 0rpx 24rpx 0rpx" bindtap="outList"> <view class="flex" style="padding:0rpx 0rpx 24rpx 0rpx" bindtap="outList">
@ -85,7 +85,7 @@
</view> </view>
</view> </view>
</view> </view>
</view>
</view> -->
<view style="padding: 0rpx 28rpx;margin-top:24rpx"> <view style="padding: 0rpx 28rpx;margin-top:24rpx">
<view class="bg-white" style="border-radius: 20rpx;padding: 24rpx 0rpx"> <view class="bg-white" style="border-radius: 20rpx;padding: 24rpx 0rpx">

Loading…
Cancel
Save