diff --git a/app/index/controller/Common.php b/app/index/controller/Common.php index 6496f616a..54d1bf7c6 100755 --- a/app/index/controller/Common.php +++ b/app/index/controller/Common.php @@ -21,7 +21,6 @@ use app\service\BuyService; use app\service\MessageService; use app\service\SearchService; use app\service\ConfigService; -use app\service\LinkService; use app\service\UserService; use app\service\AdminService; use app\service\QuickNavService; @@ -287,10 +286,6 @@ class Common extends BaseController // 搜索框下热门关键字 MyViewAssign('home_search_keywords', SearchService::SearchKeywordsList()); - // 友情链接 - $link = LinkService::LinkList(['where'=>['is_enable'=>1]]); - MyViewAssign('link_list', $link['data']); - // 开发模式 MyViewAssign('shopxo_is_develop', MyConfig('shopxo.is_develop')); diff --git a/app/index/controller/Index.php b/app/index/controller/Index.php index 9a1930f84..4b87cc7a1 100755 --- a/app/index/controller/Index.php +++ b/app/index/controller/Index.php @@ -19,6 +19,7 @@ use app\service\ArticleService; use app\service\OrderService; use app\service\AppHomeNavService; use app\service\BrandService; +use app\service\LinkService; use app\service\LayoutService; /** @@ -123,14 +124,8 @@ class Index extends Common MyViewAssign('goods_floor_list', GoodsService::HomeFloorList()); // 文章 - $params = [ - 'where' => ['is_enable'=>1, 'is_home_recommended'=>1], - 'field' => 'id,title,title_color,article_category_id', - 'm' => 0, - 'n' => 9, - ]; - $article_list = ArticleService::ArticleList($params); - MyViewAssign('article_list', $article_list['data']); + $article_list = ArticleService::HomeArticleList(); + MyViewAssign('article_list', $article_list); // 用户订单状态 $user_order_status = OrderService::OrderStatusStepTotal(['user_type'=>'user', 'user'=>$this->user, 'is_comments'=>1]); @@ -138,6 +133,10 @@ class Index extends Common } } + // 友情链接 + $link_list = LinkService::HomeLinkList(); + MyViewAssign('link_list', $link_list); + // 加载百度地图api // 存在地图事件则载入 if(in_array(3, array_column($banner, 'event_type'))) diff --git a/app/index/view/default/public/footer_nav.html b/app/index/view/default/public/footer_nav.html index 5d9415545..ef18d7845 100755 --- a/app/index/view/default/public/footer_nav.html +++ b/app/index/view/default/public/footer_nav.html @@ -70,7 +70,7 @@