提交
This commit is contained in:
141
app/home/view/news/news.html
Normal file
141
app/home/view/news/news.html
Normal file
@@ -0,0 +1,141 @@
|
||||
{include file="public/head"}
|
||||
</head>
|
||||
<style>
|
||||
@media (max-width: 1110px) {
|
||||
.nav a {
|
||||
width: 35%;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.news_cc {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
a:link, a:visited {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.news_item {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
overflow: hidden;
|
||||
margin-top: 20px;
|
||||
padding-bottom: 10px;
|
||||
border-bottom: 1px solid #eee;
|
||||
cursor: pointer;
|
||||
display: block;
|
||||
}
|
||||
.news_intro p,.news_intro span{
|
||||
width: 100%;
|
||||
line-height: 24px !important;
|
||||
font-size: 13px !important;
|
||||
color: #888 !important;
|
||||
margin: 0 !important;
|
||||
}
|
||||
|
||||
a {
|
||||
cursor: pointer;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.news_text {
|
||||
float: left;
|
||||
width: 100%;
|
||||
}
|
||||
span{
|
||||
font-style:unset !important;
|
||||
}
|
||||
.news_ct {
|
||||
width: 100%;
|
||||
line-height: 18px;
|
||||
font-size: 15px;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.news_intro {
|
||||
width: 100%;
|
||||
line-height: 24px;
|
||||
font-size: 13px;
|
||||
color: #888;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.news_time {
|
||||
text-align: right;
|
||||
color: #888;
|
||||
line-height: 28px;
|
||||
font-size: 12px;
|
||||
}
|
||||
@media (max-width: 720px){
|
||||
.content {
|
||||
width: 100%;
|
||||
padding: 30px 0px 0px;
|
||||
background: none;
|
||||
}
|
||||
}
|
||||
.layui-laypage .layui-laypage-curr .layui-laypage-em {
|
||||
background-color: var(--main-color);
|
||||
}
|
||||
</style>
|
||||
<body style="background: #F8F8F8;display: flex; flex-direction: column; min-height: 100vh;">
|
||||
<div class="zh_content">
|
||||
{include file="public/newnav" }
|
||||
</div>
|
||||
<div class="layui-container" style="flex: 1;margin-top: 36px;">
|
||||
<div class="modular-row callout bg-grey">
|
||||
<div class="container">
|
||||
<div class="news_cc">
|
||||
{volist name="news_list" id="vo"}
|
||||
<a class="news_item" href="{:url('news/detail', ['id' => $vo.id])}">
|
||||
<div class="news_text">
|
||||
<div class="news_ct animate_tit">{:cookie('think_var') == 'en-us' ? $vo['en_title'] : $vo['title']}</div>
|
||||
<div class="news_intro">
|
||||
<?= mb_strlen($plain = strip_tags(html_entity_decode(cookie('think_var') == 'en-us' ? $vo['en_contents'] : $vo['contents']))) > 100 ? htmlspecialchars(mb_substr($plain, 0, 100, 'UTF-8')).'...' : htmlspecialchars($plain) ?>
|
||||
</div>
|
||||
<div class="news_time">{$vo.create_time|date='Y-m-d H:i:s'}</div>
|
||||
</div>
|
||||
</a>
|
||||
{/volist}
|
||||
</div>
|
||||
<div style="width: 100%; text-align: center;" id="case_page"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{include file="public/newfooter" }
|
||||
<script>
|
||||
layui.use(function(){
|
||||
var laypage = layui.laypage;
|
||||
// 自定义每页条数的选择项
|
||||
laypage.render({
|
||||
elem: 'case_page',
|
||||
count: '{$count}',
|
||||
curr: '{$page}',
|
||||
limit: '{$size}',
|
||||
prev: '<em>←</em>',
|
||||
next: '<em>→</em>',
|
||||
jump: function(obj, first){
|
||||
if(!first){
|
||||
window.location.href = '{:Url("news/index")}?page='+obj.curr;
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
$('a[href*="articles"]').parents(".search-row").addClass("hidden");
|
||||
$(document).ready(function () {
|
||||
if (window.location.href.indexOf("query") > -1) {
|
||||
$(".results").css("visibility", "inherit")
|
||||
} else {
|
||||
|
||||
}
|
||||
if ($(window).width() > 768) {
|
||||
$("a:not(a.cookieAccept)").each(function () {
|
||||
// $(this).attr('target', '_blank');
|
||||
});
|
||||
}
|
||||
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user