mirror of
https://gitee.com/ulthon/layui-ul.git
synced 2026-07-01 10:32:49 +08:00
完成文档分类
This commit is contained in:
@@ -143,9 +143,11 @@
|
||||
<div class="layui-form-label">分类</div>
|
||||
<div class="layui-input-block">
|
||||
<select name="category_id" lay-verify="">
|
||||
<option value="0">请选择一个城市</option>
|
||||
|
||||
</select>
|
||||
<option value="0">请选择一个分类</option>
|
||||
{volist name='list_category' id='vo'}
|
||||
<option value="{$vo.id}">{$vo.title}</option>
|
||||
{/volist}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
@@ -154,9 +156,9 @@
|
||||
<input type="text" name="jump_to_url" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="layui-form-item">
|
||||
<div class="layui-form-label">跳转链接状态</div>
|
||||
<div class="layui-input-block">
|
||||
|
||||
@@ -140,7 +140,17 @@
|
||||
<input type="radio" name="status" value="0" title="不发布">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<div class="layui-form-label">分类</div>
|
||||
<div class="layui-input-block">
|
||||
<select name="category_id" lay-verify="">
|
||||
<option value="0">请选择一个分类</option>
|
||||
{volist name='list_category' id='vo'}
|
||||
<option value="{$vo.id}">{$vo.title}</option>
|
||||
{/volist}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<div class="layui-form-label">跳转链接</div>
|
||||
<div class="layui-input-block">
|
||||
@@ -315,6 +325,7 @@
|
||||
is_top: '{$post->getData("is_top")}',
|
||||
jump_to_url_status: '{$post->getData("jump_to_url_status")}',
|
||||
tpl_name: '{$post->getData("tpl_name")}',
|
||||
category_id: '{$post->getData("category_id")}',
|
||||
})
|
||||
|
||||
form.on('submit(save)', function (data) {
|
||||
|
||||
@@ -40,9 +40,9 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th >名称</th>
|
||||
<th>名称</th>
|
||||
<th>封面</th>
|
||||
<th >简介</th>
|
||||
<th>简介</th>
|
||||
<th>排序</th>
|
||||
<th>状态</th>
|
||||
<th>分类</th>
|
||||
@@ -62,9 +62,7 @@
|
||||
<td>{$vo.sort}</td>
|
||||
<td>{$vo.status_name}</td>
|
||||
<td>
|
||||
{volist name='vo.categorys_list' id='category'}
|
||||
<p>{:str_repeat('|--',$category.level)}{$category.title}</p>
|
||||
{/volist}
|
||||
{$vo.category.title|default="未分类"}
|
||||
</td>
|
||||
<td>
|
||||
{volist name='vo.tags_list' id='tag'}
|
||||
|
||||
@@ -30,15 +30,25 @@
|
||||
<div class="layui-row layui-col-space6 " style="margin-top: 15px;">
|
||||
<div class="layui-col-md3">
|
||||
<div class="ul-nav-tree ul-padding-md">
|
||||
{volist name='list_post' id='post'}
|
||||
<a href="{:url('Index/index',['post_id'=>$post.id])}" class="ul-nav-tree-item">
|
||||
<div class="ul-nav-tree-item-title">
|
||||
{$post.title}
|
||||
|
||||
{volist name='list_post' id='category'}
|
||||
<div class="ul-nav-tree-group">
|
||||
<div class="ul-nav-tree-group-title">
|
||||
{$category.title}
|
||||
</div>
|
||||
<div class="ul-nav-tree-item-desc">
|
||||
{$post.desc}
|
||||
<div class="ul-nav-tree-group-main">
|
||||
{volist name='category.post' id='post'}
|
||||
<a href="{:url('Index/index',['post_id'=>$post.id,'category_id'=>$post.category_id])}" class="ul-nav-tree-item">
|
||||
<div class="ul-nav-tree-item-title">
|
||||
{$post.title}
|
||||
</div>
|
||||
<div class="ul-nav-tree-item-desc">
|
||||
{$post.desc}
|
||||
</div>
|
||||
</a>
|
||||
{/volist}
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
{/volist}
|
||||
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user