downloadApp.html 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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: 164vw;
  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: 180vw;
  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="./assets/bg2.png">
  66. <img class="logo" src="./assets/logo2.png">
  67. <img class="qr" src="./assets/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. function getPhoneSystem() {
  77. var u = navigator.userAgent;
  78. if (u.indexOf('Android') > -1) {
  79. return 'android'
  80. }
  81. if (u.indexOf("iPhone") > -1 || u.indexOf("iOS") > -1) {
  82. return 'ios';
  83. }
  84. }
  85. function isWeixin() {
  86. var ua = navigator.userAgent.toLowerCase();
  87. if (ua.search('micromessenger') !== -1) {
  88. return true;
  89. } else {
  90. return false;
  91. }
  92. }
  93. function downLoadApp1() {
  94. if (getPhoneSystem() == 'ios') {
  95. // window.location.href = 'https://apps.apple.com/us/app/极速驾培/id1214200225'
  96. window.location.href = "https://apps.apple.com/cn/app/极速驾培/id1214200225"
  97. }
  98. if (getPhoneSystem() == 'android' && isWeixin() == false) {
  99. window.location.href ='https://t1-1305573081.cos.ap-shanghai.myqcloud.com/apk/fj_student_2.1.5.apk'
  100. }
  101. else {
  102. // window.location.href = "https://itunes.apple.com/cn/app/id1214200225"
  103. }
  104. }
  105. function downLoadApp2() {
  106. if (getPhoneSystem() == 'ios') {
  107. // window.location.href = 'https://apps.apple.com/us/app/极速驾培/id1214200225'
  108. window.location.href = "https://apps.apple.com/us/app/极速驾培/id1214200225"
  109. }
  110. if (getPhoneSystem() == 'android' && isWeixin() == false) {
  111. window.location.href ='https://t1-1305573081.cos.ap-shanghai.myqcloud.com/apk/fj_student_2.1.5.apk'
  112. }
  113. else {
  114. // window.location.href = "https://itunes.apple.com/cn/app/id1214200225"
  115. }
  116. }
  117. </script>
  118. </body>
  119. </html>