tremble hace 3 años
padre
commit
abd7519b80

+ 18 - 1
src/framework/show/index.vue

@@ -187,23 +187,39 @@ export default {
       this.showInfo.scenes.forEach((item) => {
       this.showInfo.scenes.forEach((item) => {
         this.showInfo.catalogs.forEach((sub) => {
         this.showInfo.catalogs.forEach((sub) => {
           if (item.category == sub.id) {
           if (item.category == sub.id) {
-            tmp.push(sub);
+            if (tmp.indexOf(sub) < 0) {
+              tmp.push(sub);
+            }
           }
           }
         });
         });
       });
       });
       tmp = this.$unique(tmp)
       tmp = this.$unique(tmp)
+
       this.showInfo.catalogs = tmp;
       this.showInfo.catalogs = tmp;
       let rootmp = [];
       let rootmp = [];
       tmp.forEach((item) => {
       tmp.forEach((item) => {
         this.showInfo.catalogRoot.forEach((sub) => {
         this.showInfo.catalogRoot.forEach((sub) => {
+
           sub.children = this.$unique(sub.children)
           sub.children = this.$unique(sub.children)
+
           if (sub.children.indexOf(item.id) > -1) {
           if (sub.children.indexOf(item.id) > -1) {
             rootmp.push(sub);
             rootmp.push(sub);
           }
           }
         });
         });
       });
       });
+
+
       rootmp = this.$unique(rootmp)
       rootmp = this.$unique(rootmp)
 
 
+      let sortArr = this.showInfo.catalogRoot.map(item=>item.name)
+      rootmp.sort((a,b)=>{
+        return sortArr.indexOf(a.name) - sortArr.indexOf(b.name)
+      })
+
+
+      console.log(rootmp,666666);
+
+
       this.showInfo.catalogRoot = rootmp.map((item) => {
       this.showInfo.catalogRoot = rootmp.map((item) => {
         let temp = [];
         let temp = [];
         item.children = this.$unique(item.children)
         item.children = this.$unique(item.children)
@@ -219,6 +235,7 @@ export default {
           children: temp,
           children: temp,
         };
         };
       });
       });
+
       this.showInfo.catalogs = tmp
       this.showInfo.catalogs = tmp
 
 
       let cid = 'c_'+this.$randomWord(true,8,8)
       let cid = 'c_'+this.$randomWord(true,8,8)

+ 7 - 1
src/framework/showMobile/index.vue

@@ -4,7 +4,7 @@
       <v-ifr
       <v-ifr
         v-if="activeItem.type == '4dkk'"
         v-if="activeItem.type == '4dkk'"
         :key="activeItem.sceneCode"
         :key="activeItem.sceneCode"
-        :url="`https://test.4dkankan.com/embed.html?from=mingyuan&m=${activeItem.sceneCode}&lang=zh`"
+        :url="`/embed.html?from=mingyuan&m=${activeItem.sceneCode}&lang=zh`"
       />
       />
       <div v-show="activeItem.type != '4dkk'" id="pano"></div>
       <div v-show="activeItem.type != '4dkk'" id="pano"></div>
       
       
@@ -244,6 +244,12 @@ export default {
       });
       });
       rootmp = this.$unique(rootmp);
       rootmp = this.$unique(rootmp);
 
 
+      let sortArr = this.showInfo.catalogRoot.map(item=>item.name)
+      rootmp.sort((a,b)=>{
+        return sortArr.indexOf(a.name) - sortArr.indexOf(b.name)
+      })
+
+
       this.showInfo.catalogRoot = rootmp.map((item) => {
       this.showInfo.catalogRoot = rootmp.map((item) => {
         let temp = [];
         let temp = [];
         item.children = this.$unique(item.children);
         item.children = this.$unique(item.children);

+ 2 - 1
src/framework/showMobile/popup/password.vue

@@ -43,7 +43,8 @@ export default {
   },
   },
   data(){
   data(){
     return {
     return {
-      key:''
+      key:'',
+      isPassWordFocus:false
     }
     }
   },
   },
   methods:{
   methods:{