Commit 94a403e5ee856c7adc8d121a875e11322bec911a
1 parent
42d99196
小票码 加载提示
Showing
2 changed files
with
10 additions
and
1 deletions
src/components/parkRecord.vue
| @@ -164,8 +164,13 @@ export default { | @@ -164,8 +164,13 @@ export default { | ||
| 164 | } | 164 | } |
| 165 | }, | 165 | }, |
| 166 | mounted() { | 166 | mounted() { |
| 167 | + | ||
| 167 | }, | 168 | }, |
| 168 | created() { | 169 | created() { |
| 170 | + this.$Indicator.open({ | ||
| 171 | + text: '加载中...', | ||
| 172 | + spinnerType: 'fading-circle' | ||
| 173 | + }) | ||
| 169 | this.carNumber = this.$route.query.carNumber // 获取车牌号 | 174 | this.carNumber = this.$route.query.carNumber // 获取车牌号 |
| 170 | this.carColor = this.$route.query.carNumberColor // 获取颜色 0:蓝牌;1:黄牌;2:白牌;3:黑牌;4:绿色 | 175 | this.carColor = this.$route.query.carNumberColor // 获取颜色 0:蓝牌;1:黄牌;2:白牌;3:黑牌;4:绿色 |
| 171 | this.currentTabActive = this.$route.query.parkFlag ? this.$route.query.parkFlag : 0 | 176 | this.currentTabActive = this.$route.query.parkFlag ? this.$route.query.parkFlag : 0 |
| @@ -220,6 +225,9 @@ export default { | @@ -220,6 +225,9 @@ export default { | ||
| 220 | this.checkedAll() | 225 | this.checkedAll() |
| 221 | } | 226 | } |
| 222 | console.log(this.historyList) | 227 | console.log(this.historyList) |
| 228 | + | ||
| 229 | + this.$Indicator.close() | ||
| 230 | + | ||
| 223 | }) | 231 | }) |
| 224 | }, | 232 | }, |
| 225 | 233 |
src/main.js
| @@ -18,9 +18,10 @@ Vue.prototype.$utils = utils | @@ -18,9 +18,10 @@ Vue.prototype.$utils = utils | ||
| 18 | 18 | ||
| 19 | import 'mint-ui/lib/style.css' | 19 | import 'mint-ui/lib/style.css' |
| 20 | import { MessageBox } from 'mint-ui' | 20 | import { MessageBox } from 'mint-ui' |
| 21 | +import { Indicator } from 'mint-ui'; | ||
| 21 | // Vue.use(MessageBox) | 22 | // Vue.use(MessageBox) |
| 22 | Vue.prototype.$msgbox = MessageBox | 23 | Vue.prototype.$msgbox = MessageBox |
| 23 | - | 24 | +Vue.prototype.$Indicator = Indicator |
| 24 | 25 | ||
| 25 | import 'swiper/dist/css/swiper.min.css' // 轮播 | 26 | import 'swiper/dist/css/swiper.min.css' // 轮播 |
| 26 | import 'swiper/dist/js/swiper.min' | 27 | import 'swiper/dist/js/swiper.min' |