From 6c54f704abcb0d9e75001d3466e834eae2ef7cc7 Mon Sep 17 00:00:00 2001 From: augushong Date: Wed, 22 Apr 2020 14:26:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=A7=8B=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/index/controller/Index.php | 8 ++++ public/static/css/index.documents.css | 29 +++++++++++++ view/admin/common/left_system.html | 15 +++++++ view/admin/system/theme.html | 4 +- view/index/common/_documents_nav.html | 7 ++++ view/index/common/_documents_require.html | 3 ++ view/index/index/documents_index.html | 51 +++++++++++++++++++++++ 7 files changed, 115 insertions(+), 2 deletions(-) create mode 100644 public/static/css/index.documents.css create mode 100644 view/index/common/_documents_nav.html create mode 100644 view/index/common/_documents_require.html create mode 100644 view/index/index/documents_index.html 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}