多租户商城-商户小程序端
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.

94 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: "GloableLoading",
  19. methods: {
  20. moveHandle() {
  21. return;
  22. }
  23. },
  24. data(){
  25. return {
  26. flag:true
  27. }
  28. },
  29. mounted() {
  30. console.log("+++++++++++++++++++__++++++++++++++++++++")
  31. console.log(this.loadingFlag, this.loadingInfo)
  32. },
  33. computed: {
  34. ...mapGetters(["loadingFlag", "loadingInfo"])
  35. }
  36. }
  37. </script>
  38. <style lang="scss" scoped>
  39. .loading-content {
  40. position: fixed;
  41. top: 0;
  42. left: 0;
  43. width: 100vw;
  44. height: 100vh;
  45. z-index: 9999;
  46. //pointer-events: none;
  47. .mask {
  48. //background-color: rgba(75, 53, 53, 0.52);
  49. }
  50. .full-mask {
  51. position: absolute;
  52. width: 100vw;
  53. height: 100vh;
  54. background-color: rgba(0, 0, 0, 0.52);
  55. z-index: 9998;
  56. pointer-events: none;
  57. }
  58. .loading-gif {
  59. z-index: 9999;
  60. position: relative;
  61. width: 100%;
  62. height: 100%;
  63. .flex {
  64. width: 200rpx;
  65. height: 200rpx;
  66. position: absolute;
  67. border-radius: 15rpx;
  68. top: 50%;
  69. left: 50%;
  70. transform: translate(-50%, -50%);
  71. display: flex;
  72. align-items: center;
  73. justify-content: center;
  74. flex-direction: column;
  75. image {
  76. width: 150rpx;
  77. height: 150rpx;
  78. }
  79. p {
  80. color: #fff;
  81. }
  82. }
  83. }
  84. }
  85. </style>