From 05956605303114dab6f5d1dffd35a6457341671f Mon Sep 17 00:00:00 2001 From: wangxiaowei Date: Sat, 10 Aug 2024 15:31:02 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9C=AC=E5=9C=B0?= =?UTF-8?q?=E7=94=9F=E6=B4=BB=E8=AE=A2=E5=8D=95=E5=88=86=E7=B1=BB=E6=8C=89?= =?UTF-8?q?=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/Index.php | 34 +++++++++++++++++++++++++++++++--- 1 file changed, 31 insertions(+), 3 deletions(-) diff --git a/app/api/controller/Index.php b/app/api/controller/Index.php index 4e5710d9..591433cc 100755 --- a/app/api/controller/Index.php +++ b/app/api/controller/Index.php @@ -209,12 +209,40 @@ class Index extends Api "link"=>'/bundle_b/pages/local_settled/index', "link_type"=>1, "is_set"=>0 - ) + ), + array( + "image"=>'https://zjeloong.oss-cn-hangzhou.aliyuncs.com/uniapp/all_service.png', + "name"=>'企业服务', + "is_tab"=> 0, + "link"=>'/bundle_b/pages/local_shop_category/index', + "link_type"=>1, + "is_set"=>0 + ) ); return JsonServer::success('查询成功', $arr); - // return JsonServer::success('查询成功', []); - } + public function getLocalMenu() + { + $arr = array( + array( + "image"=>'https://zjeloong.oss-cn-hangzhou.aliyuncs.com/uniapp/bundle_b/local_shop/store_manager.png', + "name"=>'商家信息', + "is_tab"=> 0, + "link"=>'/bundle_b/pages/local_shop/local_shop', + "link_type"=>1, + "is_set"=>0 + ), + array( + "image"=>'https://zjeloong.oss-cn-hangzhou.aliyuncs.com/uniapp/bundle_b/local_shop/store_settled.png', + "name"=>'商家入驻', + "is_tab"=> 0, + "link"=>'/bundle_b/pages/local_settled/index', + "link_type"=>1, + "is_set"=>0 + ) + ); + return JsonServer::success('查询成功', $arr); + } } \ No newline at end of file From 42223aa70764663fd22683cd8ead60942852b35d Mon Sep 17 00:00:00 2001 From: wangxiaowei Date: Sat, 10 Aug 2024 15:31:23 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9C=AC=E5=9C=B0?= =?UTF-8?q?=E7=94=9F=E6=B4=BB=E8=AE=A2=E5=8D=95=E5=88=86=E7=B1=BB=E6=8C=89?= =?UTF-8?q?=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/Index.php | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/app/api/controller/Index.php b/app/api/controller/Index.php index 591433cc..b1a5e346 100755 --- a/app/api/controller/Index.php +++ b/app/api/controller/Index.php @@ -194,22 +194,6 @@ class Index extends Api // 控制显示本地生活 public function setHome(){ $arr = array( - array( - "image"=>'https://zjeloong.oss-cn-hangzhou.aliyuncs.com/uniapp/bundle_b/local_shop/store_manager.png', - "name"=>'商家信息', - "is_tab"=> 0, - "link"=>'/bundle_b/pages/local_shop/local_shop', - "link_type"=>1, - "is_set"=>0 - ), - array( - "image"=>'https://zjeloong.oss-cn-hangzhou.aliyuncs.com/uniapp/bundle_b/local_shop/store_settled.png', - "name"=>'商家入驻', - "is_tab"=> 0, - "link"=>'/bundle_b/pages/local_settled/index', - "link_type"=>1, - "is_set"=>0 - ), array( "image"=>'https://zjeloong.oss-cn-hangzhou.aliyuncs.com/uniapp/all_service.png', "name"=>'企业服务',