master
ELF 5 years ago
parent 303e471d0b
commit 71e736b27d

@ -1445,15 +1445,13 @@ var PhoneObj = {
<script type="text/javascript" src="http://www.jq22.com/demo/clipboard.js-master201703170013/dist/clipboard.min.js"></script>
<script>
$(function(){
var curUserId = 0;
curUserId = Cookies.get('landing_login_user') == undefined ? 0 : Cookies.get('landing_login_user');
var isLogin = (curUserId == 0 ? false : true);
var gameId = parseInt("{$game.id}");
var giftbags = []
$(".giftBag_mode").click(function(){
$(this).hide()
document.body.style.overflow = 'auto';
$(this).style.overflow = 'auto';
document.html.style.overflow = 'auto';
$(".home").style.overflow = 'auto';
});
$(".giftBag").click(function(){
@ -1521,7 +1519,7 @@ var PhoneObj = {
if ($(this).hasClass('has-get')) {
return layer.msg('您已经领取过该礼包');
}
if (!isLogin) {
if (!isLogin()) {
layer.msg('请先登录');
goLogin()
return
@ -1622,5 +1620,11 @@ var PhoneObj = {
})
return novice
}
function isLogin() {
var curUserId = 0;
curUserId = Cookies.get('landing_login_user') == undefined ? 0 : Cookies.get('landing_login_user');
return (curUserId == 0 ? false : true);
}
})
</script>

@ -1,4 +1,4 @@
body{
html,body{
overflow: hidden;
}
.mode{
@ -19,7 +19,6 @@ body{
left: 0;
font-size: 0.2rem;
z-index: 1000;
overflow: hidden;
}
.giftBag_mode>div{
display: flex;

@ -2,6 +2,7 @@
.home{
width: 100%;
font-family:PingFang SC;
overflow: hidden;
}
.home-box{
padding: 0.5rem 0.37rem 0 0.31rem;

Loading…
Cancel
Save