|
|
|
@ -127,7 +127,9 @@ Page({ |
|
|
|
var that = this; |
|
|
|
PageIndexN = 0 |
|
|
|
PageSizeN = 10 |
|
|
|
getListN(that, PageIndexN, PageSizeN) |
|
|
|
getListN(that, PageIndexN, PageSizeN, function (res) { |
|
|
|
|
|
|
|
}) |
|
|
|
}, |
|
|
|
upperY:function(e){ |
|
|
|
var that = this; |
|
|
|
@ -136,28 +138,11 @@ Page({ |
|
|
|
getListY(that, PageIndexY, PageSizeY) |
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
|
* 页面相关事件处理函数--监听用户下拉动作 |
|
|
|
* scroll-view的存在屏蔽了下拉刷新 |
|
|
|
*/ |
|
|
|
onPullDownRefresh: function () { |
|
|
|
// var that = this;
|
|
|
|
// if(this.data.currentTab==0){
|
|
|
|
// PageIndexN = 0
|
|
|
|
// PageSizeN = 10
|
|
|
|
// getListN(that, PageIndexN, PageSizeN)
|
|
|
|
// }else{
|
|
|
|
// PageIndexY = 0
|
|
|
|
// PageSizeY = 10
|
|
|
|
// getListY(that, PageIndexY, PageSizeY)
|
|
|
|
// }
|
|
|
|
// wx.stopPullDownRefresh() //停止下拉刷新
|
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
|
* 页面上拉触底事件的处理函数 |
|
|
|
*/ |
|
|
|
onReachBottom: function () { |
|
|
|
scrollLower: function () { |
|
|
|
var that = this; |
|
|
|
if(this.data.currentTab == 0){ |
|
|
|
PageIndexN = PageIndexN+1; |
|
|
|
|