From 18d26aa3f2f079dd71d22e4172fb4ae9350111d4 Mon Sep 17 00:00:00 2001 From: Mike Date: Wed, 9 Sep 2020 19:55:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=BA=E8=A1=8C=E6=98=BE=E7=A4=BA=E5=95=86?= =?UTF-8?q?=E6=88=B7=E7=9B=B8=E5=85=B3=E6=93=8D=E4=BD=9Cblock?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../UserCenterBlockService.php | 26 ++++++++++++------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/app/Service/v3/Implementations/UserCenterBlockService.php b/app/Service/v3/Implementations/UserCenterBlockService.php index 72c8675..55433ca 100644 --- a/app/Service/v3/Implementations/UserCenterBlockService.php +++ b/app/Service/v3/Implementations/UserCenterBlockService.php @@ -43,18 +43,26 @@ class UserCenterBlockService implements UserCenterBlockServiceInterface ] ]; + $blocks[] = [ + 'type' => 'store_user', + 'title' => '商户相关', + 'items' => [ + ['name' => '商家入口', 'icon' => $img_host . 'user_icons/shop_enter.png', 'type' => 'page', 'path' => '/pages/shopLogin/shopLogin','command'=>'store_login'] + ] + ]; + foreach ($roles as $key => $item) { # code... - if($item['key'] == 'store'){ - $blocks[] = [ - 'type' => 'store_user', - 'title' => '商户相关', - 'items' => [ - ['name' => '商家入口', 'icon' => $img_host . 'user_icons/shop_enter.png', 'type' => 'page', 'path' => '/pages/shopLogin/shopLogin','command'=>'store_login'] - ] - ]; - } + // if($item['key'] == 'store'){ + // $blocks[] = [ + // 'type' => 'store_user', + // 'title' => '商户相关', + // 'items' => [ + // ['name' => '商家入口', 'icon' => $img_host . 'user_icons/shop_enter.png', 'type' => 'page', 'path' => '/pages/shopLogin/shopLogin','command'=>'store_login'] + // ] + // ]; + // } if($item['key'] == 'sp'){ $blocks[] = [