From 94a403e5ee856c7adc8d121a875e11322bec911a Mon Sep 17 00:00:00 2001 From: liuqimichale <123456lq> Date: Fri, 30 Apr 2021 13:16:34 +0800 Subject: [PATCH] 小票码 加载提示 --- src/components/parkRecord.vue | 8 ++++++++ src/main.js | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/components/parkRecord.vue b/src/components/parkRecord.vue index db2dd58..450a786 100644 --- a/src/components/parkRecord.vue +++ b/src/components/parkRecord.vue @@ -164,8 +164,13 @@ export default { } }, mounted() { + }, created() { + this.$Indicator.open({ + text: '加载中...', + spinnerType: 'fading-circle' + }) this.carNumber = this.$route.query.carNumber // 获取车牌号 this.carColor = this.$route.query.carNumberColor // 获取颜色 0:蓝牌;1:黄牌;2:白牌;3:黑牌;4:绿色 this.currentTabActive = this.$route.query.parkFlag ? this.$route.query.parkFlag : 0 @@ -220,6 +225,9 @@ export default { this.checkedAll() } console.log(this.historyList) + + this.$Indicator.close() + }) }, diff --git a/src/main.js b/src/main.js index d39c701..f18f24c 100644 --- a/src/main.js +++ b/src/main.js @@ -18,9 +18,10 @@ Vue.prototype.$utils = utils import 'mint-ui/lib/style.css' import { MessageBox } from 'mint-ui' +import { Indicator } from 'mint-ui'; // Vue.use(MessageBox) Vue.prototype.$msgbox = MessageBox - +Vue.prototype.$Indicator = Indicator import 'swiper/dist/css/swiper.min.css' // 轮播 import 'swiper/dist/js/swiper.min' -- libgit2 0.21.4