Kaynağa Gözat

修改首页顺序和去掉全景模块一级页面

aamin 1 yıl önce
ebeveyn
işleme
5718d3dbe7

+ 1 - 0
public/js/flexible.js

@@ -14,6 +14,7 @@
 
   // set 1rem = viewWidth / 10
   function setRemUnit() {
+    // 将视口划分为24份
     var rem = docEl.clientWidth / 24;
     docEl.style.fontSize = rem + "px";
   }

Dosya farkı çok büyük olduğundan ihmal edildi
+ 146 - 144
src/assets/data/Model/index.ts


+ 3 - 2
src/components/Tabbar.vue

@@ -6,10 +6,11 @@ const route = useRoute();
 
 const homeChange = () => {
   curRoute.value = 3;
-  const length = store.backgroundImages.length;
+  const length = store.backgroundImages.length - 1;
+  let random = parseInt(Math.random() * (length - 1) + 1);
   if (length > 0) {
     store.setCurrentIndex(
-      store.currentIndex === length - 1 ? 0 : store.currentIndex + 1
+      random
     );
   }
 };

+ 2 - 5
src/view/bldgPanorama/index.vue

@@ -4,7 +4,7 @@ import { countyMapData } from "@/assets/data/Model";
 import { usePanorama } from "@/store/Panorama/index";
 import { copyFileSync } from "fs";
 
-const currentIndex = ref(0);
+const currentIndex = ref(3);
 const router = useRouter();
 const store = usePanorama();
 const goDetail = (param: string | number) => {
@@ -31,9 +31,6 @@ watch(currentIndex, (newVale: any) => {
 });
 
 onMounted(() => {
-  // if(store.currentIndex != 0) {
-  //   currentIndex.value = store.currentIndex
-  // }
 });
 </script>
 
@@ -70,7 +67,7 @@ onMounted(() => {
         </div>
       </div>
     </div>
-    <div class="option-box">
+    <div class="option-box" v-show="false">
       <div
         v-for="(item, index) in countyMapData"
         :key="index"

+ 0 - 7
src/view/home/index.vue

@@ -183,13 +183,6 @@ onMounted(() => {
         />
       </div>
 
-      <!-- <transition name="fade">
-        <img
-          v-if="index === store.currentIndex"
-          class="down-box"
-          :src="getAssetURL(item.downCoverageURL)"
-        />
-      </transition> -->
     </div>
   </div>
   <Tabbar />