Browse Source

修改bug

huangxiaojing 3 years ago
parent
commit
a6b53cf44a
2 changed files with 28 additions and 29 deletions
  1. 14 14
      screenAndroid/WXtrialInterface.html
  2. 14 15
      screenIos/WXtrialInterface.html

+ 14 - 14
screenAndroid/WXtrialInterface.html

@@ -35,14 +35,16 @@
   <link rel="stylesheet" href="https://cdn.bootcss.com/weui/1.1.3/style/weui.min.css" />
   <link rel="stylesheet" href="https://cdn.bootcss.com/jquery-weui/1.2.1/css/jquery-weui.min.css" />
   <style>
-    .try-use-wrap, .buy-phone-wrap, .look-wrap{
-        width: 100%;
-        height: 100%;
-        position: fixed;
-        top: 0;
-        left: 0;
-        z-index: 9999;
-        background: rgba(0, 0, 0, 0.5);
+    .try-use-wrap,
+    .buy-phone-wrap,
+    .look-wrap {
+      width: 100%;
+      height: 100%;
+      position: fixed;
+      top: 0;
+      left: 0;
+      z-index: 9999;
+      background: rgba(0, 0, 0, 0.5);
       display: none;
     }
 
@@ -439,7 +441,7 @@
       });
     }
 
-    var hidden, visibilityChange; 
+    var hidden, visibilityChange;
     if (typeof document.hidden !== "undefined") { // Opera 12.10 and Firefox 18 and later support 
       hidden = "hidden";
       visibilityChange = "visibilitychange";
@@ -464,11 +466,9 @@
             url: '/pages/home/home'
           })
         } else {
-          document.addEventListener('UniAppJSBridgeReady', function () {
-            uni.navigateTo({
-              url: '/pages/index/index'
-            });
-          })
+          uni.navigateTo({
+            url: '/pages/index/index'
+          });
         }
       }
     }, false);

+ 14 - 15
screenIos/WXtrialInterface.html

@@ -36,14 +36,16 @@
   <link rel="stylesheet" href="https://cdn.bootcss.com/weui/1.1.3/style/weui.min.css" />
   <link rel="stylesheet" href="https://cdn.bootcss.com/jquery-weui/1.2.1/css/jquery-weui.min.css" />
   <style>
-    .try-use-wrap, .buy-phone-wrap, .look-wrap{
-        width: 100%;
-        height: 100%;
-        position: fixed;
-        top: 0;
-        left: 0;
-        z-index: 9999;
-        background: rgba(0, 0, 0, 0.5);
+    .try-use-wrap,
+    .buy-phone-wrap,
+    .look-wrap {
+      width: 100%;
+      height: 100%;
+      position: fixed;
+      top: 0;
+      left: 0;
+      z-index: 9999;
+      background: rgba(0, 0, 0, 0.5);
       display: none;
     }
 
@@ -220,7 +222,6 @@
   <script type="text/javascript" src="webgl.js"></script>
   <script type="text/javascript" src="https://cdn.bootcss.com/vConsole/3.2.0/vconsole.min.js"></script>
   <script type="text/javascript" src="WXdraw.js"></script>
-  <script type="text/javascript" src="https://unpkg.com/@dcloudio/uni-webview-js@0.0.2/index.js"></script>
   <script type="text/javascript">
     $(function () {
       //手指滑动多少距离就认为是滑成功
@@ -1134,7 +1135,7 @@
         level = 0;
       }
     }
-    var hidden, visibilityChange; 
+    var hidden, visibilityChange;
     if (typeof document.hidden !== "undefined") { // Opera 12.10 and Firefox 18 and later support 
       hidden = "hidden";
       visibilityChange = "visibilitychange";
@@ -1158,11 +1159,9 @@
             url: '/pages/home/home'
           })
         } else {
-          document.addEventListener('UniAppJSBridgeReady', function () {
-            uni.navigateTo({
-              url: '/pages/index/index'
-            });
-          })
+          uni.navigateTo({
+            url: '/pages/index/index'
+          });
         }
       }
     }, false);