From 3e33e15fe2a59360014f5302ba0a9f6e59cf5e5c Mon Sep 17 00:00:00 2001 From: yin5th <541304803@qq.com> Date: Wed, 12 Oct 2022 18:11:01 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=A9=E4=B8=9A=E6=9C=8D=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- route/app.php | 1 + view/article/market_detail.html | 29 +++++++++++++++++++++++++++++ view/public/about_second.html | 5 ++++- 3 files changed, 34 insertions(+), 1 deletion(-) create mode 100755 view/article/market_detail.html diff --git a/route/app.php b/route/app.php index 6167ff9..8916ab9 100755 --- a/route/app.php +++ b/route/app.php @@ -22,6 +22,7 @@ Route::get('position/:id', "position/detail")->pattern(['id' => '\d+']); Route::get('/activity/:id', "article/detail")->pattern(['id' => '\d+']); Route::get('/news/:id', "article/detail")->pattern(['id' => '\d+']); Route::get('/service/:id', "article/detail")->pattern(['id' => '\d+']); +Route::get('/market/:id', "article/detail")->pattern(['id' => '\d+']); Route::get('/product/detail/:id', "product/detail")->pattern(['id' => '\d+']); Route::rule('articles/ajaxlist', 'article/ajaxList', 'GET|POST'); Route::get('articles/:category_id', "article/index"); diff --git a/view/article/market_detail.html b/view/article/market_detail.html new file mode 100755 index 0000000..fba0ff1 --- /dev/null +++ b/view/article/market_detail.html @@ -0,0 +1,29 @@ +{layout name="layout" /} +{php} +use app\model\Category; +$childrenMenu = Category::getChildrenByParentId($topCategoryId); +{/php} + +{include file="public/about_second" /} + + +
+
+
+ +
+

{$item.title}

+
{$item.sub_title}
+ 返回列表 +
+
+ +
+ {$item.content|raw} +
+ + + + +
+
\ No newline at end of file diff --git a/view/public/about_second.html b/view/public/about_second.html index 7a4bcb4..f1d5eb4 100644 --- a/view/public/about_second.html +++ b/view/public/about_second.html @@ -15,7 +15,10 @@ {$path['title'] ?? ''} {/if} {/foreach} - {$category.title ?? ''} + {if $category['id'] != 40} + {$category['title'] ?? ''} + {/if} + {$Request.Action == 'detail' ? ($item.title ?? '') : ''}