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.

126 lines
5.5 KiB
HTML

<extend name="Public/bases" />
<block name="css">
<link href="__CSS__/{:C('DEFAULT_THEME')}/game.css" rel="stylesheet" >
</block>
<block name="body">
<div class="trunk-box detail">
<div class="bg"><span class="table font"><span class="table-cell">----游戏</span></span><notempty name="data.game_bg_img"><img src="{:get_cover($data['game_bg_img'],'path')}"></notempty></div>
<div class="wrap">
<div class="content">
<div class="tab clearfix">
<a href="javascript:;" class="tab-item active">游戏专区</a>
<a href="{:U('Game/open',array('account'=>I('account'),'name'=>I('name'),'source'=>I('source')))}" class="tab-item">开服信息</a>
<a href="{:U('Game/gift',array('account'=>I('account'),'name'=>I('name'),'source'=>I('source')))}" class="tab-item">礼包信息</a>
</div>
<div class="panal">
<div class="base clearfix game-base">
<div class="item ">
<div class="pic"><span class="font table"><span class="table-cell">----游戏</span></span><notempty name="data.game_icon"><img src="{:get_cover($data['game_icon'],'path')}"></notempty></div>
<div class="but clearfix">
<div class="qrcode-area">
<notempty name="data.download"><img src="{:U('Base/qrcode',array('url'=>base64_encode(base64_encode($data['download']))))}">
<p>扫一扫快速下载</p></notempty>
</div>
<div class="butn-area">
<notempty name="data.download1">
<if condition="$data['game_source'] eq 1">
<a href="{$data.download1}" class="butn download-butn download-and"><img src="__IMG__/icon_android.png"><span>安卓下载</span></a>
<else/>
<a href="javascript:;" date-id="{$data[ids][0]}" date-value="{$data.download1}" date-promote="{$data.promote_id}" class="butn goto download-butn download-and"><img src="__IMG__/icon_android.png"><span>安卓下载</span></a>
</if>
<else />
<a href="javascript:;" class="butn download-butn download-and disabled"><img src="__IMG__/icon_android.png"><span>安卓下载</span></a>
</notempty>
<notempty name="data.download2">
<if condition="$data['game_source'] eq 1">
<a href="{$data.download2}" class="butn download-butn download-ios"><img src="__IMG__/icon_ios.png"><span>苹果下载</span></a>
<else/>
<a href="javascript:;" date-id="{$data[ids][1]}" date-value="{$data.download2}" date-promote="{$data.promote_id}" class="butn goto download-butn download-ios"><img src="__IMG__/icon_ios.png"><span>苹果下载</span></a>
</if>
<else />
<a href="javascript:;" class="butn download-butn download-ios disabled"><img src="__IMG__/icon_ios.png"><span>苹果下载</span></a>
</notempty>
<notempty name="data.pc_url">
<a href="{$data.pc_url}" target="_blank" class="butn qq-butn">玩家Q群</a>
<else />
<a href="javascript:;" target="_blank" class="butn qq-butn disabled">玩家Q群</a>
</notempty>
</div>
</div>
<div class="txt">
<h3 class="name">{:str_replace(array('(安卓版)','(苹果版)'),'',$data['game_name'])}</h3>
<div class="info">
<span class="table">
<span class="table-row">
<span class="table-cell">状态:{$data.open_type}</span>
<span class="table-cell">类型:{:get_game_type_by_id($data['game_type_id'])}</span>
</span>
<span class="table-row">
<span class="table-cell">下载:{$data.download_number}</span>
<span class="table-cell">版本:{$data.version}</span></span>
</span>
</div>
</div>
</div>
</div>
<div class="screenshot">
<div class="screenshot-content">
<div class="picScroll-left">
<if condition="count(explode(',',$data['screenshot'])) gt 5">
<a class="next"><span></span></a>
<a class="prev"><span></span></a>
</if>
<div class="bd">
<ul class="picList" >
<volist name=":explode(',',$data['screenshot'])" id="vo">
<li>
<div class="pic"><span class="font table"><span class="table-cell">----游戏</span></span><notempty name="vo"><img src="{:get_cover($vo,'path')}"></notempty></div>
</li>
</volist>
</ul>
</div>
</div>
</div>
</div>
<div class="desciption">
<div class="list-title"><i></i><span>简介</span></div>
<div class="desciption-content">
{$data.description}
</div>
</div>
</div>
</div>
</div>
</div>
</block>
<block name="script">
<script src="__JS__/jquery.SuperSlide.2.1.1.js"></script>
<script src="__STATIC__/layer/layer.js"></script>
<empty name="data">
<script>layer.msg('未查到此游戏数据');setTimeout(function(){window.location.href="{:U('Game/index',array('account'=>I('account')))}";},1500);</script>
</empty>
<script>
$(function() {
jQuery(".picScroll-left").slide({mainCell:".bd ul",autoPage:true,pnLoop:false,effect:"left",vis:5,trigger:"click"});
$('.goto').click(function(){
var url = $(this).attr("date-value");
if(url == '')return false;
var game_id = $(this).attr("date-id");
var promote_id = $(this).attr("date-promote");
$.ajax({
type:'GET',
dataType:'json',
url:'{:U("Game/setdownload")}',
data:{game_id:game_id,promote_id:promote_id},
success:function(data) {
},
});
window.open(url);
})
});
</script>
</block>