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

93 lines
1.7 KiB

2 years ago
2 years ago
2 years ago
2 years ago
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="https://ceres.zkthink.com/static/loading/loading.gif" />
  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. },
  31. computed: {
  32. ...mapGetters(["loadingFlag", "loadingInfo"])
  33. }
  34. }
  35. </script>
  36. <style lang="scss" scoped>
  37. .loading-content {
  38. position: fixed;
  39. top: 0;
  40. left: 0;
  41. width: 100vw;
  42. height: 100vh;
  43. z-index: 9999;
  44. //pointer-events: none;
  45. .mask {
  46. //background-color: rgba(75, 53, 53, 0.52);
  47. }
  48. .full-mask {
  49. position: absolute;
  50. width: 100vw;
  51. height: 100vh;
  52. background-color: rgba(0, 0, 0, 0.52);
  53. z-index: 9998;
  54. pointer-events: none;
  55. }
  56. .loading-gif {
  57. z-index: 9999;
  58. position: relative;
  59. width: 100%;
  60. height: 100%;
  61. .flex {
  62. width: 200rpx;
  63. height: 200rpx;
  64. position: absolute;
  65. border-radius: 15rpx;
  66. top: 50%;
  67. left: 50%;
  68. transform: translate(-50%, -50%);
  69. display: flex;
  70. align-items: center;
  71. justify-content: center;
  72. flex-direction: column;
  73. image {
  74. width: 150rpx;
  75. height: 150rpx;
  76. }
  77. p {
  78. color: #fff;
  79. }
  80. }
  81. }
  82. }
  83. </style>