From cb0d297b3f3eb891705cf002894d6a761cc96d7d Mon Sep 17 00:00:00 2001 From: Devil Date: Fri, 23 Jul 2021 15:58:46 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=86=E8=8A=82=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/index/controller/Common.php | 5 -- app/index/controller/Index.php | 15 +++-- app/index/view/default/public/footer_nav.html | 2 +- app/service/AppHomeNavService.php | 28 +++++---- app/service/ArticleService.php | 32 ++++++++++ app/service/BannerService.php | 6 +- app/service/ConfigService.php | 59 ++++++++++--------- app/service/GoodsService.php | 12 ++-- app/service/LinkService.php | 31 ++++++++++ app/service/NavigationService.php | 12 +++- app/service/PluginsService.php | 17 +++--- app/service/QuickNavService.php | 32 +++++----- app/service/SearchService.php | 38 ++++++++---- app/service/StoreService.php | 2 +- config/shopxo.php | 9 +++ sourcecode/alipay/default/config.json | 2 +- sourcecode/baidu/default/config.json | 2 +- sourcecode/qq/default/config.json | 2 +- sourcecode/toutiao/default/config.json | 2 +- sourcecode/weixin/default/config.json | 2 +- 20 files changed, 207 insertions(+), 103 deletions(-) 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 @@