downloadApp2.html 6.6 KB

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