From 16e341ba3171d25e89dba4b413735663fcdc4f17 Mon Sep 17 00:00:00 2001 From: yin5th <541304803@qq.com> Date: Thu, 13 Oct 2022 10:21:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=95=E8=AF=89=E5=BB=BA=E8=AE=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- view/page/advice.html | 45 ++++++++++++++++------------------- view/public/about_second.html | 4 +++- 2 files changed, 23 insertions(+), 26 deletions(-) diff --git a/view/page/advice.html b/view/page/advice.html index e7498e9..93d3933 100755 --- a/view/page/advice.html +++ b/view/page/advice.html @@ -1,33 +1,28 @@ -{layout name="layout_two"/} +{layout name="layout"/} {php} +use app\model\Article; use app\model\Category; -$position = Category::getPosition($category["id"]); +$childrenMenu = Category::getChildrenByParentId($topCategoryId); {/php} -
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
{$blocks['accept-only']['value']}
-
{$blocks['tel']['value']}
-
+ +{include file="public/about_second" /} + + +
+
+ -
-
{$blocks['title']['value']}
-
+
+
{$blocks['title']['value']}
+
{$blocks['info']['value']|raw}
diff --git a/view/public/about_second.html b/view/public/about_second.html index f1d5eb4..f4198a2 100644 --- a/view/public/about_second.html +++ b/view/public/about_second.html @@ -15,8 +15,10 @@ {$path['title'] ?? ''} {/if} {/foreach} - {if $category['id'] != 40} + {if !in_array($category['id'],[39,40]) && $Request.Action != 'index'} {$category['title'] ?? ''} + {elseif $Request.Action == 'index'} + {$category['title'] ?? ''} {/if} {$Request.Action == 'detail' ? ($item.title ?? '') : ''}