tremble 3 лет назад
Родитель
Сommit
e21e9d2fbb

+ 47 - 0
public/showMobile.html

@@ -13,6 +13,19 @@
     <link rel="stylesheet" href="//at.alicdn.com/t/font_1064953_6ikt2gc1snb.css"/>
     <link rel="stylesheet" href="//at.alicdn.com/t/font_1064953_6ikt2gc1snb.css"/>
     <link rel="stylesheet" href="<%= VUE_APP_STATIC_DIR %>/lib/animate/animate.min.css" />
     <link rel="stylesheet" href="<%= VUE_APP_STATIC_DIR %>/lib/animate/animate.min.css" />
     <link rel="icon" href="./favicon.ico" />
     <link rel="icon" href="./favicon.ico" />
+    <!-- <style>
+      #consoleLog{ 
+        width: 120px;
+        height: 153px;
+        position: fixed;
+        right: 0px;
+        bottom: 160px;
+        z-index: 999999;
+        color: black;
+        opacity: 0.9;
+        font-size: 12px;
+      }
+    </style> -->
     <title>VR作品</title>
     <title>VR作品</title>
   </head>
   </head>
   <body>
   <body>
@@ -21,5 +34,39 @@
     <script src="<%= VUE_APP_STATIC_DIR %>/lib/jquery-2.1.1.min.js"></script>
     <script src="<%= VUE_APP_STATIC_DIR %>/lib/jquery-2.1.1.min.js"></script>
     <script src="<%= VUE_APP_STATIC_DIR %>/lib/krpano/js/tour.js"></script>
     <script src="<%= VUE_APP_STATIC_DIR %>/lib/krpano/js/tour.js"></script>
     <script src="https://res2.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
     <script src="https://res2.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
+<!-- 
+    <script>
+      let href = window.location.href
+
+      var changeLog = ()=>{
+      
+          if(href.indexOf('724')>-1){
+              var textarea = document.createElement('textarea');
+                textarea.id = "consoleLog";
+
+                document.getElementsByTagName("body")[0].appendChild(textarea);
+                var list = ["log", "error", "warn", "debug", "info", "time", "timeEnd"]
+                var exchange = function (o) {
+                  console["old" + o] = console[o];
+                  console[o] = function (str) {
+                    console["old" + o](str);
+                    var t = document.getElementById("consoleLog").innerHTML;
+                    document.getElementById("consoleLog").innerHTML = str + "\n\n" + t;
+                  }
+                }
+
+                for (var i = 0; i < list.length; i++) {
+                  exchange(list[i])
+                } 
+         
+          }
+          
+      }
+
+      setTimeout(() => {
+        changeLog()
+      }, 1000);
+  </script> -->
+
   </body>
   </body>
 </html>
 </html>

+ 1 - 0
src/assets/style/component.less

@@ -750,6 +750,7 @@ textarea:-ms-input-placeholder {
   left: 50%;
   left: 50%;
   top: 50%;
   top: 50%;
   z-index: 999;
   z-index: 999;
+  max-width: 90%;
   background: #fff;
   background: #fff;
   width: 500px;
   width: 500px;
   color: #323233;
   color: #323233;

+ 1 - 1
src/components/shared/message/index.js

@@ -1,6 +1,6 @@
 import Vue from 'vue'
 import Vue from 'vue'
 import UITips from './Tips.vue'
 import UITips from './Tips.vue'
-import UIAlert from './Alert.vue'
+import UIAlert from './Confirm.vue'
 import UIConfirm from './Confirm.vue'
 import UIConfirm from './Confirm.vue'
 
 
 export const Tips = Vue.extend(UITips)
 export const Tips = Vue.extend(UITips)

+ 4 - 1
src/framework/index.vue

@@ -23,7 +23,7 @@ export default {
   height: 100%;
   height: 100%;
   overflow: hidden;
   overflow: hidden;
 }
 }
-.el-message--success, .el-message--warning, .el-message--error{
+.el-message--success, .el-message--warning, .el-message--error, .el-message--info{
   background: #1F1F1F!important;
   background: #1F1F1F!important;
   box-shadow: 0px 9px 28px 8px rgba(0, 0, 0, 0.2), 0px 6px 16px 0px rgba(0, 0, 0, 0.32), 0px 3px 6px -4px rgba(0, 0, 0, 0.48)!important;
   box-shadow: 0px 9px 28px 8px rgba(0, 0, 0, 0.2), 0px 6px 16px 0px rgba(0, 0, 0, 0.32), 0px 3px 6px -4px rgba(0, 0, 0, 0.48)!important;
   border-radius: 40px!important;
   border-radius: 40px!important;
@@ -31,6 +31,9 @@ export default {
   .el-message__content{
   .el-message__content{
     color: rgba(255, 255, 255, 0.6)!important;
     color: rgba(255, 255, 255, 0.6)!important;
   }
   }
+  .el-icon-info{
+    color: #D89614!important;
+  }
 }
 }
 
 
 
 

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

@@ -286,7 +286,7 @@ export default {
           setTimeout(() => {
           setTimeout(() => {
             this.showTips = false;
             this.showTips = false;
           }, this.showInfo.remindTime * 1000);
           }, this.showInfo.remindTime * 1000);
-        }, 1000);
+        }, 2000);
       }
       }
     },
     },
     showInfo: {
     showInfo: {

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

@@ -182,7 +182,6 @@ export default {
       }
       }
       if (data.id == "vr") {
       if (data.id == "vr") {
         this.$iosGrantedTips(data=>{
         this.$iosGrantedTips(data=>{
-          console.log(data);
           if (data.code==1) {
           if (data.code==1) {
             var krpano = document.getElementById("krpanoSWFObject");
             var krpano = document.getElementById("krpanoSWFObject");
             var webvr = krpano.get("webvr");
             var webvr = krpano.get("webvr");
@@ -332,7 +331,7 @@ export default {
           setTimeout(() => {
           setTimeout(() => {
             this.showTips = false;
             this.showTips = false;
           }, this.showInfo.remindTime * 1000);
           }, this.showInfo.remindTime * 1000);
-        }, 1000);
+        }, 2000);
       }
       }
     },
     },
     showInfo: {
     showInfo: {

+ 1 - 1
src/mixins/index.js

@@ -275,7 +275,7 @@ Vue.mixin({
         var arr = version.split(".");
         var arr = version.split(".");
         console.log(arr);
         console.log(arr);
         
         
-        if (arr[0] > 12 && arr[1] > 2) {
+        if (arr[0] > 12 && arr[1] >= 0) {
           //对13.3以后的版本处理,包括13.3,
           //对13.3以后的版本处理,包括13.3,
           DeviceMotionEvent && DeviceMotionEvent.requestPermission()
           DeviceMotionEvent && DeviceMotionEvent.requestPermission()
             .then((permissionState) => {
             .then((permissionState) => {