downloadApp2.html 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  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. <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
  7. <title>极速驾培app下载</title>
  8. <style type="text/css">
  9. * {
  10. margin: 0;
  11. padding: 0;
  12. box-sizing: border-box;
  13. border: 0;
  14. }
  15. #app {
  16. width: 100%;
  17. position: relative;
  18. overflow: hidden;
  19. }
  20. .password1 {
  21. top: 31vw;
  22. position: absolute;
  23. left: 12.8vw;
  24. width: 74vw;
  25. }
  26. .download1 {
  27. top: 54vw;
  28. position: absolute;
  29. left: 12.8vw;
  30. width: 74vw;
  31. }
  32. .password2 {
  33. top: 125vw;
  34. position: absolute;
  35. left: 12.8vw;
  36. width: 74vw;
  37. }
  38. .download2 {
  39. top: 147vw;
  40. position: absolute;
  41. left: 12.8vw;
  42. width: 74vw;
  43. }
  44. .logo1 {
  45. width: 50%;
  46. position: absolute;
  47. left: 25%;
  48. top: 17vw;
  49. }
  50. .logo2 {
  51. width: 50%;
  52. position: absolute;
  53. left: 25%;
  54. top: 108vw;
  55. }
  56. .icon1 {
  57. position: absolute;
  58. width: 98vw;
  59. left: 1vw;
  60. top: 39vw;
  61. }
  62. .icon2 {
  63. position: absolute;
  64. width: 98vw;
  65. left: 1vw;
  66. top: 123vw;
  67. }
  68. .bg {
  69. width: 100%;
  70. overflow: hidden;
  71. font-size: 0;
  72. }
  73. .qr {
  74. position: absolute;
  75. top: 121vw;
  76. width: 25vw;
  77. height: 25vw;
  78. left: 37.5vw;
  79. }
  80. .button1 {
  81. width: 64vw;
  82. line-height: 12.8vw;
  83. background: #498EF5;
  84. border-radius: 48px;
  85. font-size: 6.4vw;
  86. position: absolute;
  87. top: 125vw;
  88. left: 18vw;
  89. color: #fff;
  90. text-align: center;
  91. }
  92. .button2 {
  93. position: absolute;
  94. width: 64vw;
  95. line-height: 12.8vw;
  96. background: #498EF5;
  97. border-radius: 48px;
  98. font-size: 6.4vw;
  99. top: 145vw;
  100. left: 18vw;
  101. color: #fff;
  102. text-align: center;
  103. }
  104. </style>
  105. </head>
  106. <body>
  107. <div class="#app">
  108. <img class="bg" src="https://t1-1305573081.file.myqcloud.com/test/adown/bg3.png">
  109. <img class="icon1" src="https://t1-1305573081.file.myqcloud.com/test/adown/icon1.png">
  110. <img class="icon2" src="https://t1-1305573081.file.myqcloud.com/test/adown/icon2.png">
  111. <img class="logo1" src="https://t1-1305573081.file.myqcloud.com/test/adown/logo2.png">
  112. <img class="logo2" src="https://t1-1305573081.file.myqcloud.com/test/adown/logo3.png">
  113. <a href="./password1.html"> <img class="password1"
  114. src="https://t1-1305573081.file.myqcloud.com/test/adown/student_password.png"></a>
  115. <img class="download1" onclick="downLoadApp1()"
  116. src="https://t1-1305573081.file.myqcloud.com/test/adown/download_button1.png">
  117. <a href="./password2.html"><img class="password2"
  118. src="https://t1-1305573081.file.myqcloud.com/test/adown/teacher_password.png"></a>
  119. <img class="download2" onclick="downLoadApp2()"
  120. src="https://t1-1305573081.file.myqcloud.com/test/adown/download_button2.png">
  121. <!-- <img class="qr" src="https://t1-1305573081.file.myqcloud.com/test/adown/qr.png"> -->
  122. <!-- <div onclick="downLoadApp1()" class="button1">
  123. 点击下载1
  124. </div>
  125. <div onclick="downLoadApp2()" class="button2">
  126. 点击下载2
  127. </div> -->
  128. </div>
  129. <script>
  130. var jsjp_android = 'https://t1-1305573081.cos.ap-shanghai.myqcloud.com/apk/fj_student_2.1.5.apk'
  131. var jlgj_android = 'https://t1-1305573081.file.myqcloud.com/apk/jlgj1.2.6.apk'
  132. var ajax1 = new XMLHttpRequest()
  133. var ajax2 = new XMLHttpRequest()
  134. ajax1.open('get', "https://jsjp-admin.zzxcx.net/jsjp-admin/open-api/gzpt/userInfo/configKey/jsjp_android")
  135. ajax1.send()
  136. ajax1.onreadystatechange = function () {
  137. if (ajax1.status == 200 && ajax1.readyState == 4) {
  138. jsjp_android = JSON.parse(ajax1.responseText).data
  139. }
  140. }
  141. ajax2.open('get', "https://jsjp-admin.zzxcx.net/jsjp-admin/open-api/gzpt/userInfo/configKey/coach_android")
  142. ajax2.send()
  143. ajax2.onreadystatechange = function () {
  144. if (ajax2.status == 200 && ajax2.readyState == 4) {
  145. jlgj_android = JSON.parse(ajax2.responseText).data
  146. }
  147. }
  148. function getPhoneSystem() {
  149. var u = navigator.userAgent;
  150. if (u.indexOf('Android') > -1) {
  151. return 'android'
  152. }
  153. if (u.indexOf("iPhone") > -1 || u.indexOf("iOS") > -1) {
  154. return 'ios';
  155. }
  156. }
  157. function isWeixin() {
  158. var ua = navigator.userAgent.toLowerCase();
  159. if (ua.search('micromessenger') !== -1) {
  160. return true;
  161. } else {
  162. return false;
  163. }
  164. }
  165. function downLoadApp1() {
  166. if (getPhoneSystem() == 'ios') {
  167. // window.location.href = 'https://apps.apple.com/us/app/极速驾培/id1214200225'
  168. window.location.href = "https://apps.apple.com/cn/app/极速驾培/id1214200225"
  169. }
  170. if (getPhoneSystem() == 'android' && isWeixin() == false) {
  171. window.location.href = jsjp_android
  172. }
  173. else {
  174. const a = document.createElement('a')
  175. a.href = jsjp_android
  176. a.download = 'fj_student.apk'
  177. document.body.append(a)
  178. a.click()
  179. document.body.removeChild(a)
  180. // window.location.href = "https://itunes.apple.com/cn/app/id1214200225"
  181. }
  182. }
  183. function downLoadApp2() {
  184. if (getPhoneSystem() == 'ios') {
  185. // window.location.href = 'https://apps.apple.com/us/app/极速驾培/id1214200225'
  186. window.location.href = "https://apps.apple.com/cn/app/教练管家/id1214203182"
  187. }
  188. if (getPhoneSystem() == 'android' && isWeixin() == false) {
  189. window.location.href = jlgj_android
  190. }
  191. else {
  192. // window.location.href = "https://itunes.apple.com/cn/app/id1214200225"
  193. }
  194. }
  195. </script>
  196. </body>
  197. </html>