Ver Fonte

修复ios跳转3

JXDS18FUJT há 1 ano atrás
pai
commit
77cba1aaff
1 ficheiros alterados com 8 adições e 4 exclusões
  1. 8 4
      downloadApp2.html

+ 8 - 4
downloadApp2.html

@@ -211,14 +211,18 @@
                 return
 
             }
-            if (getPhoneSystem() == 'android' && isWeixin() == false) {
+            else if (getPhoneSystem() == 'android' && isWeixin() == false) {
                 window.location.href = jsjp_android
                 return
 
             }
             else {
                 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'
@@ -236,7 +240,7 @@
                 window.location.href = "https://apps.apple.com/cn/app/教练管家/id1214203182"
                 return
             }
-            if (getPhoneSystem() == 'android' && isWeixin() == false) {
+            else if (getPhoneSystem() == 'android' && isWeixin() == false) {
                 window.location.href = jlgj_android
                 return
 
@@ -244,7 +248,7 @@
             }
             else {
                 document.getElementById('wx-download').style = 'display:block'
-                document.getElementById('wx-download').onclick = function(e){
+                document.getElementById('wx-download').onclick = function (e) {
                     $('wx-download').toggle()
 
                 }