shaogen1995 1 year ago
parent
commit
841952d3ae
1 changed files with 18 additions and 5 deletions
  1. 18 5
      src/views/MoreContent.vue

+ 18 - 5
src/views/MoreContent.vue

@@ -1,5 +1,6 @@
 <template>
   <div
+    v-if="isReady"
     :class="`more-content`"
   >
     <div
@@ -266,7 +267,9 @@
           alt=""
           draggable="false"
         >
-        <div class="wei-ye-group">
+        <div
+          class="wei-ye-group"
+        >
           <img
             src="@/assets/images/wu-jing-cang.png"
             alt=""
@@ -686,9 +689,16 @@ watch(goingToAnchorIdx, (v) => {
   }
 })
 
-// const isReady = ref(false)
+const isReady = ref(true)
+
+
 
 onBeforeMount(() => {
+  if (window.location.href.includes('anchorIdx=0')) {
+    // 第一个页面跳转 要白屏渐进  其他页面不用
+    isReady.value = false
+  }
+
   window.addEventListener("resize", () => {
     window.setTimeout(() => {
       // 根元素
@@ -699,9 +709,12 @@ onBeforeMount(() => {
       }
     }, 100)
   })
-  // setTimeout(() => {
-  //   isReady.value = true
-  // }, 500)
+  if (!isReady.value) {
+    setTimeout(() => {
+      isReady.value = true
+    }, 300)
+  }
+
 })
 
 onMounted(() => {