diff --git a/app/index/controller/Index.php b/app/index/controller/Index.php index fea1b89..5af428e 100644 --- a/app/index/controller/Index.php +++ b/app/index/controller/Index.php @@ -3,6 +3,7 @@ namespace app\index\controller; use app\model\Category; +use app\model\Nav; use app\model\Post; use app\model\PostCategory; use think\Request; @@ -21,6 +22,13 @@ class Index extends Common return $this->fetch(); } + public function __documentsIndex() + { + $list_index_documents_nav = Nav::where('type',9)->select(); + + $this->assign('list_index_documents_nav',$list_index_documents_nav); + } + public function __articlesIndex() { diff --git a/public/static/css/index.documents.css b/public/static/css/index.documents.css new file mode 100644 index 0000000..8b2c56b --- /dev/null +++ b/public/static/css/index.documents.css @@ -0,0 +1,29 @@ +html, +body { + background-color: #f5f5f5; +} + +.program-item { + margin: 10px 5px; + padding-bottom: 5px; + +} + +.program-item .desc { + + display: -webkit-box; + overflow: hidden; + -webkit-box-orient: vertical; + -webkit-line-clamp: 4; + height: 96px; + +} + +.program-item .options { + text-align: right; color: #999;font-size: 14px;margin-top: 10px; + +} + +.program-item .layui-icon{ + font-size: 14px; +} \ No newline at end of file diff --git a/view/admin/common/left_system.html b/view/admin/common/left_system.html index 1107f31..2750529 100644 --- a/view/admin/common/left_system.html +++ b/view/admin/common/left_system.html @@ -52,6 +52,21 @@ {/if} + {if get_system_config('index_tpl_name') == 'documents_' } + +
+ {/if}{:get_system_config('site_desc')}
+