You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
2.2 KiB
HTML
59 lines
2.2 KiB
HTML
2 years ago
|
<extend name="Public/bases" />
|
||
|
<block name="body" >
|
||
|
|
||
|
<!--第一部分 end-->
|
||
|
<!--列表 start-->
|
||
|
<div class="list gift" id="list" ajaxrow="8" currentpage="{$currentpage}" maxpage="{$total}">
|
||
|
<volist name="gift" id="vo">
|
||
|
<div class="lists fade">
|
||
|
<div class="close">关闭</div>
|
||
|
<div class="top">
|
||
|
<img src="{$game.game_img|get_cover='path'}">
|
||
|
<div class="tm" style="display: none;">
|
||
|
<div class="rzs" style="margin-top: 50px;">已入驻 {$group.in_num} 人</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="bottom"> <img src="{$game.game_icon|get_cover='path'}" class="bImg">
|
||
|
<div class="btit">
|
||
|
<h3>{$vo.gift_name}</h3>
|
||
|
</div>
|
||
|
<p><span>礼包数量:{:get_site_gift_num($vo['id'])} </span>
|
||
|
</p>
|
||
|
<p><span>已领:{:get_site_gift_record_num($vo['id'])}</span></p>
|
||
|
<ul class="dbutton">
|
||
|
<li>
|
||
|
<if condition="get_site_gift_num($vo['id']) gt 0">
|
||
|
<a target="_blank" href="{:U('detail?id='.$vo['id'])}" class="libao">领取礼包<em>{:get_site_gift_num($vo['id'])-get_site_gift_record_num($vo['id'])}</em></a>
|
||
|
<else />
|
||
|
<a target="_blank" href="#" class="libao over">已结束</a></if>
|
||
|
</li>
|
||
|
<empty name="game.game_id">
|
||
|
<li><a href="{$game.game_dow_url}" class="download" target="_blank">下载游戏</a></li>
|
||
|
<else />
|
||
|
<li><a href="{:U('Down/down_file',['game_id'=>$game['game_id'],'promote_id'=>$game['promote_id']])}" class="download" target="_blank">下载游戏</a></li>
|
||
|
</empty>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</div>
|
||
|
</volist>
|
||
|
|
||
|
<!--列表 end-->
|
||
|
<empty name="gift">
|
||
|
<div class="loading"><a href="javascript:;" style="text-decoration: none;">暂无礼包</a></div>
|
||
|
</empty>
|
||
|
</div>
|
||
|
|
||
|
</block>
|
||
|
<block name="script">
|
||
|
<script>
|
||
|
$('.download').click(function(e){
|
||
|
e.preventDefault()
|
||
|
if($(this).attr('href') ==''){
|
||
|
layer.msg('暂无下载内容');
|
||
|
}else{
|
||
|
window.open($(this).attr('href'));
|
||
|
}
|
||
|
});
|
||
|
</script>
|
||
|
</block>
|