download_caigong1.html 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <title>APP下载</title>
  8. <style type="text/css">
  9. * {
  10. padding: 0;
  11. margin: 0;
  12. }
  13. #app {
  14. position: relative;
  15. width: 100vw;
  16. height: 100vh;
  17. }
  18. #app .bg {
  19. width: 100vw;
  20. }
  21. #app .download1 {
  22. position: absolute;
  23. left: 50%;
  24. transform: translate(-50%, 0%);
  25. width: 64vw;
  26. height: 12.8vw;
  27. line-height: 12.8vw;
  28. background: #498EF5;
  29. bottom: 27.8vw;
  30. color: white;
  31. text-align: center;
  32. font-size: 6.4vw;
  33. border-radius: 48px;
  34. }
  35. #app .download2 {
  36. position: absolute;
  37. left: 50%;
  38. transform: translate(-50%, 0%);
  39. width: 64vw;
  40. height: 12.8vw;
  41. line-height: 12.8vw;
  42. background: #498EF5;
  43. bottom: 10vw;
  44. color: white;
  45. text-align: center;
  46. font-size: 6.4vw;
  47. border-radius: 48px;
  48. }
  49. #app .title {
  50. position: absolute;
  51. top: 24vw;
  52. width: 100%;
  53. color: white;
  54. text-align: center;
  55. }
  56. #app .subtitle {
  57. position: absolute;
  58. top: 52.5vw;
  59. width: 100%;
  60. color: white;
  61. text-align: center;
  62. }
  63. #app #tip {
  64. display: none;
  65. position: absolute;
  66. z-index: 1000;
  67. width: 100%;
  68. }
  69. #app #tip .tip {
  70. width: 100vw;
  71. }
  72. </style>
  73. </head>
  74. <body>
  75. <div id="app">
  76. <div id="tip">
  77. <img class="tip" src="./assets/tip.png">
  78. </div>
  79. <div class="title">
  80. <img style="width: 72vw;" src="./assets/财仝驾考APP1.png">
  81. </div>
  82. <div class="subtitle">
  83. <img style="width: 56.5vw;" src="./assets/文字1.png">
  84. </div>
  85. <img class="bg" src="./assets/bg1.png">
  86. <a href="https://ys.zzxcx.net/apk/sdjkAndroid1.2.2.apk">
  87. <div class="download1">
  88. 点击下载1
  89. </div>
  90. </a>
  91. <a href="https://ys.zzxcx.net/apk/sdjkAndroid1.2.2.apk">
  92. <div class="download2">
  93. 点击下载(备用)
  94. </div>
  95. </a>
  96. <a onclick="openWxDownloadTip()">
  97. <div class="download1">
  98. 点击下载1
  99. </div>
  100. </a>
  101. <a onclick="openWxDownloadTip()">
  102. <div class="download2">
  103. 点击下载(备用)
  104. </div>
  105. </a>
  106. </div>
  107. <script>
  108. function is_weixin() {
  109. var ua = navigator.userAgent.toLowerCase();
  110. if (ua.match(/MicroMessenger/i) == "micromessenger") {
  111. return true;
  112. } else {
  113. return false;
  114. }
  115. }
  116. function openWxDownloadTip(){
  117. document.getElementById('tip').style.display = 'block'
  118. }
  119. window.onload = function () {
  120. if (is_weixin()) {
  121. document.querySelectorAll('#app a')[0].style.display = 'none'
  122. document.querySelectorAll('#app a')[1].style.display = 'none'
  123. }
  124. else {
  125. document.querySelectorAll('#app a')[2].style.display = 'none'
  126. document.querySelectorAll('#app a')[3].style.display = 'none'
  127. }
  128. }
  129. </script>
  130. </body>
  131. </html>