文件

123 行
3.8 KiB
HTML
可执行文件

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>新闻详情</title>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Webinfo/Templateone/css/news.css">
<link rel="stylesheet" href="__PUBLIC__/Webinfo/Templateone/css/css-comment.css">
<link rel="stylesheet" href="__PUBLIC__/Webinfo/Templateone/css/publicPart.css">
<link href="{$webinfo['logo']['icourl']}" type="image/x-icon" rel="shortcut icon">
<style>
*{
margin: 0;
padding: 0;
}
li{
list-style: none;
}
a{
text-decoration: none;
}
.bodys{
min-width: 1200px;
height: 100vh;
overflow-y: auto;
}
.text{
width: 80%;
margin: auto;
padding: 50px 0;
/*min-height: 800px;*/
}
.Currents{
margin: 50px 0;
color: #000;
}
.title{
font-size: 26px;
font-weight: bold;
}
.time{
margin: 50px 0 20px;
}
.fanye{
width: 100%;
color: #000;
font-size: 22px;
margin: 40px 0;
}
.fan-top{
height: 40px;
}
.text{
max-width:1200px;
margin: 0px auto;
}
</style>
</head>
<body>
<div class="bodys" id='Template'>
<!--头部-->
<template-header :header="header"></template-header>
<!--内容-->
<div class="text">
<div class="Currents">
<a href="{:U('Main/Index/index')}">首页</a>
<span> > </span>
<a href="{:U('Main/News/index')}">新闻中心</a>
<span> > </span>
<span style="color: orange;">正文</span>
</div>
<div class="title">{$list['title']}</div>
<div class="time">
<span>日期:</span>
<span>{$list['time']}</span>
</div>
<div class="content">{$list['content']}</div>
<div class="fanye">
<div class="fan-top">
<span>上一篇:</span>
<if condition="$gt['title']">
<a href="{:U('News/newsdetails')}?id={$gt['id']}"><span>{$gt['title']}</span></a>
<else />
<span>没有更多了</span>
</if>
</div>
<div class="fan-bottom">
<span>下一篇:</span>
<if condition="$lt['title']">
<a href="{:U('News/newsdetails')}?id={$lt['id']}"><span>{$lt['title']}</span></a>
<else />
<span>没有更多了</span>
</if>
</div>
</div>
</div>
<!--底部-->
<template-footer :footer="footer" :adminlogo="adminlogo"></template-footer>
<!--侧栏-->
<!--<template-sidebar :sidebar="sidebar"></template-sidebar>-->
</div>
<!--侧栏-->
<include file="Common/onlinesCS"/>
<include file="Common/common"/>
</body>
<script type="text/javascript" src="__PUBLIC__/Webinfo/Templateone/js/vue2.5.16.js"></script>
<script src="__PUBLIC__/Webinfo/Templateone/js/data.js"></script>
<script src="__PUBLIC__/Webinfo/Templateone/js/public.js"></script>
<script src="__PUBLIC__/jquery/js/jquery-3.2.1.min.js"></script>
<script>
window.onload = function(){
var wh = $(window).height();
var th = $(".text").height();
if (wh > th){
$('.footer').addClass('fixed');
}
}
</script>
</html>