Browse Source

no message

feature/v1.1
xpz2018 5 years ago
parent
commit
8dbe6a7e1a
2 changed files with 3 additions and 3 deletions
  1. 4
      pages/process/order-list/index.js
  2. 2
      pages/process/order-list/index.wxml

4
pages/process/order-list/index.js

@ -8,7 +8,7 @@ const app = getApp()
Page({ Page({
// * 页面的初始数据 // * 页面的初始数据
data: { data: {
height: app.globalData.fragmentHeight,
height: app.globalData.fragmentHeight - 90,
tabIndex: 0, tabIndex: 0,
tabList: [ tabList: [
{id: 0, name: '全部', badge: 0, status: '' }, {id: 0, name: '全部', badge: 0, status: '' },
@ -51,7 +51,7 @@ Page({
} }
} }
event.on('OrderMessage', this, this.onEvent) event.on('OrderMessage', this, this.onEvent)
this.setData({ height: app.globalData.fragmentHeight, title: this.data.title })
this.setData({ height: app.globalData.fragmentHeight - 90, title: this.data.title })
this.fetchOrderList() this.fetchOrderList()
}, },
onEvent: function(message){ onEvent: function(message){

2
pages/process/order-list/index.wxml

@ -9,7 +9,7 @@
</van-tabs> </van-tabs>
</view> </view>
<refresh-view bind:refresh="onRefreshList" height="{{height - 90}}" triggered="{{requesting}}" scrollTop="{{top}}" bind:scrolltolower="fetchOrderList">
<refresh-view bind:refresh="onRefreshList" height="{{height}}" triggered="{{requesting}}" scrollTop="{{top}}" bind:scrolltolower="fetchOrderList">
<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" />

Loading…
Cancel
Save