From 632b18006a6dd4c31ad5a688ce7fc61e87dbb548 Mon Sep 17 00:00:00 2001 From: Edward Yang Date: Tue, 31 Jan 2023 16:06:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/LatestProducts/Bootstrap.php | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/plugins/LatestProducts/Bootstrap.php b/plugins/LatestProducts/Bootstrap.php index e779ea90..8420be57 100644 --- a/plugins/LatestProducts/Bootstrap.php +++ b/plugins/LatestProducts/Bootstrap.php @@ -17,8 +17,8 @@ class Bootstrap { $this->addLatestProducts(); - // $this->modifyHeader(); - // $this->modifyProductDetail(); + $this->modifyHeader(); + $this->modifyProductDetail(); } /** @@ -38,11 +38,12 @@ class Bootstrap /** * 修改前台全局 header 模板 + * 打开后可以查看页面头部变化 */ private function modifyHeader() { blade_hook('header.top.currency', function ($callback, $output, $data) { - return $output . '货币后'; + return '货币前' . $output; }); blade_hook('header.top.language', function ($callback, $output, $data) { @@ -54,7 +55,7 @@ class Bootstrap }); blade_hook('header.menu.logo', function ($callback, $output, $data) { - return $output . 'logo后'; + return $output . 'Logo后'; }); blade_hook('header.menu.icon', function ($callback, $output, $data) { @@ -63,6 +64,12 @@ class Bootstrap }); } + + /** + * 修改产品详情页 + * 1. 品牌下面添加信息 + * 2. 立即购买后添加按钮 + */ private function modifyProductDetail() { blade_hook('product.detail.brand', function ($callback, $output, $data) {