Browse Source

1、担保单不能上拉加载的bug修复

2、担保单异步回调函数加载的bug修复
master
chenxuhui 7 years ago
parent
commit
cef39168b1
2 changed files with 6 additions and 21 deletions
  1. +4
    -19
      pages/guarantee/guarantee.js
  2. +2
    -2
      pages/guarantee/guarantee.wxml

+ 4
- 19
pages/guarantee/guarantee.js View File

@ -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;


+ 2
- 2
pages/guarantee/guarantee.wxml View File

@ -7,7 +7,7 @@
<swiper current="{{currentTab}}" class="swiper-box" duration="300" style="height:{{winHeight - 55}}px" bindchange="bindChange">
<!-- 未审核 -->
<swiper-item class="swiper-items">
<scroll-view scroll-x="false" scroll-y="true" bindscrolltoupper="upperN" class='scroll-views'>
<scroll-view scroll-x="false" scroll-y="true" bindscrolltoupper="upperN" bindscrolltolower="scrollLower" class='scroll-views'>
<view class="custmer_list">
<view class="custmer_list_view_main" wx:for="{{arrayN}}" wx:key="item">
<view class='custmer_list_view' catchtap='itemclickN' data-Data='{{item}}'>
@ -30,7 +30,7 @@
<!-- 已审核 -->
<swiper-item class="swiper-items">
<scroll-view scroll-x="false" scroll-y="true" class='scroll-views' bindscrolltoupper="upperY">
<scroll-view scroll-x="false" scroll-y="true" class='scroll-views' bindscrolltoupper="upperY" bindscrolltolower="scrollLower">
<view class="custmer_list">
<view class="custmer_list_view_main" wx:for="{{arrayY}}" wx:key="item">
<view class='custmer_list_view' catchtap='itemclickY' data-Data='{{item}}'>


Loading…
Cancel
Save