|
|
|
@ -19,7 +19,7 @@
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="__CSS__/giftbag.css">
|
|
|
|
|
<title>{$game['relation_game_name']}</title>
|
|
|
|
|
</head>
|
|
|
|
|
<body onclick="checkSafari()">
|
|
|
|
|
<body class="dialog-open" onclick="checkSafari()">
|
|
|
|
|
<style>
|
|
|
|
|
.layui-layer-btn0 {
|
|
|
|
|
font-size: 18px;
|
|
|
|
@ -1449,9 +1449,7 @@ var PhoneObj = {
|
|
|
|
|
var giftbags = []
|
|
|
|
|
$(".giftBag_mode").click(function(){
|
|
|
|
|
$(this).hide()
|
|
|
|
|
document.body.style.overflow = 'auto';
|
|
|
|
|
document.html.style.overflow = 'auto';
|
|
|
|
|
$(".home").style.overflow = 'auto';
|
|
|
|
|
document.body.classList.remove('dialog-open');
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$(".giftBag").click(function(){
|
|
|
|
@ -1486,9 +1484,16 @@ var PhoneObj = {
|
|
|
|
|
if (giftbags[key].get_status == 1) {
|
|
|
|
|
$('.giftSecond .getGift-box').find('.get-novice').html('已领取')
|
|
|
|
|
$('.giftSecond .getGift-box').find('.get-novice').addClass('has-get')
|
|
|
|
|
$('.giftSecond .getGift-box').find('.novice-value').html(giftbags[key].novice)
|
|
|
|
|
$(".getGift-activation").show();
|
|
|
|
|
$(".getGift-second").css({"height" : "1.26rem"});
|
|
|
|
|
$(".getGift-secondInfo").css({"height" : "1.93rem"})
|
|
|
|
|
} else {
|
|
|
|
|
$('.giftSecond .getGift-box').find('.get-novice').html('领取')
|
|
|
|
|
$('.giftSecond .getGift-box').find('.get-novice').removeClass('has-get')
|
|
|
|
|
$(".getGift-activation").hide();
|
|
|
|
|
$(".getGift-second").css({"height" : "0.86rem"});
|
|
|
|
|
$(".getGift-secondInfo").css({"height" : "2.33rem"})
|
|
|
|
|
}
|
|
|
|
|
$('.giftSecond .getGift-box').find('.get-novice').attr('data-gift-id', giftbags[key].id)
|
|
|
|
|
$('.giftSecond .getGift-box').find('.giftbag-name').html(giftbags[key].giftbag_name)
|
|
|
|
@ -1528,7 +1533,8 @@ var PhoneObj = {
|
|
|
|
|
var novice = getNovice(giftId)
|
|
|
|
|
if (novice !== '') {
|
|
|
|
|
$('.giftSecond .getGift-box').find('.novice-value').html(novice)
|
|
|
|
|
$(this).addClass('.has-get')
|
|
|
|
|
$(this).addClass('has-get')
|
|
|
|
|
$(this).html('已领取')
|
|
|
|
|
$(".getGift-activation").show();
|
|
|
|
|
$(".getGift-second").css({"height" : "1.26rem"});
|
|
|
|
|
$(".getGift-secondInfo").css({"height" : "1.93rem"})
|
|
|
|
|