<template>
  <view v-show="loadingShow">
    <view class="request-loading-view">
      <!-- <view class="loading-view"><view class="loading"></view></view> -->
	  <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/loading_all.gif"></image>
    </view>
  </view>
</template>
<script>
export default {
  data() {
    return {};
  },
  computed: {
    //计算属性判断vuex中的显示状态
    loadingShow() {
      return this.$store.state.requestLoading;
    },
  },
};
</script>

<style lang="scss" scoped>
.request-loading-view {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  // background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  // padding-top: 430rpx;
  image {
	width: 110rpx;
	height: 110rpx;
  }
}
</style>
