From e058f8a4f14aa5c7394a6bebf0785407f4e008db Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=98=AF=E5=B0=8F=E7=8E=8B=E5=91=80=5C24601?=
<819653817@qq.com>
Date: Tue, 6 May 2025 13:29:24 +0800
Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E6=AE=B5bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../modules/HotlineRates/HotlineRates.js | 19 ++++++++++++++++---
.../modules/HotlineRates/HotlineRates.json | 1 +
.../modules/HotlineRates/HotlineRates.wxml | 6 ++++--
3 files changed, 21 insertions(+), 5 deletions(-)
diff --git a/pages/statistics/modules/HotlineRates/HotlineRates.js b/pages/statistics/modules/HotlineRates/HotlineRates.js
index 8b858ab..820e55f 100644
--- a/pages/statistics/modules/HotlineRates/HotlineRates.js
+++ b/pages/statistics/modules/HotlineRates/HotlineRates.js
@@ -35,6 +35,8 @@ Component({
}
},
data: {
+ nodata: false,
+ loading:false,
orderBy:"",
sortList:[
{
@@ -200,7 +202,8 @@ Component({
this.getEventList(false)
}
},
- getEventList(deptFlag) {
+ async getEventList(deptFlag) {
+
console.log(this.data.day,this.data.day2,"这里的值");
let parm = {
orderBy: this.data.orderBy,
@@ -213,15 +216,25 @@ Component({
if(this.data.curVal == '1'){
parm.recountFlag=1
}
- event12345Rates(parm).then(res => {
+ this.setData({
+ loading:true
+ })
+ await event12345Rates(parm).then(res => {
console.log(res.data)
// res.data.list.forEach(item => {
// item.reportTime = this.formatTime(item.reportTime)
// })
wx.hideToast()
this.setData({
- list: res.data
+ list: res.data,
+ loading:false
})
+ if (!res.data) {
+ this.setData({
+ nodata:true
+ })
+ }
+
})
},
formatTime(date) {
diff --git a/pages/statistics/modules/HotlineRates/HotlineRates.json b/pages/statistics/modules/HotlineRates/HotlineRates.json
index 875a20d..3e504f5 100644
--- a/pages/statistics/modules/HotlineRates/HotlineRates.json
+++ b/pages/statistics/modules/HotlineRates/HotlineRates.json
@@ -1,6 +1,7 @@
{
"component": true,
"usingComponents": {
+ "van-loading": "@vant/weapp/loading/index",
"no-data": "../../../../components/noData/nodata"
}
}
\ No newline at end of file
diff --git a/pages/statistics/modules/HotlineRates/HotlineRates.wxml b/pages/statistics/modules/HotlineRates/HotlineRates.wxml
index bf538d4..f7bdbdc 100644
--- a/pages/statistics/modules/HotlineRates/HotlineRates.wxml
+++ b/pages/statistics/modules/HotlineRates/HotlineRates.wxml
@@ -86,6 +86,8 @@
{{showitem==99999?"收起":"展开"}}
-
-
+
+ 加载中...
+
+
\ No newline at end of file