123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <meta content="yes" name="apple-mobile-web-app-capable">
- <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0,minimum-scale=1.0,user-scalable=0" />
- <title>小花猪</title>
- <link rel="stylesheet" type="text/css" href="../common/reset.css"/>
- <style type="text/css">
- body{
- background: #FFFFFF;
- min-height: 100vh;
- width: 100%;
- }
- .pageImg{
- width: 100%;
- }
- .gold{width:1rem;height:1rem;position: absolute;top: 2.7rem;left: 0;right: 0;margin: auto;animation: gold 0.8s infinite ease-in-out;}
- @keyframes gold {
- 0% {transform: scale(1.2);}
- 50% {transform: scale(1);}
- 100% {transform: scale(1.2);}
- }
- .hint{
- position: absolute;
- top: 6.5rem;
- left: 0;
- right: 0;
- margin: auto;
- text-align: center;
- font-size: 0.1rem;
- color: #ffffff;
- }
- </style>
- <script type="text/javascript" src="../common/jquery-2.1.0.js"></script>
- <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>
- <img class="pageImg" src="img/indexImg.png?v=1" />
- <img class="gold" src="img/gold.png"/>
- <p class="hint">投资有风险,贷款额度由个人情况而定</p>
- </body>
- </html>
- <script type="text/javascript">
- var qs = parseQueryString(window.location.href);
- var source = '';
- if(qs.source){
- source = qs.source
- }
- $(".pageImg").click(function () {
- countLandingPage({click_source:'money_phone',source:source})
- window.location.href = 'generalize.html?source=' + source;
- })
- $(".gold").click(function () {
- countLandingPage({click_source:'money_phone',source:source})
- window.location.href = 'generalize.html?source=' + source;
- })
- //埋点
- function countLandingPage (data) {
- $.ajax({
- type:'post',
- url:'/user/log/countLandingPage',
- dataType:'json',
- data:data,
- success:function (res) {
- console.log(res)
- }
- })
- }
- //获取地址栏参数
- function parseQueryString(url) {
- var urlObj = {};
- var reg = /([^?=&]+)=([^?=&]+)/g;
- url.replace(reg, ($0, $1, $2) => {
- urlObj[$1] = decodeURIComponent($2);
- })
- return urlObj;
- }
- </script>
|