index.html 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. <!DOCTYPE html>
  2. <html style="font-size: 100px;">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  5. <title>APP下载</title>
  6. <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0,minimum-scale=1,maximum-scale=1,minimal-ui">
  7. <meta name="format-detection" content="telephone=no">
  8. <meta name="keywords" content="APP下载">
  9. <meta name="description" content="">
  10. <meta name="apple-mobile-web-app-capable" content="yes">
  11. <meta name="apple-mobile-web-app-status-bar-style" content="default">
  12. <meta name="screen-orientation" content="portrait">
  13. <meta name="x5-orientation" content="portrait">
  14. <meta http-equiv="X-UA-Compatible" content="IE=Edge;chrome=1">
  15. <script src="/assets/libs/jquery/dist/jquery.min.js?v=1619157096"></script>
  16. <script src="/assets/libs/fastadmin-layer/dist/layer.js?v=1619157592"></script>
  17. <script>!function () {
  18. function e(e) {
  19. return this.config = e, this
  20. }
  21. e.prototype = {
  22. reset: function () {
  23. var e = this.config && this.config.baseline && !isNaN(this.config.baseline) ? this.config.baseline : 750,
  24. n = Math.min(document.documentElement.clientWidth, e) / e * 100;
  25. document.documentElement.style.fontSize = n + "px";
  26. var t = parseFloat(window.getComputedStyle(document.documentElement).fontSize), o = n / t;
  27. 1 != o && (document.documentElement.style.fontSize = n * o + "px")
  28. }
  29. }, window.Adapter = new e(window.ADAPTER_CONF || {}), window.Adapter.reset(), window.onload = function () {
  30. window.Adapter.reset()
  31. }, window.onresize = function () {
  32. window.Adapter.reset()
  33. }
  34. }();</script>
  35. <style>
  36. html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  37. margin: 0;
  38. padding: 0;
  39. border: 0;
  40. font-size: 100%;
  41. font: inherit;
  42. vertical-align: baseline
  43. }
  44. article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  45. display: block
  46. }
  47. body {
  48. line-height: 1
  49. }
  50. ol, ul {
  51. list-style: none
  52. }
  53. blockquote, q {
  54. quotes: none
  55. }
  56. blockquote:before, blockquote:after, q:before, q:after {
  57. content: '';
  58. content: none
  59. }
  60. table {
  61. border-collapse: collapse;
  62. border-spacing: 0
  63. }
  64. html {
  65. font-size: 100px
  66. }
  67. body {
  68. font-size: 12px;
  69. -webkit-text-size-adjust: 100% !important
  70. }
  71. #input {position: absolute;top: 0;left: 0;opacity: 0;z-index: -10;}
  72. html {
  73. font-family: -apple-system, BlinkMacSystemFont, STHeiti, 'Microsoft YaHei', Helvetica, Arial, sans-serif
  74. }
  75. :not(input,textarea) {
  76. -webkit-touch-callout: none;
  77. -webkit-user-select: none
  78. }
  79. .dfsdf{
  80. width:50%;
  81. border-radius: 5px;
  82. background:#ddd;
  83. background: rgba(0,0,0,0.3);
  84. margin-left:25%;
  85. padding-top: 0px;
  86. line-height:30px;
  87. font-size: 14px;
  88. color: #fff;
  89. margin-bottom: 20px;
  90. text-align:center;
  91. display: none;
  92. }
  93. #weixin-tip{display:none;position:fixed;left:0;top:0;background:rgba(0,0,0,0.8);filter:alpha(opacity=80);width:100%;height:100%;z-index:100;}
  94. #weixin-tip p{text-align:center;margin-top:10%;padding:0 5%;position:relative;}
  95. #weixin-tip .close{color:#fff;padding:5px;font:bold 20px/24px simsun;text-shadow:0 1px 0 #ddd;position:absolute;top:0;left:5%;}
  96. </style>
  97. <link rel="stylesheet" href="index_6e7b938.css">
  98. </head>
  99. <body>
  100. <!--<img id="weixinShareLogo" src="icon_16674815ec4bd46a3b51cdc435b4f345.png" style="position:absolute;top:-1000px;left:-1000px;">-->
  101. <a id="container" href="#" data-app-download-position="home-site">
  102. <div class="slogan-warpper"><img src="slogan@2x_9020aca.png" alt="slogan"></div>
  103. <div class="cellphone-warpper"><img src="iphone@2x_0c3a658.png" alt="cellphone"></div>
  104. <div onclick="copyText()" class="dfsdf" id="dfsdf">
  105. <span>邀请码:</span>
  106. <span id="text"></span>
  107. <textarea id="input"></textarea>
  108. <!--<span id="fzcg">点击复制</span>-->
  109. </div>
  110. <div id="containersdl" style="display:none;" class="button-warpper"><span class="button">APP下载</span></div>
  111. <div id="containers" style="display:none;" class="button-warpper"><span class="button">下载APP</span></div>
  112. </a>
  113. <div id="weixin-tip"><p><img src="live_weixin.png" style="width: 100%;" alt="微信打开" /><span id="close" title="关闭" class="close">×</span></p></div>
  114. <script>
  115. var iswx=''
  116. if(getQueryVariable('iswx')){
  117. iswx=getQueryVariable('iswx')
  118. }
  119. if(iswx){
  120. $("#containersdl").hide()
  121. $("#containers").show()
  122. }else{
  123. $("#containersdl").show()
  124. $("#containers").hide()
  125. }
  126. if(iswx && is_weixin()){
  127. var winHeight = typeof window.innerHeight != 'undefined' ? window.innerHeight : document.documentElement.clientHeight;
  128. var tip = document.getElementById('weixin-tip');
  129. tip.style.height = winHeight + 'px'; //兼容IOS弹窗整屏
  130. tip.style.display = 'block';
  131. //location.href = 'weixin://app/wx5aa333606550dfd5/jumpWxa/?userName=gh_9b786f6dbff5';
  132. }else{
  133. }
  134. $("#containersdl").click(function(){
  135. var id=1;
  136. if(getQueryVariable('id')){
  137. id =getQueryVariable('id')
  138. }
  139. window.open("/index/index/login?id="+id+"&v="+Math.random(), "_self");
  140. });
  141. if(getQueryVariable('id')){
  142. document.getElementById("text").innerHTML = getQueryVariable('id');
  143. var oImg2 = document.getElementById("dfsdf");
  144. oImg2.style.display = "block";
  145. }
  146. function copyText() {
  147. var text = document.getElementById("text").innerText;
  148. var input = document.getElementById("input");
  149. input.setAttribute("readonly", "readonly");//设置只读
  150. input.value = text; // 修改文本框的内容
  151. input.select(); // 选中文本
  152. document.execCommand("copy"); // 执行浏览器复制命令
  153. alert("复制成功");
  154. }
  155. function getQueryVariable(variable)
  156. {
  157. var query = window.location.search.substring(1);
  158. var vars = query.split("&");
  159. for (var i=0;i<vars.length;i++) {
  160. var pair = vars[i].split("=");
  161. if(pair[0] == variable){return pair[1];}
  162. }
  163. return(false);
  164. }
  165. function is_weixin() {
  166. var ua = navigator.userAgent.toLowerCase();
  167. if (ua.match(/MicroMessenger/i) == "micromessenger") {
  168. return true;
  169. } else {
  170. return false;
  171. }
  172. }
  173. window.onload = function () {
  174. var winHeight = typeof window.innerHeight != 'undefined' ? window.innerHeight : document.documentElement.clientHeight; //兼容IOS,不需要的可以去掉
  175. var btn = document.getElementById('containers');
  176. var tip = document.getElementById('weixin-tip');
  177. var close = document.getElementById('close');
  178. if (is_weixin()) {
  179. btn.onclick = function (e) {
  180. tip.style.height = winHeight + 'px'; //兼容IOS弹窗整屏
  181. tip.style.display = 'block';
  182. return false;
  183. }
  184. close.onclick = function () {
  185. tip.style.display = 'none';
  186. }
  187. }else{
  188. btn.onclick = function (e) {
  189. $.ajax({
  190. url:"/api/index/index",
  191. data:{},
  192. type:"GET",
  193. dataType : "json",
  194. success:function (data) {
  195. console.log('下载地址', data.data.config.site.xzdz)
  196. window.open(data.data.config.site.xzdz,"_self");
  197. }
  198. });
  199. }
  200. }
  201. }
  202. </script>
  203. </body>
  204. </html>