diff --git a/application/index/controller/Common.php b/application/index/controller/Common.php index 658b9fbb8..5f19053d8 100755 --- a/application/index/controller/Common.php +++ b/application/index/controller/Common.php @@ -17,6 +17,7 @@ use app\service\BuyService; use app\service\MessageService; use app\service\SearchService; use app\service\ConfigService; +use app\service\LinkService; /** * 前端公共控制器 @@ -205,6 +206,10 @@ class Common extends Controller // 商城公告 $this->assign('common_shop_notice', MyC('common_shop_notice')); + + // 友情链接 + $link = LinkService::LinkShowList(); + $this->assign('link_list', $link['data']); } /** diff --git a/application/index/view/default/public/footer_nav.html b/application/index/view/default/public/footer_nav.html index 4a41acd23..c725ee619 100755 --- a/application/index/view/default/public/footer_nav.html +++ b/application/index/view/default/public/footer_nav.html @@ -1,3 +1,20 @@ + +{{if !empty($link_list)}} +