| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- <template>
- <view class="loading-content" v-if="loadingFlag" @touchmove.stop.prevent="moveHandle"
- @click.stop.prevent="moveHandle">
- <!-- 遮罩 -->
- <view catchtouchmove="true" class="full-mask" v-if="false"/>
- <!-- loading -->
- <view class="loading-gif">
- <view class="flex mask">
- <image src="@/static/images/loading/loading.gif"></image>
- <!-- <p> {{ loadingInfo }} </p>-->
- </view>
- </view>
- </view>
- </template>
- <script>
- import {mapGetters} from 'vuex'
- export default {
- name: "GloableLoading",
- methods: {
- moveHandle() {
- return;
- }
- },
- data(){
- return {
- flag:true
- }
- },
- mounted() {
- console.log("+++++++++++++++++++__++++++++++++++++++++")
- console.log(this.loadingFlag, this.loadingInfo)
- },
- computed: {
- ...mapGetters(["loadingFlag", "loadingInfo"])
- }
- }
- </script>
- <style lang="scss" scoped>
- .loading-content {
- position: fixed;
- top: 0;
- left: 0;
- width: 100vw;
- height: 100vh;
- z-index: 9999;
- //pointer-events: none;
- .mask {
- //background-color: rgba(75, 53, 53, 0.52);
- }
- .full-mask {
- position: absolute;
- width: 100vw;
- height: 100vh;
- background-color: rgba(0, 0, 0, 0.52);
- z-index: 9998;
- pointer-events: none;
- }
- .loading-gif {
- z-index: 9999;
- position: relative;
- width: 100%;
- height: 100%;
- .flex {
- width: 200rpx;
- height: 200rpx;
- position: absolute;
- border-radius: 15rpx;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
- display: flex;
- align-items: center;
- justify-content: center;
- flex-direction: column;
- image {
- width: 150rpx;
- height: 150rpx;
- }
- p {
- color: #fff;
- }
- }
- }
- }
- </style>
|