From b3d7ceaba98449cb01acf3cef78c16641befb47a Mon Sep 17 00:00:00 2001 From: jsasg <735273025@qq.com> Date: Wed, 23 Apr 2025 17:32:14 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=96=87=E7=AB=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/index/controller/Article.php | 4 ++ app/index/view/article/detail.html | 40 +++++++++++++------ app/index/view/article/index.html | 2 +- .../{category.css => article_category.css} | 0 .../{articleDetail.css => article_detail.css} | 10 +++++ 5 files changed, 42 insertions(+), 14 deletions(-) rename public/static/index/css/{category.css => article_category.css} (100%) rename public/static/index/css/{articleDetail.css => article_detail.css} (94%) diff --git a/app/index/controller/Article.php b/app/index/controller/Article.php index 8dda8f58..367444cb 100644 --- a/app/index/controller/Article.php +++ b/app/index/controller/Article.php @@ -89,6 +89,10 @@ class Article extends Common ->find(); View::assign('detail', $detail); + // 获取分享配置相关 + $share_config = $this->getSysConfig($this->lang_id, ['article_share']); + View::assign('share_config', $share_config['article_share']); + // 获取倒序或发布时间倒序3篇文章做为推荐文章 $recommends = ArticleModel::field([ 'id', diff --git a/app/index/view/article/detail.html b/app/index/view/article/detail.html index f4f84554..ea195d5c 100644 --- a/app/index/view/article/detail.html +++ b/app/index/view/article/detail.html @@ -11,7 +11,7 @@ {/notempty} {/block} {block name="style"} - + {/block} {block name="main"}