暂无描述

index.html 2.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no">
  7. <title>金牛记账</title>
  8. <style type="text/css">
  9. body,html{font-size: 0.16rem;min-height: 100vh;background: #FFD60B;}
  10. body, div, button, h3, h6, span, ul, li, p, a,input{font-family: -apple-system,SF UI Text,Helvetica Neue,Helvetica,Arial,sans-serif;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); padding: 0;
  11. margin: 0;box-sizing: inherit;font-weight: normal;}
  12. button{outline: none;}
  13. a, a:visited{text-decoration: none;}
  14. .top{margin-top:0.24rem ;margin-bottom: 0.1rem;}
  15. .top .logo{width: 0.4rem;height: 0.4rem;vertical-align: middle;margin-left: 0.13rem;}
  16. .top span{font-size: 0.14rem;line-height: 0.2rem;color: rgba(0,0,0,0.5);vertical-align: middle;font-weight: bold;}
  17. .content{width: 100%;}
  18. .button{width: 1.94rem;height: 0.69rem;background: url(image/button.png) no-repeat;background-size:100% ;position: absolute;top: 8.77rem;left: 0;right: 0;margin: auto;}
  19. </style>
  20. <script type="text/javascript">
  21. document.documentElement.style.fontSize = 100 * (document.documentElement.clientWidth/375) + "px";
  22. window.onresize = function(){
  23. document.documentElement.style.fontSize = 100 * (document.documentElement.clientWidth/375) + "px";
  24. }
  25. </script>
  26. </head>
  27. <body>
  28. <div id="container">
  29. <div class="top">
  30. <img class="logo" src="image/icon.png" />
  31. <span>金牛记账</span>
  32. </div>
  33. <img class="content" src="image/content.png?v=1" />
  34. <div class="button"></div>
  35. </div>
  36. </body>
  37. </html>
  38. <script type="text/javascript" src="jquery-2.1.0.js"></script>
  39. <script type="text/javascript">
  40. var uuid = null;
  41. var str=location.href; //取得整个地址栏
  42. var num=str.indexOf("?");
  43. str=str.substr(num+1); //str得到?之后的字符串
  44. var brr=str.split("&");
  45. for(var i = 0 ; i<brr.length; i++){
  46. if(brr[i].indexOf('uuid') != -1){
  47. uuid = brr[i].split('=')[1];//设备唯一标识
  48. uuid = decodeURI(uuid);
  49. }
  50. }
  51. var Button = document.getElementsByClassName("button")[0];
  52. Button.onclick = function () {
  53. clickNumber();//点击统计
  54. if(navigator.userAgent.match(/(iPhone|iPod|iPad);?/i)){
  55. window.location.href='https://itunes.apple.com/cn/app/id1398141686?mt=8';
  56. }
  57. if(navigator.userAgent.match(/android/i)){
  58. window.location.href='http://android.myapp.com/myapp/detail.htm?apkName=com.kuxuan.jinniunote';
  59. }
  60. }
  61. function clickNumber () {
  62. // 统计点击量
  63. $.ajax({
  64. type:"post",
  65. url:"/api/V2/updateStatistics",
  66. dataType:"json",
  67. data:{
  68. 'uuid':uuid
  69. },
  70. success: function (res){
  71. console.log(res)
  72. }
  73. });
  74. }
  75. </script>