Commit ee152b84 by doszhang

dos

parent a1ee30a4
...@@ -147,6 +147,8 @@ $(document).ready(function () { ...@@ -147,6 +147,8 @@ $(document).ready(function () {
$('.rule-page .btn-back').on('click', hideRule); $('.rule-page .btn-back').on('click', hideRule);
//滚动条 //滚动条
$('.rule-block').on('scroll', ruleScroll); $('.rule-block').on('scroll', ruleScroll);
//关闭抽奖
$('.prize-page .btn-close').on('click', closePrize);
//解决移动端:active伪类失效 //解决移动端:active伪类失效
document.body.addEventListener('touchstart', function () {}, false); document.body.addEventListener('touchstart', function () {}, false);
...@@ -190,6 +192,9 @@ $(document).ready(function () { ...@@ -190,6 +192,9 @@ $(document).ready(function () {
}); });
}); });
function closePrize() {
$('.prize-page').hide();
}
function changeBtnBg(event) { function changeBtnBg(event) {
const pic = event.data.pic; const pic = event.data.pic;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment