tremble 3 years ago
parent
commit
1543b74d5c
1 changed files with 24 additions and 6 deletions
  1. 24 6
      src/views/Home.vue

+ 24 - 6
src/views/Home.vue

@@ -37,6 +37,8 @@
             <video
             <video
               v-else-if="active === 'video'"
               v-else-if="active === 'video'"
               :src="fixUrl(item.url)"
               :src="fixUrl(item.url)"
+              controlsList="nodownload"
+              disablePictureInPicture
               controls
               controls
             ></video>
             ></video>
             <iframe
             <iframe
@@ -93,6 +95,8 @@ browser.mobile &&
   iconArr.push({ name: "介绍", id: "title", img: "txt-icon", display: false });
   iconArr.push({ name: "介绍", id: "title", img: "txt-icon", display: false });
 
 
 let tt =  window.location.href.split('/hot_online1')[0] 
 let tt =  window.location.href.split('/hot_online1')[0] 
+// let tt = 'http://192.168.0.198:8080/code/'
+
 
 
 export default {
 export default {
   name: "Home",
   name: "Home",
@@ -208,7 +212,7 @@ export default {
       console.log(tt);
       console.log(tt);
       let url = `${tt}/data/${
       let url = `${tt}/data/${
         this.id
         this.id
-      }/hot/js/data.js?time=${Math.random()}`;
+      }/hot/js/data.json?time=${Math.random()}`;
       let result = (await this.$http.get(url)).data;
       let result = (await this.$http.get(url)).data;
       this.data = result[this.m];
       this.data = result[this.m];
       if (!this.data) {
       if (!this.data) {
@@ -239,7 +243,9 @@ export default {
       }
       }
     },
     },
     fixUrl(item) {
     fixUrl(item) {
-      return item;
+      let qq = item.replace(`https://super.4dage.com`,`${tt}`,)
+      console.log(qq);
+      return qq;
     },
     },
     slideto(action) {
     slideto(action) {
       this.swiper[action]();
       this.swiper[action]();
@@ -254,6 +260,12 @@ export default {
       },
       },
       false
       false
     );
     );
+    document.oncontextmenu = function(){
+        event.returnValue = false;
+    }// 或者直接返回整个事件
+    document.oncontextmenu = function(){
+    return false;
+    }
   },
   },
 };
 };
 </script>
 </script>
@@ -282,9 +294,7 @@ export default {
   width: 100%;
   width: 100%;
   height: 100%;
   height: 100%;
   position: relative;
   position: relative;
-  .ismtop {
-    padding-top: 40px !important;
-  }
+
   .content {
   .content {
     width: 100%;
     width: 100%;
     height: 80%;
     height: 80%;
@@ -353,6 +363,11 @@ export default {
       text-indent: 32px;
       text-indent: 32px;
     }
     }
   }
   }
+
+  .ismtop {
+    padding-top: 40px !important;
+    max-height: unset !important;
+  }
 }
 }
 
 
 @media screen and (max-width: 1400px) {
 @media screen and (max-width: 1400px) {
@@ -425,7 +440,6 @@ export default {
       .warpper {
       .warpper {
         .slide {
         .slide {
           width: 100%;
           width: 100%;
-          img,
           video,
           video,
           iframe {
           iframe {
             max-width: 70%;
             max-width: 70%;
@@ -436,6 +450,10 @@ export default {
             max-width: unset;
             max-width: unset;
             height: 100vh;
             height: 100vh;
           }
           }
+
+          img{
+            width: auto;
+          }
         }
         }
       }
       }
     }
     }