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.

161 lines
7.0 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">
<!----中间---->
<div class="newswrap nwp">
<div class="news_list">
<div class="left_news newcon">
<p class="tits">
<if condition="I('type','') eq 'about' or I('type','') eq 'collaborate' or I('type','') eq 'partner' ">
<else />
<span>资讯详情</span><a href="{:U('Article/index',array('category'=>'media_gg'))}" title="更多">更多</a>
</if>
</p>
<div class="text newscontent">
<div class="text_top">
<h3>{$info.title}</h3>
<p>发布时间:{:date('Y-m-d',$info['update_time'])}</p>
</div>
<!-- 文章内容 -->
{$info.content}
<!-- 文章内容 -->
<div class="article_next">
<if condition="$data neq ''">
<switch name="Think.get.type">
<case value="collaborate" break="0"></case>
<case value="partner" break="0"></case>
<case value="about" break="0"></case>
<case value="supervise" ></case>
<default />
<ul class="prev_next">
<li><if condition="$data['datatype'] eq 1">下一篇:<else/>上一篇:</if><a href="{:U('Article/detail',array('id'=>$data['id']))}">{$data.title}</a></li>
</ul>
</switch>
</if>
</div>
</div>
</div>
<!--右侧-->
<div class="right_news newshot">
<div class="aside1">
<p class="tits"><span>礼包中心</span></p>
<div class="bag">
<div class="bag_img"><volist name="carousel" id="carousel"><a href="{$carousel.url}" title="{$carousel.title}"><img src="{:get_cover($carousel['data'],'path')}"></a></volist></div>
<ul class="bag_ul">
<volist name="gift_like" id="gl">
<li>
<a class="bag_lia" href="{:U('Gift/gift_detail',array('gid'=>base64_encode($gl['gift_id'])))}" title="{$gl.relation_game_name}" >
<img src="{:get_cover($gl['icon'],'path')}" onerror="this.src='__IMG__/empty.jpg';this.onerror=null">
</a>
<i><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 title="{$gl['giftbag_name']}">{:msubstr2($gl['giftbag_name'],0,5)}</em> <a class="lqlb" href="{:U('Gift/gift_detail',array('gid'=>base64_encode($gl['gift_id'])))}" >领取礼包</a> </li>
</volist>
</ul>
</div>
</div>
<div class="aside2">
<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 '') and ($new['ios_id'] neq '')">
<i style="height:10px;"></i>
<else/>
<i style="height:40px;"></i>
</if>-->
<if condition="$new['and_id'] neq ''">
<a href="{$new['and_dow_address']}" class="android" title="安卓下载" style="margin-left:30px;text-align: center">安卓下载</a>
</if>
<if condition="$new['ios_id'] neq ''">
<a style="margin-left:30px;text-align: center" href="{$new['ios_dow_address']}" class="ios" title="IOS下载">IOS下载</a>
</if>
</span>
</li>
</ul>
</volist>
</div>
</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);
var e = $('.newshot'),o = e.offset().top,s = e.siblings('.newcon').height();
var h = parseInt($('.aside1').height())+parseInt($('.aside2').height());
$(window).scroll(function() {
var c = $(this).scrollTop();
var t = $('.jsfb').offset().top-c;
if (h<s) {
if (c>=o) {
if (h>t) {
e.css({'position':'absolute','top':'auto','bottom':'20px','background':'#FFFFFF','z-index':1000});
} else {
e.css({'position':'fixed','top':0,'background':'#FFFFFF','z-index':1000});
}
} else {
e.removeAttr('style');
}
}
});
});
</script>
</block>