|
|
|
@ -374,7 +374,7 @@
|
|
|
|
|
<img src="{$game['icon']}" alt="">
|
|
|
|
|
<div class="game-right">
|
|
|
|
|
<div class="title">{$game['relation_game_name']}</div>
|
|
|
|
|
<div class="number">礼包总数 <span class="giftbag-count">0</span></div>
|
|
|
|
|
<!-- <div class="number">礼包总数 <span class="giftbag-count">0</span></div> -->
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="getGift-info">
|
|
|
|
@ -391,8 +391,8 @@
|
|
|
|
|
<div class="getGift-second">
|
|
|
|
|
<div class="getGift-bag">
|
|
|
|
|
<div class="second-left">
|
|
|
|
|
<div class="title" class="giftbag-name"></div>
|
|
|
|
|
<div class="number">剩余 <span class="novice-count"></span>个 </div>
|
|
|
|
|
<div class="title giftbag-name"></div>
|
|
|
|
|
<!-- <div class="number">剩余 <span class="novice-count"></span>个 </div> -->
|
|
|
|
|
</div>
|
|
|
|
|
<div class="btn get-novice" data-gift-id="">领取</div>
|
|
|
|
|
</div>
|
|
|
|
@ -1507,8 +1507,8 @@ function getCurUserId() {
|
|
|
|
|
}
|
|
|
|
|
$('.giftSecond .getGift-box').find('.get-novice').attr('data-gift-id', giftbags[key].id)
|
|
|
|
|
$('.giftSecond .getGift-box').find('.giftbag-name').html(giftbags[key].giftbag_name)
|
|
|
|
|
$('.giftSecond .getGift-box').find('.novice-count').html(giftbags[key].novice_num)
|
|
|
|
|
// $('.giftSecond .getGift-box').find('.novice-value').html()
|
|
|
|
|
// $('.giftSecond .getGift-box').find('.novice-count').html(giftbags[key].novice_num)
|
|
|
|
|
|
|
|
|
|
$('.giftSecond .getGift-box').find('.useful-date').html(giftbags[key].useful_date)
|
|
|
|
|
$('.giftSecond .getGift-box').find('.desribe').html(giftbags[key].desribe)
|
|
|
|
|
$('.giftSecond .getGift-box').find('.digest').html(giftbags[key].digest)
|
|
|
|
@ -1519,17 +1519,6 @@ function getCurUserId() {
|
|
|
|
|
$(".giftSecond").show();
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
/* $(".getGift-infoBox .btn").click(function(){
|
|
|
|
|
$(this).html('已领取');
|
|
|
|
|
$(this).css({
|
|
|
|
|
"background":"rgba(242,242,244,1)",
|
|
|
|
|
"color":"rgba(169,169,169,1)",
|
|
|
|
|
"border": "0"
|
|
|
|
|
});
|
|
|
|
|
$(".giftStep").hide();
|
|
|
|
|
$(".giftSecond").show();
|
|
|
|
|
}); */
|
|
|
|
|
|
|
|
|
|
$(".getGift-second .btn").click(function() {
|
|
|
|
|
if ($(this).hasClass('has-get')) {
|
|
|
|
|
return layer.msg('您已经领取过该礼包');
|
|
|
|
@ -1581,7 +1570,7 @@ function getCurUserId() {
|
|
|
|
|
$('.giftStep .getGift-box').hide()
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
$('.giftbag-count').html(giftbags.length)
|
|
|
|
|
// $('.giftbag-count').html(giftbags.length)
|
|
|
|
|
var html = ''
|
|
|
|
|
for (var key in giftbags) {
|
|
|
|
|
var item = giftbags[key];
|
|
|
|
|