酷店app

index.html 4.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta content="yes" name="apple-mobile-web-app-capable">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0,minimum-scale=1.0,user-scalable=0" />
  7. <title>酷店App</title>
  8. <link rel="stylesheet" type="text/css" href="../common/reset.css"/>
  9. <script src="../common/jquery-2.1.0.js"></script>
  10. <script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? "https://" : "http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_1277150527'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s96.cnzz.com/z_stat.php%3Fid%3D1277150527' type='text/javascript'%3E%3C/script%3E"));</script>
  11. <script type="text/javascript">
  12. document.documentElement.style.fontSize = 100 * (document.documentElement.clientWidth/375) + "px";
  13. window.onresize = function(){
  14. document.documentElement.style.fontSize = 100 * (document.documentElement.clientWidth/375) + "px";
  15. }
  16. document.getElementById("cnzz_stat_icon_1277150527").style.display="none"; // 隐藏统计小图标
  17. //声明_czc对象:
  18. var _czc = _czc || [];
  19. //绑定siteid,请用您的siteid替换下方"XXXXXXXX"部分
  20. _czc.push(["_setAccount", "1277150527"]);
  21. </script>
  22. <style>
  23. .alert-info {
  24. position: fixed;
  25. top: 1.74rem;
  26. right: 0;
  27. left: 0;
  28. bottom: 0;
  29. text-align: center;
  30. }
  31. .alert-info p {
  32. display: inline-block;
  33. height: 0.38rem;
  34. color: #fff;
  35. font-size: 0.14rem;
  36. line-height: 0.38rem;
  37. padding: 0 0.10rem;
  38. background-color: rgba(0, 0, 0, 0.7);
  39. border-radius: 5px;
  40. }
  41. body{
  42. width: 100%;min-height: 100vh;background: #fff;
  43. }
  44. .bgImg{
  45. width: 100%;
  46. }
  47. #downloadButton{
  48. width: 2rem;height: 0.55rem;background: url(./img/bgButton01.png) no-repeat;background-size:100%;
  49. position: absolute;top: 6rem;left: 0;right: 0;margin: auto;border: none;margin-bottom: 0.5rem;
  50. }
  51. .mask{
  52. width: 100%;height: 100vh;background: rgba(0, 0, 0, 0.7);position: fixed;top: 0;left: 0;display: none;
  53. }
  54. .mask .con p{
  55. font-size: 0.15rem;color: #fff;font-weight: bold;text-align: right;padding-top: 0.65rem;padding-right: 0.6rem;
  56. }
  57. .mask .con .jiantou{
  58. position: absolute;
  59. top: 0.2rem;
  60. right: 0.3rem;
  61. width: 0.4rem;
  62. }
  63. </style>
  64. </head>
  65. <body>
  66. <img class="bgImg" src="./img/bgImg01.png"/>
  67. <button id="downloadButton"></button>
  68. <div class="mask">
  69. <div class="con">
  70. <p>点击右上角选择在浏览器打开</p>
  71. <img src="./img/jiantou.png" class="jiantou"/>
  72. </div>
  73. </div>
  74. <div class="alert-info" style="display: none;">
  75. <!-- tip提示,3s后消失 -->
  76. <p></p>
  77. </div>
  78. </body>
  79. </html>
  80. <script>
  81. $().ready(function(){
  82. _czc.push(["_trackEvent",'酷店App落地页01','入口','']);
  83. })
  84. $("#downloadButton").on('click',function (){
  85. if (navigator.userAgent.match(/(iPhone|iPod|iPad);?/i)) {
  86. showMsg('敬请期待')
  87. _czc.push(["_trackEvent",'酷店App落地页01','ios','按钮点击']);
  88. }
  89. if (navigator.userAgent.match(/android/i)) {
  90. _czc.push(["_trackEvent",'酷店App落地页01','android','按钮点击']);
  91. if(isWeiXin()){
  92. $(".mask").show()
  93. }else{
  94. window.location.href = 'https://kx-youhuiquan.oss-cn-beijing.aliyuncs.com/tbk_onlive/android-apk/%E9%85%B7%E5%BA%97app.apk'
  95. }
  96. }
  97. })
  98. //提示弹框
  99. function showMsg(msg) {
  100. var msgBox = document.getElementsByClassName('alert-info')[0];
  101. msgBox.children[0].innerText = msg;
  102. msgBox.style.display="block";
  103. setTimeout(function() {
  104. msgBox.style.display="none";
  105. }, 1500);
  106. }
  107. function isWeiXin(){
  108. var ua = window.navigator.userAgent.toLowerCase();
  109. if(ua.match(/MicroMessenger/i) == 'micromessenger'){
  110. return true;
  111. }else{
  112. return false;
  113. }
  114. }
  115. </script>