Commit e674d663bc202506ab3585d61cd46060b43a34f8

Authored by wangfan
1 parent d9aa83e0

smsbatch

... ... @@ -4,7 +4,7 @@ import App from '../../../utils/api';
const {regeneratorRuntime} = global
Page({
offset:0,
limit:10,
limit:30,
hasMore:true,
/**
* 页面的初始数据
... ... @@ -14,6 +14,7 @@ Page({
seller_id:'',
list:[],
hasMore:true,
height:350,
},
/**
... ... @@ -61,6 +62,10 @@ Page({
*/
onShow: function () {
this.SmsBatchList();
console.log('getApp().system',getApp().system);
this.setData({
height:getApp().system.windowHeight-330
})
},
/**
... ... @@ -89,6 +94,7 @@ Page({
sid: this.seller_id,
offset: this.offset,
limit: this.limit,
status:'-1,0,1',
}).then(res => {
let list = this.data.list;
let dl=res.data.length;
... ...
... ... @@ -18,12 +18,28 @@
</view>
<view class="flex-vc">
<block wx:if="{{list.length>0}}">
<scroll-view
scroll-y
style="height: {{height}}px;"
bindscrolltoupper="upper"
bindscrolltolower="lower"
bindscroll="scroll"
scroll-into-view=""
scroll-top="0"
>
<view class="list-rows" wx:for="{{list}}" wx:key="list.key" style="width: 100%;">
<rows item="{{item}}"></rows>
</view>
<view class="list-rows" wx:for="{{list}}" wx:key="list.key" style="width: 100%;">
<rows item="{{item}}"></rows>
</view>
<view class="list-rows" wx:for="{{list}}" wx:key="list.key" style="width: 100%;">
<rows item="{{item}}"></rows>
</view>
</scroll-view>
</block>
<view wx:else="">暂无短信记录</view>
<view wx:if="{{!hasMore}}">已经到底了</view>
<view wx:else="" class="list-rows">暂无短信记录</view>
<view wx:if="{{!hasMore}}" class="list-rows">已经到底了</view>
</view>
</view>
<view class="bottom-opt flex-lr">
... ...
... ... @@ -81,6 +81,7 @@ Page({
sid: this.seller_id,
offset: this.offset,
limit: this.limit,
status:'2',
}).then(res => {
let list = this.data.list;
let dl=res.data.length;
... ...
... ... @@ -7,6 +7,6 @@
<rows item="{{item}}"></rows>
</view>
</block>
<view wx:else="">暂无短信记录</view>
<view wx:if="{{!hasMore}}">已经到底了</view>
<view wx:else="" class="list-rows">暂无短信记录</view>
<view wx:if="{{!hasMore}}" class="list-rows">已经到底了</view>
</view>
... ...