downApp.html 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
  6. <title>双子星云手机</title>
  7. <link rel="icon" href="../static/img/favicon2.ico" type="img/x-ico">
  8. <link rel="stylesheet" href="../static/js/vender/toastr/toastr.min.css">
  9. <script src="../static/js/vender/jquery-3.4.1.min.js"></script>
  10. <script src="../static/js/vender/toastr/toastr.min.js"></script>
  11. <script src="../static/js/vender/config.js"></script>
  12. <style>
  13. @media screen and (max-width: 750px) {
  14. html {
  15. font-size: calc(100vw / 7.5);
  16. }
  17. }
  18. @media screen and (min-width: 750px) {
  19. html {
  20. font-size: calc(450px / 7.5);
  21. }
  22. }
  23. html, body, div, ul, li, p {
  24. padding: 0;
  25. margin: 0;
  26. }
  27. ul, li {
  28. list-style: none;
  29. }
  30. .container{
  31. width: 7.5rem;
  32. height: 116vh;
  33. position: relative;
  34. }
  35. .down-bg{
  36. width: 100%;
  37. height: 100%;
  38. }
  39. .down-row{
  40. width: 6.7rem;
  41. height: 1rem;
  42. position: fixed;
  43. bottom: 0.2rem;
  44. left: 50%;
  45. transform: translateX(-50%);
  46. display: flex;
  47. justify-content: space-between;
  48. align-items: center;
  49. font-size: 0.24rem;
  50. background: linear-gradient(180deg, #251282 0%, #140463 100%);
  51. color: #ffffff;
  52. border-radius: 0.18rem;
  53. border: 0.02rem solid #412DA4;
  54. padding: 0 0.2rem;
  55. }
  56. /* .left{
  57. } */
  58. .address{
  59. text-align: center;
  60. width: 4.16rem;
  61. height: 0.6rem;
  62. line-height: 0.6rem;
  63. background-color: #ffffff;
  64. color: #333333;
  65. border-radius: 0.1rem;
  66. z-index: 999;
  67. }
  68. .right-btn{
  69. width: 1.1rem;
  70. height: 0.6rem;
  71. line-height: 0.6rem;
  72. text-align: center;
  73. background: #6048D8;
  74. box-shadow: 0 0.04rem 0.12rem 0 rgba(60, 31, 201, 0.4), 0 0.02rem 0.26rem 0 rgba(255, 255, 255, 0.29);
  75. border-radius: 0.1rem;
  76. background-color: #6048D8;
  77. }
  78. </style>
  79. </head>
  80. <body>
  81. <div class="container">
  82. <img class="down-bg" src="../static/img/down-bg.png" />
  83. <div class="down-row">
  84. <div class="left">下载链接</div>
  85. <div class="address">下载链接</div>
  86. <div class="right-btn">复制</div>
  87. </div>
  88. </div>
  89. <script>
  90. toastr.options.positionClass = 'toast-center-center';
  91. toastr.options.timeOut = '1500';
  92. </script>
  93. <script type="text/javascript">
  94. let timer,flag = true;
  95. var url = window.location.href;
  96. url = url.split('/')
  97. // var baseUrl = 'https://test.androidscloud.com/'
  98. var loc = window.location.search,
  99. n1 = loc.length,//地址的总长度
  100. n2 = loc.indexOf("="),//取得=号的位置
  101. id = loc.substr(n2 + 1, n1 - n2),//从=号后面的内容
  102. u = navigator.userAgent,
  103. ua = navigator.userAgent.toLowerCase(),
  104. isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),
  105. isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
  106. //埋点
  107. if(isAndroid){
  108. operate('中秋活动落地页');
  109. }
  110. function operate(pointName,type){
  111. $.ajax({
  112. url: baseUrl + '/api/public/v1/systemBuriedPoint/stat',
  113. type: 'post',
  114. data:JSON.stringify({
  115. pointName: pointName
  116. }),
  117. contentType:"application/json",
  118. dataType: 'json',
  119. cache: false,
  120. success: function (res) {
  121. if(isAndroid && type === 'click'){
  122. getAppDownload();
  123. }
  124. },
  125. })
  126. }
  127. //防止提示一秒内重复显示
  128. function stopManyClick(fn) {
  129. if (flag) {
  130. fn();
  131. }
  132. flag = false;
  133. if(timer){clearTimeout(timer);}
  134. timer = setTimeout(() => {flag = true}, 1500);
  135. }
  136. </script>
  137. </body>
  138. </html>