jinx 2 月之前
父節點
當前提交
65f5807e28
共有 1 個文件被更改,包括 10 次插入6 次删除
  1. 10 6
      packages/qjkankan-view/src/components/UIGather/mobile/list.vue

+ 10 - 6
packages/qjkankan-view/src/components/UIGather/mobile/list.vue

@@ -20,6 +20,7 @@
                 loopspan: item.name.length > spanlength && currentScene.id == item.id,
               }"
             >
+              {{ item.icon }}
               <i class="iconfont" :class="item.type == '4dkk' ? 'icon-editor_3d' : 'icon-editor_panoramic'"></i>
               <div class="marquee">
                 <marquee-text :repeat="1" :duration="Math.ceil(item.name.length / 10) * 5" :key="item.id" v-if="item.name.length > spanlength && currentScene.id == item.id">
@@ -133,7 +134,10 @@ const secondaryList = computed(() => store.getters["scene/secondaryList"]);
 
 const isShowScenesList = computed(() => store.getters["functions/isShowScenesList"]);
 
-const currentScenesList = computed(() => store.getters["scene/currentScenesList"]);
+const currentScenesList = computed(() => {
+  console.error(store.getters["scene/currentScenesList"]);
+  return store.getters["scene/currentScenesList"];
+});
 
 const show = ref(false);
 const swidth = ref({
@@ -329,15 +333,15 @@ const changeSceneList = () => {
   }
 
   if (secondTabIndex.value == -1) {
-    console.log("没有二级目录");
     let rootList = metadata.value.navigationTrees.find((item) => item.id == currentRootId.value);
+    console.log("没有二级目录", rootList);
     store.commit("scene/setCurrentScenesList", rootList.children);
   }
   nextTick(() => {
-    initSceneSwiper();
-    initRootGroupSwiper();
+    // initSceneSwiper();
+    // initRootGroupSwiper();
     if (metadata.value.navigationTrees[currentRootId.value]?.children[currentSecondId.value]?.type == "group") {
-      initSecondGroupSwiper();
+      // initSecondGroupSwiper();
     }
   });
 };
@@ -359,7 +363,7 @@ const initSceneSwiper = () => {
   });
 };
 const tabCurrentScene = (data, index) => {
-  if (data.type == '4dkk') {
+  if (data.type == "4dkk") {
     store.commit("functions/setShowScenesList", false);
   } else {
     store.dispatch("audio/resumeBGM");