Browse Source

分页的bug修改

feature/v2.1
xpz2018 4 years ago
parent
commit
9a98e6c3c4
13 changed files with 27 additions and 13 deletions
  1. 2
      pages/agent/order-list/index.js
  2. 2
      pages/agent/select-list/index.js
  3. 2
      pages/message/index/index.js
  4. 2
      pages/process/agent-list/index.js
  5. 2
      pages/process/check-list/index.js
  6. 2
      pages/process/order-list/index.js
  7. 2
      pages/process/outside-list/index.js
  8. 2
      pages/process/payment-list/index.js
  9. 2
      pages/storage/order-list/index.js
  10. 2
      pages/storage/pound-list/index.js
  11. 16
      utils/util.js
  12. 2
      xtends/client/factory-list/index.js
  13. 2
      xtends/client/order-list/index.js

2
pages/agent/order-list/index.js

@ -26,7 +26,7 @@ Scene({
orderList: [],
form: {
pageNum: 1,
pageSize: 10
pageSize: 15
},
title: '全部',
lastTime: null

2
pages/agent/select-list/index.js

@ -14,7 +14,7 @@ Scene({
orderList: [],
form: {
pageNum: 1,
pageSize: 10
pageSize: 15
},
itemId: null
},

2
pages/message/index/index.js

@ -20,7 +20,7 @@ Component({
finished: false,
top: 0,
orderList: [],
form: { productType: 'ZTB_FACTORY', pageNum: 1, pageSize: 10 }
form: { productType: 'ZTB_FACTORY', pageNum: 1, pageSize: 15 }
},
lifetimes: {
attached: function () {

2
pages/process/agent-list/index.js

@ -21,7 +21,7 @@ Scene({
orderList: [],
form: {
pageNum: 1,
pageSize: 10
pageSize: 15
},
lastTime: null
},

2
pages/process/check-list/index.js

@ -18,7 +18,7 @@ Scene({
form: {
funcType: 0,
pageNum: 1,
pageSize: 10
pageSize: 15
},
title: '全部',
lastTime: null

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

@ -31,7 +31,7 @@ Scene({
form: {
funcType: 0,
pageNum: 1,
pageSize: 10
pageSize: 15
},
title: '全部',
lastTime: null

2
pages/process/outside-list/index.js

@ -31,7 +31,7 @@ Scene({
form: {
orderStatus: '',
pageNum: 1,
pageSize: 10
pageSize: 15
},
title: '厂外收货订单',
lastTime: null

2
pages/process/payment-list/index.js

@ -18,7 +18,7 @@ Scene({
funcType: 4,
isSameCustomer: 0,
pageNum: 1,
pageSize: 10
pageSize: 15
},
lastTime: null
},

2
pages/storage/order-list/index.js

@ -26,7 +26,7 @@ Scene({
orderList: [],
form: {
pageNum: 1,
pageSize: 10
pageSize: 15
},
title: '全部',
lastTime: null

2
pages/storage/pound-list/index.js

@ -19,7 +19,7 @@ Scene({
form: {
// status: 0,
pageNum: 1,
pageSize: 10
pageSize: 15
},
lastTime: null
},

16
utils/util.js

@ -204,6 +204,19 @@ function substring(string, length){
}
return string
}
/*函数节流*/
function throttle(fn, interval) {
var enterTime = 0;//触发的时间
var gapTime = interval || 300 ;//间隔时间,如果interval不传,则默认300ms
return function() {
var context = this;
var backTime = new Date();//第一次函数return即触发的时间
if (backTime - enterTime > gapTime) {
fn.call(context,arguments);
enterTime = backTime;//赋值给第一次触发的时间,这样就保存了第二次触发的时间
}
};
}
module.exports = {
isEmpty: isEmpty,
@ -221,5 +234,6 @@ module.exports = {
combination: combination,
navigateTo: navigateTo,
navigateTarget: navigateTarget,
substring: substring
substring: substring,
throttle: throttle
}

2
xtends/client/factory-list/index.js

@ -16,7 +16,7 @@ Page({
form: {
funcType: 0,
pageNum: 1,
pageSize: 10
pageSize: 15
}
},
/**

2
xtends/client/order-list/index.js

@ -25,7 +25,7 @@ Page({
form: {
status: '',
pageNum: 1,
pageSize: 10
pageSize: 15
},
lastTime: null
},

Loading…
Cancel
Save