文件

139 行
4.5 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/Templatetwo/css/news.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Webinfo/Templatetwo/css/public.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;
color: #000;
}
.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;
}
.fixed{
position: fixed;
bottom: 0;
}
</style>
</head>
<body>
<div class="bodys" id='Template'>
<!--头部-->
<div class="header">
<div class="headerbox">
<div style="display: flex;align-items: center;">
<img class="logo" src="{$webinfo['logo']['weblogo']}"/>
<a href='{:U("Main/Index/index")}' class="headeri">首页</a>
<a href='{:U("Main/Product/index")}' class="headeri">产品中心</a>
<a href='javascript:;' class="headeri headeric">新闻动态</a>
<a href='{:U("Main/About/index")}' class="headeri">关于我们</a>
<a href='{:U("Main/Contact/index")}' class="headeri">联系我们</a>
</div>
<div class="login">商家登录</div>
</div>
</div>
<!--内容-->
<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>
<!--底部-->
<include file="Templatetwo/footer" />
</div>
</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');
}
}
var url = window.location.protocol+"//"+window.location.host;
var a = url+"/index.php/Retail/login/index.html?code=1";
$(".login").click(function (){
window.location.href = a;
});
</script>
</html>