Commit e674d663bc202506ab3585d61cd46060b43a34f8

Authored by wangfan
1 parent d9aa83e0

smsbatch

@@ -4,7 +4,7 @@ import App from '../../../utils/api'; @@ -4,7 +4,7 @@ import App from '../../../utils/api';
4 const {regeneratorRuntime} = global 4 const {regeneratorRuntime} = global
5 Page({ 5 Page({
6 offset:0, 6 offset:0,
7 - limit:10, 7 + limit:30,
8 hasMore:true, 8 hasMore:true,
9 /** 9 /**
10 * 页面的初始数据 10 * 页面的初始数据
@@ -14,6 +14,7 @@ Page({ @@ -14,6 +14,7 @@ Page({
14 seller_id:'', 14 seller_id:'',
15 list:[], 15 list:[],
16 hasMore:true, 16 hasMore:true,
  17 + height:350,
17 }, 18 },
18 19
19 /** 20 /**
@@ -61,6 +62,10 @@ Page({ @@ -61,6 +62,10 @@ Page({
61 */ 62 */
62 onShow: function () { 63 onShow: function () {
63 this.SmsBatchList(); 64 this.SmsBatchList();
  65 + console.log('getApp().system',getApp().system);
  66 + this.setData({
  67 + height:getApp().system.windowHeight-330
  68 + })
64 }, 69 },
65 70
66 /** 71 /**
@@ -89,6 +94,7 @@ Page({ @@ -89,6 +94,7 @@ Page({
89 sid: this.seller_id, 94 sid: this.seller_id,
90 offset: this.offset, 95 offset: this.offset,
91 limit: this.limit, 96 limit: this.limit,
  97 + status:'-1,0,1',
92 }).then(res => { 98 }).then(res => {
93 let list = this.data.list; 99 let list = this.data.list;
94 let dl=res.data.length; 100 let dl=res.data.length;
@@ -18,12 +18,28 @@ @@ -18,12 +18,28 @@
18 </view> 18 </view>
19 <view class="flex-vc"> 19 <view class="flex-vc">
20 <block wx:if="{{list.length>0}}"> 20 <block wx:if="{{list.length>0}}">
  21 + <scroll-view
  22 + scroll-y
  23 + style="height: {{height}}px;"
  24 + bindscrolltoupper="upper"
  25 + bindscrolltolower="lower"
  26 + bindscroll="scroll"
  27 + scroll-into-view=""
  28 + scroll-top="0"
  29 + >
21 <view class="list-rows" wx:for="{{list}}" wx:key="list.key" style="width: 100%;"> 30 <view class="list-rows" wx:for="{{list}}" wx:key="list.key" style="width: 100%;">
22 <rows item="{{item}}"></rows> 31 <rows item="{{item}}"></rows>
23 </view> 32 </view>
  33 + <view class="list-rows" wx:for="{{list}}" wx:key="list.key" style="width: 100%;">
  34 + <rows item="{{item}}"></rows>
  35 + </view>
  36 + <view class="list-rows" wx:for="{{list}}" wx:key="list.key" style="width: 100%;">
  37 + <rows item="{{item}}"></rows>
  38 + </view>
  39 + </scroll-view>
24 </block> 40 </block>
25 - <view wx:else="">暂无短信记录</view>  
26 - <view wx:if="{{!hasMore}}">已经到底了</view> 41 + <view wx:else="" class="list-rows">暂无短信记录</view>
  42 + <view wx:if="{{!hasMore}}" class="list-rows">已经到底了</view>
27 </view> 43 </view>
28 </view> 44 </view>
29 <view class="bottom-opt flex-lr"> 45 <view class="bottom-opt flex-lr">
@@ -81,6 +81,7 @@ Page({ @@ -81,6 +81,7 @@ Page({
81 sid: this.seller_id, 81 sid: this.seller_id,
82 offset: this.offset, 82 offset: this.offset,
83 limit: this.limit, 83 limit: this.limit,
  84 + status:'2',
84 }).then(res => { 85 }).then(res => {
85 let list = this.data.list; 86 let list = this.data.list;
86 let dl=res.data.length; 87 let dl=res.data.length;
@@ -7,6 +7,6 @@ @@ -7,6 +7,6 @@
7 <rows item="{{item}}"></rows> 7 <rows item="{{item}}"></rows>
8 </view> 8 </view>
9 </block> 9 </block>
10 - <view wx:else="">暂无短信记录</view>  
11 - <view wx:if="{{!hasMore}}">已经到底了</view> 10 + <view wx:else="" class="list-rows">暂无短信记录</view>
  11 + <view wx:if="{{!hasMore}}" class="list-rows">已经到底了</view>
12 </view> 12 </view>