多租户商城-商户小程序端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

89 lines
1.7 KiB

2 years ago
  1. <template>
  2. <view class="loading-content" v-if="loadingFlag" @touchmove.stop.prevent="moveHandle"
  3. @click.stop.prevent="moveHandle">
  4. <!-- 遮罩 -->
  5. <view catchtouchmove="true" class="full-mask" v-if="false"/>
  6. <!-- loading -->
  7. <view class="loading-gif">
  8. <view class="flex mask">
  9. <image src="@/static/images/loading/loading.gif"></image>
  10. <!-- <p> {{ loadingInfo }} </p>-->
  11. </view>
  12. </view>
  13. </view>
  14. </template>
  15. <script>
  16. import {mapGetters} from 'vuex'
  17. export default {
  18. name: "GlobalLoading",
  19. methods: {
  20. moveHandle() {
  21. return;
  22. }
  23. },
  24. mounted() {
  25. console.log("+++++++++++++++++++__++++++++++++++++++++")
  26. console.log(this.loadingFlag, this.loadingInfo)
  27. },
  28. computed: {
  29. ...mapGetters(["loadingFlag", "loadingInfo"])
  30. }
  31. }
  32. </script>
  33. <style lang="scss" scoped>
  34. .loading-content {
  35. position: fixed;
  36. top: 0;
  37. left: 0;
  38. width: 100vw;
  39. height: 100vh;
  40. z-index: 9999;
  41. //pointer-events: none;
  42. .mask {
  43. //background-color: rgba(75, 53, 53, 0.52);
  44. }
  45. .full-mask {
  46. position: absolute;
  47. width: 100vw;
  48. height: 100vh;
  49. background-color: rgba(0, 0, 0, 0.52);
  50. z-index: 9998;
  51. pointer-events: none;
  52. }
  53. .loading-gif {
  54. z-index: 9999;
  55. position: relative;
  56. width: 100%;
  57. height: 100%;
  58. .flex {
  59. width: 200rpx;
  60. height: 200rpx;
  61. position: absolute;
  62. border-radius: 15rpx;
  63. top: 50%;
  64. left: 50%;
  65. transform: translate(-50%, -50%);
  66. display: flex;
  67. align-items: center;
  68. justify-content: center;
  69. flex-direction: column;
  70. image {
  71. width: 150rpx;
  72. height: 150rpx;
  73. }
  74. p {
  75. color: #fff;
  76. }
  77. }
  78. }
  79. }
  80. </style>