From 3256f035cf6c60db984ffc4f42a4784508f59bb6 Mon Sep 17 00:00:00 2001 From: Wik-T <812952667@qq.com> Date: Tue, 30 May 2023 16:28:49 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BC=98=E5=8C=96=E5=88=86=E8=B4=A6=E6=8E=A5?= =?UTF-8?q?=E6=94=B6=E6=96=B9=E6=98=BE=E7=A4=BA=202.=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E5=88=86=E9=A1=B5=E9=9D=A2=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 50 +++++++---- pages/index/bindScan/bindScan.vue | 11 +-- .../ledgerReceiverList/ledgerReceiverList.vue | 82 +++++++++++++++++-- .../merchant-management.vue | 4 +- .../open-Divide_accounts.vue | 6 +- pages/index/scanList/scanList.vue | 28 +++---- pages/index/serviceBuild/serviceBuild.vue | 6 +- unpackage/dist/build/h5/index.html | 2 +- 8 files changed, 132 insertions(+), 57 deletions(-) diff --git a/pages.json b/pages.json index b64deb2..9a9c281 100644 --- a/pages.json +++ b/pages.json @@ -28,7 +28,8 @@ "style": { "navigationBarTextStyle": "white", "navigationBarTitleText": "设备申请列表", - "enablePullDownRefresh": false, + "enablePullDownRefresh": false, + "onReachBottomDistance": 50, "app-plus": { "titleNView": false, //禁用原生导航栏 "softinputNavBar": "none" @@ -40,7 +41,8 @@ "style": { "navigationBarTextStyle": "white", "navigationBarTitleText": "订单详情", - "enablePullDownRefresh": false, + "enablePullDownRefresh": false, + "onReachBottomDistance": 50, "app-plus": { "titleNView": false, //禁用原生导航栏 "softinputNavBar": "none" @@ -52,7 +54,8 @@ "style": { "navigationBarTextStyle": "white", "navigationBarTitleText": "我的设备", - "enablePullDownRefresh": false, + "enablePullDownRefresh": false, + "onReachBottomDistance": 50, "app-plus": { "titleNView": false, //禁用原生导航栏 "softinputNavBar": "none" @@ -283,7 +286,8 @@ "style": { "navigationBarTitleText": "设备订单", "navigationBarTextStyle": "white", - "enablePullDownRefresh": false, + "enablePullDownRefresh": false, + "onReachBottomDistance": 50, "app-plus": { "titleNView": false, //禁用原生导航栏 "softinputNavBar": "none" @@ -295,7 +299,8 @@ "style": { "navigationBarTitleText": "选择支行", "navigationBarTextStyle": "white", - "enablePullDownRefresh": false, + "enablePullDownRefresh": false, + "onReachBottomDistance": 50, "app-plus": { "titleNView": false, //禁用原生导航栏 "softinputNavBar": "none" @@ -307,7 +312,8 @@ "style": { "navigationBarTitleText": "开通分账", "navigationBarTextStyle": "white", - "enablePullDownRefresh": false, + "enablePullDownRefresh": false, + "onReachBottomDistance": 50, "app-plus": { "titleNView": false, //禁用原生导航栏 "softinputNavBar": "none" @@ -319,7 +325,8 @@ "style": { "navigationBarTitleText": "绑定接收方", "navigationBarTextStyle": "white", - "enablePullDownRefresh": false, + "enablePullDownRefresh": false, + "onReachBottomDistance": 50, "app-plus": { "titleNView": false, //禁用原生导航栏 "softinputNavBar": "none" @@ -331,7 +338,8 @@ "style": { "navigationBarTitleText": "绑定分账接收方", "navigationBarTextStyle": "white", - "enablePullDownRefresh": false, + "enablePullDownRefresh": false, + "onReachBottomDistance": 50, "app-plus": { "titleNView": false, //禁用原生导航栏 "softinputNavBar": "none" @@ -343,7 +351,8 @@ "style": { "navigationBarTitleText": "接收方列表", "navigationBarTextStyle": "white", - "enablePullDownRefresh": false, + "enablePullDownRefresh": false, + "onReachBottomDistance": 50, "app-plus": { "titleNView": false, //禁用原生导航栏 "softinputNavBar": "none" @@ -355,7 +364,8 @@ "style": { "navigationBarTitleText": "选择地址", "navigationBarTextStyle": "white", - "enablePullDownRefresh": false, + "enablePullDownRefresh": false, + "onReachBottomDistance": 50, "app-plus": { "titleNView": false, //禁用原生导航栏 "softinputNavBar": "none" @@ -367,7 +377,8 @@ "style": { "navigationBarTitleText": "修改结算信息", "navigationBarTextStyle": "white", - "enablePullDownRefresh": false, + "enablePullDownRefresh": false, + "onReachBottomDistance": 50, "app-plus": { "titleNView": false, //禁用原生导航栏 "softinputNavBar": "none" @@ -379,7 +390,8 @@ "style": { "navigationBarTitleText": "结算信息", "navigationBarTextStyle": "white", - "enablePullDownRefresh": false, + "enablePullDownRefresh": false, + "onReachBottomDistance": 50, "app-plus": { "titleNView": false, //禁用原生导航栏 "softinputNavBar": "none" @@ -391,7 +403,8 @@ "style": { "navigationBarTitleText": "结算详情", "navigationBarTextStyle": "white", - "enablePullDownRefresh": false, + "enablePullDownRefresh": false, + "onReachBottomDistance": 50, "app-plus": { "titleNView": false, //禁用原生导航栏 "softinputNavBar": "none" @@ -403,7 +416,8 @@ "style": { "navigationBarTitleText": "分配桌码", "navigationBarTextStyle": "white", - "enablePullDownRefresh": false, + "enablePullDownRefresh": false, + "onReachBottomDistance": 50, "app-plus": { "titleNView": false, //禁用原生导航栏 "softinputNavBar": "none" @@ -415,7 +429,8 @@ "style": { "navigationBarTitleText": "权益活动", "navigationBarTextStyle": "white", - "enablePullDownRefresh": false, + "enablePullDownRefresh": false, + "onReachBottomDistance": 50, "app-plus": { "titleNView": false, //禁用原生导航栏 "softinputNavBar": "none" @@ -427,7 +442,8 @@ "style": { "navigationBarTitleText": "活动详情", "navigationBarTextStyle": "white", - "enablePullDownRefresh": false, + "enablePullDownRefresh": false, + "onReachBottomDistance": 50, "app-plus": { "titleNView": false, //禁用原生导航栏 "softinputNavBar": "none" @@ -442,6 +458,7 @@ "navigationBarTitleText": "活动审核", "navigationBarTextStyle": "white", "enablePullDownRefresh": false, + "onReachBottomDistance": 50, "app-plus": { "titleNView": false, //禁用原生导航栏 "softinputNavBar": "none" @@ -456,6 +473,7 @@ "navigationBarTitleText": "订单详情", "navigationBarTextStyle": "white", "enablePullDownRefresh": false, + "onReachBottomDistance": 50, "app-plus": { "titleNView": false, //禁用原生导航栏 "softinputNavBar": "none" diff --git a/pages/index/bindScan/bindScan.vue b/pages/index/bindScan/bindScan.vue index 11475d0..424be23 100644 --- a/pages/index/bindScan/bindScan.vue +++ b/pages/index/bindScan/bindScan.vue @@ -69,7 +69,7 @@ toSearch() { this.pageNum = 1; this.pageSize = 10; - this.isNoMoreData = false; + this.isLoadMore = false; this.serviceList = []; if (this.typeId == 2) { this.getStoreQrCodeList(); @@ -82,13 +82,8 @@ uni.showLoading({ title: '加载中...' }) - if (this.isNoMoreData) { - uni.hideLoading() - return false; - } - let pagenum = this.pageNum; let params = { - pageNum: pagenum, + pageNum: this.pageNum, pageSize: this.pagesize, serialNumber: this.scanNo, storeId: this.storeId @@ -113,7 +108,7 @@ uni.showLoading({ title: '加载中...' }) - if (this.isNoMoreData) { + if (this.isLoadMore) { uni.hideLoading() return false; } diff --git a/pages/index/ledgerReceiverList/ledgerReceiverList.vue b/pages/index/ledgerReceiverList/ledgerReceiverList.vue index 7dcdb40..d3c38ea 100644 --- a/pages/index/ledgerReceiverList/ledgerReceiverList.vue +++ b/pages/index/ledgerReceiverList/ledgerReceiverList.vue @@ -1,9 +1,14 @@ @@ -241,7 +241,7 @@ .namecont { color: #666666; - width: 28%; + width: 45%; } } diff --git a/pages/index/scanList/scanList.vue b/pages/index/scanList/scanList.vue index 9c20407..66bedeb 100644 --- a/pages/index/scanList/scanList.vue +++ b/pages/index/scanList/scanList.vue @@ -57,7 +57,7 @@ toSearch() { this.pageNum = 1; this.pageSize = 10; - this.isNoMoreData = false; + this.isLoadMore = false; this.serviceList = []; this.getStoreQrCodeList(); }, @@ -66,29 +66,23 @@ uni.showLoading({ title: '加载中...' }) - if (this.isNoMoreData) { - uni.hideLoading() - return false; - } - let pagenum = this.pageNum; let params = { - pageNum: pagenum, + pageNum: this.pageNum, pageSize: this.pagesize, serialNumber: this.scanNo, storeId: this.userInfo.store.id } getStoreQrCodeList(params).then(res => { uni.hideLoading(); - if (res.return_code == '000000' && res.return_data.list) { - this.isLoadMore = res.return_data.list.length == this.pageSize ? false : true; - this.serviceList = this.serviceList.concat(res.return_data.list); - if (res.return_data.total == (this.pageNum * this.pageSize)) { - this.isLoadMore = true; - } - this.pageNum = res.return_data.list.length == this.pageSize ? ++pagenum : pagenum; - } else { - this.serviceList = []; - this.isLoadMore = true + if (res.return_code == '000000' && res.return_data.list) { + this.receiverList = this.receiverList.concat(res.return_data.list); + if (res.return_data.pages == this.pageNum) { + this.isLoadMore = true; + } else { + this.isLoadMore = false + } + } else { + this.isLoadMore = true } }); }, diff --git a/pages/index/serviceBuild/serviceBuild.vue b/pages/index/serviceBuild/serviceBuild.vue index bd15965..6884ae3 100644 --- a/pages/index/serviceBuild/serviceBuild.vue +++ b/pages/index/serviceBuild/serviceBuild.vue @@ -73,7 +73,7 @@ toSearch() { this.pageNum = 1; this.pageSize = 10; - this.isNoMoreData = false; + this.isLoadMore = false; this.serviceList = []; if (this.typeId == 2) { this.getStoreDeviceList(); @@ -86,7 +86,7 @@ uni.showLoading({ title: '加载中...' }) - if (this.isNoMoreData) { + if (this.isLoadMore) { uni.hideLoading() return false; } @@ -117,7 +117,7 @@ uni.showLoading({ title: '加载中...' }) - if (this.isNoMoreData) { + if (this.isLoadMore) { uni.hideLoading() return false; } diff --git a/unpackage/dist/build/h5/index.html b/unpackage/dist/build/h5/index.html index 8f60ac0..0dd89c3 100644 --- a/unpackage/dist/build/h5/index.html +++ b/unpackage/dist/build/h5/index.html @@ -1,2 +1,2 @@ 惠支付
\ No newline at end of file + document.write('')
\ No newline at end of file