瀏覽代碼

修复ios跳转

JXDS18FUJT 1 年之前
父節點
當前提交
7149b76d49
共有 3 個文件被更改,包括 38 次插入11 次删除
  1. 二進制
      assets/wx_download.png
  2. 36 8
      downloadApp2.html
  3. 2 3
      password1.html

二進制
assets/wx_download.png


+ 36 - 8
downloadApp2.html

@@ -4,7 +4,8 @@
 <head>
     <meta charset="UTF-8">
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
-    <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
+    <meta name="viewport"
+        content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
     <title>极速驾培app下载</title>
     <style type="text/css">
         * {
@@ -118,12 +119,29 @@
             color: #fff;
             text-align: center;
         }
+
+        #wx-download {
+            position: fixed;
+            top: 0;
+            left: 0;
+            width: 100vw;
+            z-index: 999;
+            display: none;
+
+
+        }
+
+        #wx-download>img {
+            width: 100vw;
+        }
     </style>
 </head>
 
 <body>
     <div class="#app">
-
+        <div id="wx-download">
+            <img src="./assets/wx_download.png">
+        </div>
         <img class="bg" src="https://t1-1305573081.file.myqcloud.com/test/adown/bg3.png">
         <img class="icon1" src="https://t1-1305573081.file.myqcloud.com/test/adown/icon1.png">
         <img class="icon2" src="https://t1-1305573081.file.myqcloud.com/test/adown/icon2.png">
@@ -199,12 +217,17 @@
 
             }
             else {
-                const a = document.createElement('a')
-                a.href = jsjp_android
-                a.download = 'fj_student.apk'
-                document.body.append(a)
-                a.click()
-                document.body.removeChild(a)
+                document.getElementById('wx-download').style = 'display:block'
+                document.getElementById('wx-download').onclick = function(e){
+                    $('wx-download').toggle()
+
+                }
+                // const a = document.createElement('a')
+                // a.href = jsjp_android
+                // a.download = 'fj_student.apk'
+                // document.body.append(a)
+                // a.click()
+                // document.body.removeChild(a)
                 // window.location.href = "https://itunes.apple.com/cn/app/id1214200225"
             }
 
@@ -221,6 +244,11 @@
 
             }
             else {
+                document.getElementById('wx-download').style = 'display:block'
+                document.getElementById('wx-download').onclick = function(e){
+                    $('wx-download').toggle()
+
+                }
                 // window.location.href = "https://itunes.apple.com/cn/app/id1214200225"
             }
         }

+ 2 - 3
password1.html

@@ -195,6 +195,7 @@
             background: rgba(0, 0, 0, 0.72);
             border-radius: 10px;
         }
+     
     </style>
 </head>
 
@@ -211,9 +212,7 @@
             </div>
         </div>
     </div>
-    <div class="toast">
-
-    </div>
+  
     <div class="bg">
 
         <img class="title" src="https://t1-1305573081.file.myqcloud.com/test/adown/student.png">