diff --git a/pages/agent/order-list/index.js b/pages/agent/order-list/index.js index aef17bb..b9494f0 100644 --- a/pages/agent/order-list/index.js +++ b/pages/agent/order-list/index.js @@ -26,7 +26,7 @@ Scene({ orderList: [], form: { pageNum: 1, - pageSize: 10 + pageSize: 15 }, title: '全部', lastTime: null diff --git a/pages/agent/select-list/index.js b/pages/agent/select-list/index.js index 25e9e44..083c4d3 100644 --- a/pages/agent/select-list/index.js +++ b/pages/agent/select-list/index.js @@ -14,7 +14,7 @@ Scene({ orderList: [], form: { pageNum: 1, - pageSize: 10 + pageSize: 15 }, itemId: null }, diff --git a/pages/message/index/index.js b/pages/message/index/index.js index 8fc2f6e..cd745c5 100644 --- a/pages/message/index/index.js +++ b/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 () { diff --git a/pages/process/agent-list/index.js b/pages/process/agent-list/index.js index e0b7344..792f1ea 100644 --- a/pages/process/agent-list/index.js +++ b/pages/process/agent-list/index.js @@ -21,7 +21,7 @@ Scene({ orderList: [], form: { pageNum: 1, - pageSize: 10 + pageSize: 15 }, lastTime: null }, diff --git a/pages/process/check-list/index.js b/pages/process/check-list/index.js index 14827fa..b58bbd9 100644 --- a/pages/process/check-list/index.js +++ b/pages/process/check-list/index.js @@ -18,7 +18,7 @@ Scene({ form: { funcType: 0, pageNum: 1, - pageSize: 10 + pageSize: 15 }, title: '全部', lastTime: null diff --git a/pages/process/order-list/index.js b/pages/process/order-list/index.js index c38b65d..0c6fa5b 100644 --- a/pages/process/order-list/index.js +++ b/pages/process/order-list/index.js @@ -31,7 +31,7 @@ Scene({ form: { funcType: 0, pageNum: 1, - pageSize: 10 + pageSize: 15 }, title: '全部', lastTime: null diff --git a/pages/process/outside-list/index.js b/pages/process/outside-list/index.js index 08580eb..a5c28b0 100644 --- a/pages/process/outside-list/index.js +++ b/pages/process/outside-list/index.js @@ -31,7 +31,7 @@ Scene({ form: { orderStatus: '', pageNum: 1, - pageSize: 10 + pageSize: 15 }, title: '厂外收货订单', lastTime: null diff --git a/pages/process/payment-list/index.js b/pages/process/payment-list/index.js index 004acc6..1588957 100644 --- a/pages/process/payment-list/index.js +++ b/pages/process/payment-list/index.js @@ -18,7 +18,7 @@ Scene({ funcType: 4, isSameCustomer: 0, pageNum: 1, - pageSize: 10 + pageSize: 15 }, lastTime: null }, diff --git a/pages/storage/order-list/index.js b/pages/storage/order-list/index.js index 57200e9..32b1671 100644 --- a/pages/storage/order-list/index.js +++ b/pages/storage/order-list/index.js @@ -26,7 +26,7 @@ Scene({ orderList: [], form: { pageNum: 1, - pageSize: 10 + pageSize: 15 }, title: '全部', lastTime: null diff --git a/pages/storage/pound-list/index.js b/pages/storage/pound-list/index.js index fcb8b63..bef4b54 100644 --- a/pages/storage/pound-list/index.js +++ b/pages/storage/pound-list/index.js @@ -19,7 +19,7 @@ Scene({ form: { // status: 0, pageNum: 1, - pageSize: 10 + pageSize: 15 }, lastTime: null }, diff --git a/utils/util.js b/utils/util.js index 1d360a8..d90bbc4 100644 --- a/utils/util.js +++ b/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 } \ No newline at end of file diff --git a/xtends/client/factory-list/index.js b/xtends/client/factory-list/index.js index 87f5937..6cd2839 100644 --- a/xtends/client/factory-list/index.js +++ b/xtends/client/factory-list/index.js @@ -16,7 +16,7 @@ Page({ form: { funcType: 0, pageNum: 1, - pageSize: 10 + pageSize: 15 } }, /** diff --git a/xtends/client/order-list/index.js b/xtends/client/order-list/index.js index 872b0ad..37cfa7d 100644 --- a/xtends/client/order-list/index.js +++ b/xtends/client/order-list/index.js @@ -25,7 +25,7 @@ Page({ form: { status: '', pageNum: 1, - pageSize: 10 + pageSize: 15 }, lastTime: null },