You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
manghe/components/pageLoading.vue

33 lines
460 B

<template>
<view class="load" v-if="status">
{{$t(`正在加载中`)}}
</view>
</template>
<script>
export default{
data(){
return {
status:false
}
},
mounted() {
this.status = uni.getStorageSync('loadStatus')
uni.$once('loadClose',()=>{
this.status = false
})
}
}
</script>
<style lang="scss">
.load{
z-index: 99999;
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: #fff;
}
</style>