Browse Source

10-15bug修复

shaogen1995 3 years ago
parent
commit
ffc92a1c73

+ 2 - 2
SuperTwo762/js/myShow.js

@@ -1,7 +1,7 @@
 var g_ProjectName=window.location.pathname.substring(window.location.pathname.indexOf("/")+1,window.location.pathname.lastIndexOf("/"));
-var g_Prefix="http://192.168.0.44:8110/";
+// var g_Prefix="http://192.168.0.44:8110/";
 // var g_Prefix=window.location.href.substring(0,window.location.href.indexOf("/index.html")+1);
-// var g_Prefix=window.location.origin+'/';
+var g_Prefix=window.location.origin+'/';
 
 var s = window.location.href.split('/');
 s.pop();

+ 3 - 0
SuperTwo791/css/main.css

@@ -57,6 +57,9 @@ body, figure {
     width: 85px;
     height: 95px;
 }
+#myimg2{
+    height: auto !important;
+}
 
 #gui-name, #share-link-wrapper, .address, .co-brand, .contact-info div, .frame .slidee li .overlay, .gui-floor-title, .gui-floor.open .container .floorChoice {
     text-overflow: ellipsis

+ 1 - 1
SuperTwo791/index.html

@@ -771,7 +771,7 @@
                             <img class="keyboard">
                         </div> -->
                     <div class="nav-icon">
-                        <img src="images/pc_step1.png" class="icon" title="" data-page="1">
+                        <img src="images/pc_step1.png" class="icon" id="myimg2" title="" data-page="1">
                         <div class="nav-help-button">
                             <div class="next-button nav-help-page" data-id="plus"></div>
                             <div class="prev-button nav-help-page"></div>

+ 2 - 2
SuperTwo791/js/myShow.js

@@ -1,8 +1,8 @@
 var g_ProjectName=window.location.pathname.substring(window.location.pathname.indexOf("/")+1,window.location.pathname.lastIndexOf("/"));
-var g_Prefix="http://192.168.0.44:8110/";
+// var g_Prefix="http://192.168.0.44:8110/";
 // var g_Prefix="https://super.4dage.com/";
 // var g_Prefix=window.location.href.substring(0,window.location.href.indexOf("/index.html")+1);
-// var g_Prefix=window.location.origin+'/';
+var g_Prefix=window.location.origin+'/';
 
 var s = window.location.href.split('/');
 s.pop();

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

@@ -33,7 +33,7 @@ import bg from '@/components/background'
 
 
 // http://192.168.0.44:8110/
-let temp = 'http://192.168.0.44:8110/'
+let temp = ''
 const outKey = "791"
 const inKey = "762"
 

+ 1 - 1
code/src/pages/tunnel/index.vue

@@ -306,7 +306,7 @@ export default {
       this.$refs.contenttextarea && this.$refs.contenttextarea.classList.remove('redp');
       if (!this.nickName || !this.msg) {
         return alert("请填写完整");
-      }
+      }else if (this.msg.length>100) return alert("不能超过100个字符");
       let result = await this.$http.post("/api/web/comment", {
         msg: this.msg,
         nickName: this.nickName,

+ 1 - 1
edit-backstage/index.html

@@ -761,7 +761,7 @@
                             <img class="keyboard">
                         </div> -->
                     <div class="nav-icon">
-                        <img src="images/pc_step1.png" class="icon" title="navigation icon" data-page="1">
+                        <img src="images/pc_step1.png" class="icon"  data-page="1">
                         <div class="nav-help-button">
                             <div class="next-button nav-help-page" data-id="plus"></div>
                             <div class="prev-button nav-help-page"></div>

+ 5 - 5
hotspot/src/views/Home.vue

@@ -200,7 +200,7 @@ export default {
     },
     async getData() {
       // http://192.168.0.44:8110
-      let url = `http://192.168.0.44:8110/data/${
+      let url = `/data/${
         this.id
       }/hot/js/data.js?time=${Math.random()}`;
       let result = (await this.$http.get(url)).data;
@@ -208,11 +208,11 @@ export default {
 
 
     //进页面只让iframe加载2个
-      console.log(9999999,this.data.model.length);
+      // console.log(9999999,this.data.model.length);
       if(this.data.model){
         for(let i =0;i<this.data.model.length;i++){
           if(i==0||i==1) this.myFim[i]=this.data.model[i]
-          else this.myFim[i]=''
+          else this.myFim[i]='http://192.168.0.44:8110undefined'
         }
       }
       // this.myFim=this.data.model
@@ -241,7 +241,7 @@ export default {
       }
     },
     fixUrl(item) {
-      return 'http://192.168.0.44:8110'+item;
+      return ''+item;
     },
     slideto(action) {
       
@@ -255,7 +255,7 @@ export default {
           myFim.forEach((v,i)=>{
             //拿到右侧屏幕的iframe
             if(v.className.includes('swiper-slide-next') && i>1) {
-              if(myFimCente.src===''){
+              if(myFimCente.src.includes('undefined')){
                 myFimCente.src =this.fixUrl(this.data.model[i])
               }
               }