12345678910111213141516171819202122232425262728293031323334353637383940 |
- <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/all-loading.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;
- image {
- width: 270rpx;
- height: 282rpx;
- }
- }
- </style>
|