123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <template>
- <view v-show="loadingShow">
- <view class="request-loading-view">
- <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/loading_all.gif"></image>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- loadingShow: false,
- };
- },
- watch: {
- "$store.state.requestLoading": {
- handler(newValue) {
- this.loadingShow = newValue;
- },
- deep: true,
- immediate: true,
- },
- },
- };
- </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>
|