index.html 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  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>友期陪玩</title>
  7. <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
  8. </head>
  9. <style>
  10. body {
  11. font-family: "pingfang SC", "MicrosoftYaHei";
  12. font-size: 16px;
  13. -webkit-font-smoothing: antialiased;
  14. }
  15. * {
  16. -webkit-tap-highlight-color: transparent;
  17. margin: 0;
  18. padding: 0;
  19. }
  20. .bar {
  21. width: 100%;
  22. box-sizing: border-box;
  23. padding: 8px 15px;
  24. background: #ffffff;
  25. display: flex;
  26. justify-content: space-between;
  27. align-items: center;
  28. position: fixed;
  29. bottom: 0;
  30. }
  31. .bar>img {
  32. width: 143px;
  33. height: 33px;
  34. }
  35. .bar>a {
  36. /* width: 6.875rem; */
  37. padding: 0 10px;
  38. height: 2.25rem;
  39. background-image: linear-gradient(90deg, #9C6CFA, #4979FF);
  40. border-radius: 1.25rem;
  41. color: #ffffff;
  42. display: flex;
  43. justify-content: center;
  44. align-items: center;
  45. text-decoration: none;
  46. font-size: 14px;
  47. }
  48. .iphoneX {
  49. display: none;
  50. width: 100%;
  51. height: 34px;
  52. }
  53. .main {
  54. width: 100%;
  55. }
  56. .img_list{
  57. width: 100%;
  58. height: auto;
  59. display: flex;
  60. flex-direction: row;
  61. flex-wrap: wrap;
  62. }
  63. .img_box{
  64. width: 50%;
  65. height: calc(50vw*1.252);
  66. position: relative;
  67. }
  68. .img_box img{
  69. width: 100%;
  70. height: auto;
  71. position: absolute;
  72. top: 0;
  73. left: 0;
  74. }
  75. </style>
  76. <body>
  77. <div class="main">
  78. <div style="width: 100%;text-align:center;font-size: 30px;">
  79. 下载<span style="font-size: 34px;font-weight:800;">友期陪玩app</span></br>
  80. 约会交友处对象
  81. </div>
  82. <div class="img_list">
  83. <div class="img_box">
  84. <img src="./img/1.jpg" alt="">
  85. </div>
  86. <div class="img_box">
  87. <img src="./img/2.jpg" alt="">
  88. </div>
  89. <div class="img_box">
  90. <img src="./img/3.jpg" alt="">
  91. </div>
  92. <div class="img_box">
  93. <img src="./img/4.jpg" alt="">
  94. </div>
  95. <div class="img_box">
  96. <img src="./img/5.jpg" alt="">
  97. </div>
  98. <div class="img_box">
  99. <img src="./img/6.jpg" alt="">
  100. </div>
  101. <div class="img_box">
  102. <img src="./img/7.jpg" alt="">
  103. </div>
  104. <div class="img_box">
  105. <img src="./img/8.jpg" alt="">
  106. </div>
  107. <div class="img_box">
  108. <img src="./img/9.jpg" alt="">
  109. </div>
  110. <div class="img_box">
  111. <img src="./img/10.jpg" alt="">
  112. </div>
  113. </div>
  114. <div style="width: 100%;height: 60px;"></div>
  115. <div class="iphoneX"></div>
  116. </div>
  117. <div class="bar">
  118. <img src="./img/logo.png">
  119. <a href="https://uqchat.oss-cn-shenzhen.aliyuncs.com/package/uqchat.apk" class="btn">右上角浏览器打开</a>
  120. </div>
  121. </body>
  122. <script>
  123. const baseSize = 16
  124. function setRem() {
  125. const scale = document.documentElement.clientWidth / 375
  126. document.documentElement.style.fontSize = baseSize * scale + 'px'
  127. }
  128. setRem()
  129. window.onresize = function () {
  130. setRem()
  131. }
  132. function isIPhoneX() {
  133. var u = navigator.userAgent,
  134. isX;
  135. var isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
  136. if (isIOS) {
  137. if (screen.height == 812 && screen.width == 375) {
  138. isX = true
  139. } else {
  140. isX = false
  141. }
  142. }
  143. return isX
  144. }
  145. if (isIPhoneX()) {
  146. document.querySelector('.bar').style.padding = "8px 15px 42px"
  147. document.querySelector('.iphoneX').style.display = "block"
  148. }
  149. let u = navigator.userAgent,
  150. ios = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),
  151. a = document.querySelector('.bar>a');
  152. if (ios) {
  153. a.innerText = '下载友期APP';//下载友期APP
  154. a.setAttribute("href", "https://itunes.apple.com/app/id1511863353");
  155. }
  156. if (navigator.userAgent.toLowerCase().match(/MicroMessenger/i) == "micromessenger") {
  157. console.log('当前环境为微信环境')
  158. }else{
  159. a.innerText = '下载友期APP';
  160. }
  161. </script>
  162. <script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
  163. <script src="./js/main.js"></script>
  164. </html>