mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-09 11:32:48 +08:00
完成资讯主题
This commit is contained in:
96
view/index/index/articles_index.html
Normal file
96
view/index/index/articles_index.html
Normal file
@@ -0,0 +1,96 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{:get_system_config('site_name')}</title>
|
||||
{include file='common/_articles_require'/}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="layui-container main-container">
|
||||
<div class="layui-row layui-col-space4">
|
||||
{include file='common/_articles_left'/}
|
||||
<div class="layui-col-md7">
|
||||
{eq name='$Request.param.category_id|default="0"' value='0'}
|
||||
|
||||
<div>
|
||||
<div class="layui-carousel" id="banner">
|
||||
<div carousel-item>
|
||||
{volist name='list_nav_slide' id='nav'}
|
||||
|
||||
<a href="{$nav.value|default='javascript:;'}" target="{$nav.target}">
|
||||
<img src="{$nav.img}">
|
||||
<div class="panel">
|
||||
<p class="title">{$nav.title}</p>
|
||||
<p>{$nav.desc}</p>
|
||||
</div>
|
||||
</a>
|
||||
{/volist}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/eq}
|
||||
|
||||
{notempty name='$sub_category'}
|
||||
<div class="tab-list">
|
||||
<a href="{:url('Index/index',['category_id'=>$Request.param.category_id])}" {eq name='$Request.param.sub_category_id|default=0' value='0'} class="current" {/eq}>全部</a>
|
||||
{volist name='$sub_category' id='category'}
|
||||
|
||||
<a href="{:url('Index/index',['category_id'=>$Request.param.category_id,'sub_category_id'=>$category.id])}" {eq name='$Request.param.sub_category_id|default=0' value='$category.id'} class="current" {else/}{/eq}>{$category.title}</a>
|
||||
{/volist}
|
||||
</div>
|
||||
{/notempty}
|
||||
<div class="post-container">
|
||||
<div class="post-list">
|
||||
{volist name='list_post' id='post'}
|
||||
|
||||
<a href="{:url('Post/read',['id'=>$post.id])}" class="post-item" onmouseover="$(this).find('.poster').addClass('layui-anim-scale')" onmouseout="$(this).find('.poster').removeClass('layui-anim-scale')" >
|
||||
{notempty name='$post->getData("poster")'}
|
||||
|
||||
<div class="poster layui-anim" style="background-image: url('{$post.poster}');"></div>
|
||||
{/notempty}
|
||||
|
||||
<div class="info">
|
||||
<div class="title">{$post.title}</div>
|
||||
<div class="plus-info">
|
||||
<span>{$post.hits}访问</span>
|
||||
<span>{$post.comment_count}评论</span>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</a>
|
||||
{/volist}
|
||||
{empty name='list_post'}
|
||||
|
||||
<img class="nodata" src="/static/images/nodata.png" alt="">
|
||||
{/empty}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{include file='common/_articles_right'/}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
|
||||
layui.use('carousel', function () {
|
||||
var carousel = layui.carousel;
|
||||
//建造实例
|
||||
carousel.render({
|
||||
elem: '#banner'
|
||||
, width: '100%' //设置容器宽度
|
||||
, arrow: 'always' //始终显示箭头
|
||||
//,anim: 'updown' //切换动画方式
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user