From 5c5094f802f9bd238f37e276717da1da0f72ed20 Mon Sep 17 00:00:00 2001
From: zhangqun <179111901@qq.com>
Date: Fri, 13 Oct 2023 16:01:09 +0800
Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/airport/airport-runData/form.vue | 8 ++++++--
pages/home/index.vue | 5 +++--
util/request.js | 12 +++++++-----
3 files changed, 16 insertions(+), 9 deletions(-)
diff --git a/pages/airport/airport-runData/form.vue b/pages/airport/airport-runData/form.vue
index a0c2194..60860a4 100644
--- a/pages/airport/airport-runData/form.vue
+++ b/pages/airport/airport-runData/form.vue
@@ -599,7 +599,9 @@
})
this.$request(getApp().globalData.baseUrl + '/api/biz/airportRunData/saveOrUpdate', this.form,
'POST').then(res => {
- uni.hideLoading();
+ setTimeout(() => {
+ uni.hideLoading();
+ }, 2000);
if (res.code == 200) {
uni.showToast({
title: '报送提交成功',
@@ -618,7 +620,9 @@
})
}
}).catch(() => {
- uni.hideLoading();
+ setTimeout(() => {
+ uni.hideLoading();
+ }, 2000);
})
},
}
diff --git a/pages/home/index.vue b/pages/home/index.vue
index 74a6f54..be81cbd 100644
--- a/pages/home/index.vue
+++ b/pages/home/index.vue
@@ -8,7 +8,7 @@
{{routersData.meta.title}}
-
+
@@ -37,7 +37,8 @@
return {
routersData: [],
showIndex: 0,
- mobile: getApp().globalData.mobile
+ mobile: getApp().globalData.mobile,
+ filterRoute: ['高速收费站'],//过滤菜单
}
},
onLoad(options) {
diff --git a/util/request.js b/util/request.js
index b6b43c3..bee4883 100644
--- a/util/request.js
+++ b/util/request.js
@@ -25,11 +25,13 @@ const request = (url, data, method = 'GET') => {
})
} else {
resolve(res.data)
- uni.showToast({
- title: res.data.msg,
- icon: "none",
- duration: 2000
- })
+ setTimeout(() => {
+ uni.showToast({
+ title: res.data.msg,
+ icon: "none",
+ duration: 2000
+ })
+ }, 1000)
}
} else {
reject(res)