downloadApp.html 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>极速驾培app下载</title>
  7. <style type="text/css">
  8. * {
  9. margin: 0;
  10. padding: 0;
  11. box-sizing: border-box;
  12. border: 0;
  13. }
  14. #app {
  15. width: 100%;
  16. position: relative;
  17. overflow: hidden;
  18. }
  19. .logo {
  20. width: 50%;
  21. position: absolute;
  22. left: 25%;
  23. top: 17vw;
  24. }
  25. .bg {
  26. width: 100%;
  27. overflow: hidden;
  28. font-size: 0;
  29. }
  30. .qr {
  31. position: absolute;
  32. top: 121vw;
  33. width: 25vw;
  34. height: 25vw;
  35. left: 37.5vw;
  36. }
  37. .button1 {
  38. width: 64vw;
  39. line-height: 12.8vw;
  40. background: #498EF5;
  41. border-radius: 48px;
  42. font-size: 6.4vw;
  43. position: absolute;
  44. top: 125vw;
  45. left: 18vw;
  46. color: #fff;
  47. text-align: center;
  48. }
  49. .button2 {
  50. position: absolute;
  51. width: 64vw;
  52. line-height: 12.8vw;
  53. background: #498EF5;
  54. border-radius: 48px;
  55. font-size: 6.4vw;
  56. top: 145vw;
  57. left: 18vw;
  58. color: #fff;
  59. text-align: center;
  60. }
  61. </style>
  62. </head>
  63. <body>
  64. <div class="#app">
  65. <img class="bg" src="https://t1-1305573081.file.myqcloud.com/test/adown/bg2.png">
  66. <img class="logo" src="https://t1-1305573081.file.myqcloud.com/test/adown/logo2.png">
  67. <!-- <img class="qr" src="https://t1-1305573081.file.myqcloud.com/test/adown/qr.png"> -->
  68. <div onclick="downLoadApp1()" class="button1">
  69. 点击下载1
  70. </div>
  71. <div onclick="downLoadApp2()" class="button2">
  72. 点击下载2
  73. </div>
  74. </div>
  75. <script>
  76. var jsjp_android = 'https://t1-1305573081.file.myqcloud.com/apk/fj_student_2.1.5.apk'
  77. var ajax = new XMLHttpRequest()
  78. ajax.open('get', "https://jsjp-admin.zzxcx.net/jsjp-admin/open-api/gzpt/userInfo/configKey/jsjp_android")
  79. ajax.send()
  80. ajax.onreadystatechange = function () {
  81. if (ajax.status == 200 && ajax.readyState == 4) {
  82. jsjp_android = JSON.parse(ajax.responseText).data
  83. }
  84. }
  85. function getPhoneSystem() {
  86. var u = navigator.userAgent;
  87. if (u.indexOf('Android') > -1) {
  88. return 'android'
  89. }
  90. if (u.indexOf("iPhone") > -1 || u.indexOf("iOS") > -1) {
  91. return 'ios';
  92. }
  93. }
  94. function isWeixin() {
  95. var ua = navigator.userAgent.toLowerCase();
  96. if (ua.search('micromessenger') !== -1) {
  97. return true;
  98. } else {
  99. return false;
  100. }
  101. }
  102. function downLoadApp1() {
  103. if (getPhoneSystem() == 'ios') {
  104. // window.location.href = 'https://apps.apple.com/us/app/极速驾培/id1214200225'
  105. window.location.href = "https://apps.apple.com/cn/app/极速驾培/id1214200225"
  106. }
  107. if (getPhoneSystem() == 'android' && isWeixin() == false) {
  108. window.location.href = jsjp_android
  109. }
  110. else {
  111. // window.location.href = "https://itunes.apple.com/cn/app/id1214200225"
  112. }
  113. }
  114. function downLoadApp2() {
  115. if (getPhoneSystem() == 'ios') {
  116. // window.location.href = 'https://apps.apple.com/us/app/极速驾培/id1214200225'
  117. window.location.href = "https://apps.apple.com/us/app/极速驾培/id1214200225"
  118. }
  119. if (getPhoneSystem() == 'android' && isWeixin() == false) {
  120. window.location.href = jsjp_android
  121. }
  122. else {
  123. // window.location.href = "https://itunes.apple.com/cn/app/id1214200225"
  124. }
  125. }
  126. </script>
  127. </body>
  128. </html>