1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- <template>
- <view v-if="loadingFlag" class="loading-content" @touchmove.stop.prevent="moveHandle" @click.stop.prevent="moveHandle">
- <!-- 遮罩 -->
- <view v-if="false" catchtouchmove="true" class="full-mask" />
- <!-- loading -->
- <view class="loading-gif">
- <view class="flex mask">
- <image src="../../static/images/origin/loading.gif" />
- <!-- <p> {{ loadingInfo }} </p> -->
- </view>
- </view>
- </view>
- </template>
- <script>
- import { mapGetters } from 'vuex'
- export default {
- name: 'GloableLoading',
- data() {
- return {
- flag: true
- }
- },
- mounted() {
- },
- methods: {
- moveHandle() {
- }
- },
- 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>
|