|
|
|
@ -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>
|
|
|
|
|