浏览代码

loading 问题处理

yangc 7 年之前
父节点
当前提交
fb3044fe75
共有 2 个文件被更改,包括 7 次插入4 次删除
  1. 2 2
      assets/scss/mobileCommon.scss
  2. 5 2
      components/common/loading/Loading.vue

+ 2 - 2
assets/scss/mobileCommon.scss

@@ -327,9 +327,9 @@ html {
 //}
 //}
 
 
 /*loading优先级*/
 /*loading优先级*/
-.loading {
+/*.loading {
   z-index: 100000 !important;
   z-index: 100000 !important;
-}
+}*/
 
 
 .mobile-content {
 .mobile-content {
   padding-top: .88rem !important;
   padding-top: .88rem !important;

+ 5 - 2
components/common/loading/Loading.vue

@@ -1,5 +1,5 @@
 <template lang="html">
 <template lang="html">
-  <div class="loading" v-show="loading" id="loading">
+  <div class="loading" :class="{'mobile': isMobile}" v-show="loading" id="loading">
     <!--<img src="/images/all/loading.gif" alt="">-->
     <!--<img src="/images/all/loading.gif" alt="">-->
     <div class="wrap">
     <div class="wrap">
       <div class="outer"></div>
       <div class="outer"></div>
@@ -21,7 +21,7 @@
     }
     }
   }
   }
 </script>
 </script>
-<style scoped>
+<style scoped lang="scss">
   @keyframes spin {
   @keyframes spin {
     0%   { transform: rotate(360deg); }
     0%   { transform: rotate(360deg); }
     100% { transform: rotate(0deg); }
     100% { transform: rotate(0deg); }
@@ -39,6 +39,9 @@
     height: 100%;
     height: 100%;
     z-index: 1000;
     z-index: 1000;
     text-align: center;
     text-align: center;
+    &.mobile {
+      z-index: 100000 !important;
+     }
   }
   }
 
 
   .loading img {
   .loading img {