12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <meta content="yes" name="apple-mobile-web-app-capable">
- <meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no">
- <title>金牛记账</title>
- <style type="text/css">
- body,html{font-size: 0.16rem;min-height: 100vh;background: #FFD60B;}
- 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;
- margin: 0;box-sizing: inherit;font-weight: normal;}
- button{outline: none;}
- a, a:visited{text-decoration: none;}
- .top{margin-top:0.24rem ;margin-bottom: 0.1rem;}
- .top .logo{width: 0.4rem;height: 0.4rem;vertical-align: middle;margin-left: 0.13rem;}
- .top span{font-size: 0.14rem;line-height: 0.2rem;color: rgba(0,0,0,0.5);vertical-align: middle;font-weight: bold;}
- .content{width: 100%;}
- .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;}
- </style>
- <script type="text/javascript">
- document.documentElement.style.fontSize = 100 * (document.documentElement.clientWidth/375) + "px";
- window.onresize = function(){
- document.documentElement.style.fontSize = 100 * (document.documentElement.clientWidth/375) + "px";
- }
- </script>
- </head>
- <body>
- <div id="container">
- <div class="top">
- <img class="logo" src="image/icon.png" />
- <span>金牛记账</span>
- </div>
- <img class="content" src="image/content.png?v=1" />
- <div class="button"></div>
- </div>
- </body>
- </html>
- <script type="text/javascript" src="jquery-2.1.0.js"></script>
- <script type="text/javascript">
- var uuid = null;
- var str=location.href; //取得整个地址栏
- var num=str.indexOf("?");
- str=str.substr(num+1); //str得到?之后的字符串
- var brr=str.split("&");
- for(var i = 0 ; i<brr.length; i++){
- if(brr[i].indexOf('uuid') != -1){
- uuid = brr[i].split('=')[1];//设备唯一标识
- uuid = decodeURI(uuid);
- }
- }
-
- var Button = document.getElementsByClassName("button")[0];
- Button.onclick = function () {
- clickNumber();//点击统计
- if(navigator.userAgent.match(/(iPhone|iPod|iPad);?/i)){
- window.location.href='https://itunes.apple.com/cn/app/id1398141686?mt=8';
- }
- if(navigator.userAgent.match(/android/i)){
- window.location.href='http://android.myapp.com/myapp/detail.htm?apkName=com.kuxuan.jinniunote';
- }
- }
- function clickNumber () {
- // 统计点击量
- $.ajax({
- type:"post",
- url:"/api/V2/updateStatistics",
- dataType:"json",
- data:{
- 'uuid':uuid
- },
- success: function (res){
- console.log(res)
- }
- });
- }
- </script>
|