jinx 1 рік тому
батько
коміт
428dbcdae8

+ 4 - 4
src/components/card/index.vue

@@ -144,7 +144,7 @@ export default {
     right: 10px;
   }
   &:hover {
-    border: 1px solid #980204;
+    // border: 1px solid #980204;
   }
   .card-img {
     position: relative;
@@ -212,9 +212,9 @@ export default {
         // width:100%;
         // overflow: hidden;
         // text-overflow: ellipsis;
-        &:hover {
-          animation: marquee 3s linear infinite;
-        }
+        // &:hover {
+        //   animation: marquee 3s linear infinite;
+        // }
       }
     }
     .info {

+ 1 - 0
src/pages/antiques/index.vue

@@ -603,6 +603,7 @@ export default {
           overflow: hidden;
           box-shadow: 0px 0 7px 0px rgba(0, 0, 0, 0.25);
           margin-bottom: 0.2667rem;
+          background: #f6f2ea;
           .cover-box {
             // width: 4.4133rem;
             height: 5.3333rem;

+ 6 - 70
src/pages/index/index.vue

@@ -31,51 +31,12 @@ export default {
     return {
       isMobile: browser.mobile,
       hover: -1,
-      navs: [
-        {
-          name: "场景漫游",
-          en_name: "Online exhibition hall",
-          img: 2,
-          link: "/scene?m=5",
-        },
 
-        {
-          name: "馆藏鉴赏",
-          en_name: "Collection appreciation",
-          img: 4,
-          link: "/antiques",
-        },
-      ],
       state: false,
       play: false,
     };
   },
-  methods: {
-    goPage(nav) {
-      if (nav.link) this.$router.push(nav.link);
-    },
-    pullDown() {
-      this.state = !this.state;
-    },
-    async playAudio() {
-      try {
-        await window.bg_audio.play();
-        this.play = true;
-      } catch (err) {
-        console.log(err);
-        this.play = false;
-      }
-    },
-    changeAudio() {
-      if (this.play) {
-        window.bg_audio.pause();
-        this.play = false;
-      } else {
-        window.bg_audio.play();
-        this.play = true;
-      }
-    },
-  },
+  methods: {},
   computed: {
     width() {
       return width;
@@ -84,33 +45,8 @@ export default {
       return width * (1080 / 1920);
     },
   },
-  watch: {
-    $route(a, b) {
-      console.log(a, b);
-      window.bg_audio.pause();
-      this.play = false;
-    },
-  },
-  mounted() {
-    // 监听视频是否播放完毕
-    // if (!this.state) {
-    //   document.getElementById('startvideo').loop = false // 不设置视频循环播放
-    //   document.getElementById('startvideo').addEventListener('ended', () => { //该视频播放是否已结束
-    //     this.state = true
-    //   }, false)
-    // }
-    window.bg_audio.autoplay = true;
-    if (!this.play) {
-      this.playAudio();
-    }
-    // window.addEventListener('message',function(event){
-    //     console.log(event);
-    //     if(that.$route.path=='/'&&event.data!=="undefined"){
-    //         that.$router.push({name:'Scene',query:{id:event.data}});
-    //     }
-
-    // })
-  },
+  watch: {},
+  mounted() {},
 };
 </script>
 
@@ -134,11 +70,11 @@ export default {
   .title {
     // width: 89.9vw;
     width: 7.0533rem;
-    height: .9067rem;
+    height: 0.9067rem;
     // margin-top: 12vh;
     margin-top: 1.3333rem;
-    img{
-    width: 100%;
+    img {
+      width: 100%;
     }
   }
 

+ 1 - 1
src/pages/pano/index.vue

@@ -13,7 +13,7 @@
     <!-- <iframe ref="iframe" v-if="startscene>0" :src="`https://www.4dmodel.com/SuperTwoCustom/PangZhiHua/${cur.link}?startscene=${startscene}`" frameborder="0" @click="closeList"></iframe>
     <iframe ref="iframe" v-else :src="`https://www.4dmodel.com/SuperTwoCustom/PangZhiHua/${cur.link}`" frameborder="0" @click="closeList"></iframe> -->
 
-    <iframe ref="iframe" :src="`https://www.4dkankan.com/panorama/show.html?id=WK1853363034380255232&vr=${sceneCode}&lang=zh`" frameborder="0"></iframe>
+    <iframe ref="iframe" allow="fullscreen" :src="`https://www.4dkankan.com/panorama/show.html?id=WK1853363034380255232&vr=${sceneCode}&lang=zh`" frameborder="0"></iframe>
   </div>
 </template>