Commit 9229b923 by 颜景龙

增加主页

parent 63cb98af
正在显示 包含 56 行增加0 行删除
......@@ -38,9 +38,64 @@
display: block;
width: 100%;
}
.submit-btn {
background: #EE504F;
border: #EE504F;
color: #FFF;
outline: none!important;
position: fixed;
left: 0;
right: 0;
bottom: 0;
}
.return-img {
background: #ccc;
border-radius: 2rem;
position: fixed;
z-index: 11;
height: 2rem;
width: 2rem;
margin: 0.5rem;
}
</style>
</head>
<body>
<img id="return-img" class="return-img" src="./left_white.png" />
<img class="img" src="./giftindex.jpg">
<button type="submit" id="submitBtn" class="zbtn zbtn-full zbtn-lg submit-btn">参加活动</button>
<script src="https://cdn.bootcss.com/zepto/1.2.0/zepto.min.js"></script>
<script type="text/javascript">
function getUrlParam(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
var r = window.location.search.substr(1).match(reg); //匹配目标参数
if (r != null) return unescape(r[2]); return null; //返回参数值
}
$(document).ready(function() {
$(window).ready(function(){
$('html').css({'font-size':$(window).width()/375*16});
});
$(window).resize(function(){
$('html').css({'font-size':$(window).width()/375*16});
});
$("#submitBtn").on('click', function(e){
var id = getUrlParam('id');
var customerUserId = getUrlParam('customerUserId');
if (id && customerUserId) {
location.href = './gift.html?id=' + id + "&customerUserId=" + customerUserId;
}
});
$("#return-img").on('click', function(e){
location.href="ydl://goback";
});
});
</script>
</body>
</html>
\ No newline at end of file
此文件类型无法预览
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此消息的编辑!
注册登录 后发表评论