From 6bedc732d147ce61bd079f6c0de4e0638b39eb75 Mon Sep 17 00:00:00 2001 From: ZF sun <34314687@qq.com> Date: Fri, 23 Jan 2026 15:35:53 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=BA=97=E9=93=BA):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=BA=97=E9=93=BA=E8=81=94=E7=B3=BB=E6=96=B9=E5=BC=8F=E5=92=8C?= =?UTF-8?q?=E5=88=B0=E6=9C=9F=E6=97=B6=E9=97=B4=E6=98=BE=E7=A4=BA=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在店铺信息中新增显示联系电话和动态到期时间功能,替换原有的固定值显示 --- src/app/shop/controller/BaseShop.php | 2 +- src/app/shop/view/index/index.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/shop/controller/BaseShop.php b/src/app/shop/controller/BaseShop.php index aa74a7f98..cc4bb8a2a 100644 --- a/src/app/shop/controller/BaseShop.php +++ b/src/app/shop/controller/BaseShop.php @@ -98,7 +98,7 @@ class BaseShop extends Controller //获取店铺信息 $site_model = new Site(); - $this->shop_info = $site_model->getSiteInfo([ [ 'site_id', '=', $this->site_id ] ], 'site_id,site_name,logo,seo_keywords,seo_description, create_time')[ 'data' ]; + $this->shop_info = $site_model->getSiteInfo([ [ 'site_id', '=', $this->site_id ] ], 'site_id,site_name,site_tel,logo,seo_keywords,seo_description, create_time, end_time')[ 'data' ]; $this->assign('shop_info', $this->shop_info); // 加载自定义图标库 diff --git a/src/app/shop/view/index/index.html b/src/app/shop/view/index/index.html index eddb11a2a..db68764a0 100644 --- a/src/app/shop/view/index/index.html +++ b/src/app/shop/view/index/index.html @@ -118,10 +118,10 @@
到期时间:
-
2099-01-01
+
{$shop_info['end_time'] ? date('Y-m-d', $shop_info['end_time']) : '2099-01-01'}
-
联系官方:4008-888-888
+
联系官方:{$shop_info['site_tel'] ?? '4008-888-888'}