From f5fb958086e05102b67ca904a67258dd37f4c811 Mon Sep 17 00:00:00 2001 From: chenxuhui Date: Thu, 13 Dec 2018 13:22:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=87=BA=E5=BA=93=E5=8D=95=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E5=B7=B2=E7=A1=AE=E8=AE=A4=E9=87=8D=E5=A4=8D=E5=8A=A0=E8=BD=BD?= =?UTF-8?q?=E7=9A=84bug=EF=BC=8C=E4=BC=A0=E9=94=99pageindex?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/saleOutStore/saleOutStore.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/pages/saleOutStore/saleOutStore.js b/pages/saleOutStore/saleOutStore.js index a8b7f22..3c66ae3 100644 --- a/pages/saleOutStore/saleOutStore.js +++ b/pages/saleOutStore/saleOutStore.js @@ -8,7 +8,7 @@ var CheckedPageIndex = 0 var getListPath = '/MainSystem/B3MiniProgramRpc/XuRpcs/Driver/SaleOutStoreRpc/GetList' // 未审核订单列表 -function getUnCheckOrderList(that, UnCheckPageIndex, UnCheckPageSize, successaction) { +function getUnCheckOrderList(that, UnCheckPageIndex, successaction) { let getArr = []; let method = getListPath; let params = [false, app.globalData.Phone, UnCheckPageIndex, PageSize]; @@ -42,10 +42,10 @@ function getUnCheckOrderList(that, UnCheckPageIndex, UnCheckPageSize, successact } // 已审核订单列表 -function getCheckedOrderList(that, CheckedPageIndex, CheckedPageSize) { +function getCheckedOrderList(that, CheckedPageIndex) { let getArr = []; let method = getListPath; - let params = [true, app.globalData.Phone, UnCheckPageIndex, PageSize]; + let params = [true, app.globalData.Phone, CheckedPageIndex, PageSize]; network.transfer_request(method, params, function (res) { var array = res.result; if (array.length <= 0) { @@ -69,6 +69,7 @@ function getCheckedOrderList(that, CheckedPageIndex, CheckedPageSize) { getArr.push(dmo); } let arrLast = that.data.checkedDataArr.concat(getArr); + console.log(arrLast); that.setData({ checkedDataArr: arrLast, }) @@ -120,8 +121,8 @@ Page({ UnCheckPageIndex = 0; CheckedPageIndex = 0; - getUnCheckOrderList(that, UnCheckPageIndex, PageSize, function (res) { - getCheckedOrderList(that, CheckedPageIndex, PageSize); + getUnCheckOrderList(that, UnCheckPageIndex, function (res) { + getCheckedOrderList(that, CheckedPageIndex); }); @@ -131,7 +132,7 @@ Page({ unCheckedScrollLower: function (event) { var that = this; UnCheckPageIndex = UnCheckPageIndex + 1; - getUnCheckOrderList(that, UnCheckPageIndex, PageSize, function (res) { + getUnCheckOrderList(that, UnCheckPageIndex, function (res) { }); }, @@ -140,7 +141,7 @@ Page({ checkedScrollLower: function (event) { var that = this; CheckedPageIndex = CheckedPageIndex + 1; - getCheckedOrderList(that, CheckedPageIndex, PageSize); + getCheckedOrderList(that, CheckedPageIndex); }, // 进入订单详情