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.

178 lines
7.3 KiB
HTML

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<extend name="Public/base" />
<block name="body" >
<link rel="stylesheet" type="text/css" href="__CSS__/news.css">
<!--内部切换JS结束-->
<!--中间-->
<div class="newswrap">
<div class="news_list">
<div class="left_news">
<div id="tab1">
<div class="menu">
<ul>
<li id="one1" <if condition="$Think.get.category eq media_gg"> class="off" </if>>
<p class="tits">
<span>
<a href="{:U('Article/index',array('category'=>'media_gg'))}">新闻公告</a>
</span>
</p>
</li>
<li id="one2" <if condition="$Think.get.category eq media_zx"> class="off" </if> > <p class="tits"><span><a href="{:U('Article/index',array('category'=>'media_zx'))}">游戏资讯</a></span></p></li>
<li id="one3" <if condition="$Think.get.category eq media_activity"> class="off" </if>> <p class="tits"><span><a href="{:U('Article/index',array('category'=>'media_activity'))}">火爆活动</a></span></p></li>
</ul>
</div>
<ul class="ul_news">
<volist name="list" id="article">
<li> <a href="{:U('Article/detail',array('id'=>$article['id']))}" >
<img title="{$article.title}" src="{:get_cover($article['cover_id'],'path')}" onerror="this.src='__IMG__/empty.jpg';this.onerror=null">
</a>
<div class="news_div">
<h3><a href="{:U('Article/detail',array('id'=>$article['id']))}" title="{$article.title}">{$article.title}</a></h3>
<p title="{$article['description']}"><a href="{:U('Article/detail',array('id'=>$article['id']))}" ></a>{:msubstr2($article['description'],0,100)}</p>
<em>更新时间:{:date('Y-m-d',$article['update_time'])}</em> </div>
</li>
</volist>
</ul>
<div class="pages gifts-list-pages" style="<empty name='_page'>border:none;</empty>">
<div>
<div class="page pagepp">
{$_page|default=''}
</div>
<span class="infoTextAndGoPageBtnWrap">
<span class="totalText"></span>
</span>
</div>
<div style="clear:both;">
</div>
</div>
</div>
</div>
<!--右侧-->
<div class="right_news">
<p class="tits"><span>礼包中心</span></p>
<div class="bag">
<div class="bag_img">
<volist name="carousel" id="carousel">
<a target="{$carousel.target}" href="{$carousel.url}" title="{$carousel.title}">
<img src="{:get_cover($carousel['data'],'path')}" onerror="this.src='__IMG__/empty.jpg';this.onerror=null">
</a>
</volist>
</div>
<ul class="bag_ul">
<volist name="gift_like" id="gl">
<li>
<a class="a_seat z_clearfix" href="{:U('Gift/gift_detail',array('gid'=>base64_encode($gl['gift_id'])))}" title="{$gl.relation_game_name}" >
<div class="seat z_clearfix">
<span class="img-font "><span class="img-font-cell "><div class="img-font-text ">{:C('SET_POSITION_IMG')}</div></span></span>
</div>
<img src="{:get_cover($gl['icon'],'path')}" onerror="this.src='__IMG__/empty.jpg';this.onerror=null">
</a>
<i class="z_clearfix">
<a href="{:U('Gift/gift_detail',array('gid'=>base64_encode($gl['gift_id'])))}" title="{$gl.relation_game_name}" >{:msubstr2($gl['relation_game_name'],0,4)}</a>
</i>
<em class="z_clearfix" title="{$gl['giftbag_name']}">{:msubstr2($gl['giftbag_name'],0,5)}</em>
<a class="lqlb z_clearfix" href="{:U('Gift/gift_detail',array('gid'=>base64_encode($gl['gift_id'])))}" >领取</a> </li>
</volist>
</ul>
</div>
<p class="tits"><span>热门手游</span></p>
<div class="sideMenu">
<div class="pmtit">
<i style="width:92px;">游戏名称</i>
<i style="width:92px;">下载数</i>
<i style="width:92px;">题材</i>
</div>
<volist name="hot" id="new">
<h3 class="on">
<i style="width:92px;">{:msubstr2($new['relation_game_name'],0,5)}</i>
<i style="width:92px;">{$new.dow_num}</i>
<i style="width:92px;">{$new.game_type_name}</i>
</h3>
<ul style="display: block;">
<li><a href="{:U('Game/game_detail',array('id'=>$new['id']))}" title="{$new.relation_game_name}">
<img src="{:get_cover($new['icon'],'path')}" onerror="this.src='__IMG__/empty.jpg';this.onerror=null"></a>
<span style="height:66px;padding-top:10px;" class="sideMenu_span">
<if condition="$new['and_id'] neq ''">
<a href="{$new['and_dow_address']}" class="android" title="安卓下载" style="text-align: center">安卓下载</a>
</if>
<if condition="$new['ios_id'] neq ''">
<a style="text-align: center" href="{$new['ios_dow_address']}" class="ios" title="IOS下载">IOS下载</a>
</if>
</span>
</li>
</ul>
</volist>
</div>
</div>
</div>
</div>
<!--中间-->
<!--悬浮结束-->
<script type="text/javascript" src="__JS__/jquery-1.11.2.min.js"></script>
<script type="text/javascript" src="__JS__/jquery.SuperSlide.2.1.1.js"></script>
<script src="__STATIC__/layer/layer.js" type="text/javascript"></script>
<script src="__STATIC__/layer/extend/layer.ext.js" type="text/javascript"></script>
<script src="__STATIC__/thinkbox/jquery.thinkbox.js"></script>
<script type="text/javascript">
//添加收藏夹
function addBookmark(url,title){
url = url || window.location.href;;
title = title || document.title;
if (window.sidebar) {
window.sidebar.addPanel(title, url,"");
} else if( document.all ) {
window.external.AddFavorite( url, title);
} else {
alert('加入收藏失败,请使用 Ctrl+D 进行添加');
return true;
}
}
$(".collect").click(function(){addBookmark();})
$(function(){
setTimeout(function(){
jQuery(".sideMenu").slide({
titCell:"h3", //鼠标触发对象
targetCell:"ul", //与titCell一一对应第n个titCell控制第n个targetCell的显示隐藏
effect:"slideDown", //targetCell下拉效果
delayTime:200 , //效果时间
triggerTime:150, //鼠标延迟触发时间默认150
defaultPlay:true,//默认是否执行效果默认true
returnDefault:false //鼠标从.sideMen移走后返回默认状态默认false
});
},500);
});
$('.ios').click(function(){
var href = $(this).attr('href');
if(href == ''){
layer.msg('暂无安装包可供下载');
return false;
}
});
$('.android').click(function(){
var href = $(this).attr('href');
if(href == ''){
layer.msg('暂无安装包可供下载');
return false;
}
});
</script>
</block>