From fa20eeea46ffad4bff3a5ff6be6b839f5d5156cf Mon Sep 17 00:00:00 2001 From: Lemon <15040771@qq.com> Date: Wed, 23 Sep 2020 11:15:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../UserCenterBlockService.php | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/app/Service/v3/Implementations/UserCenterBlockService.php b/app/Service/v3/Implementations/UserCenterBlockService.php index ebfe12a..14777b9 100644 --- a/app/Service/v3/Implementations/UserCenterBlockService.php +++ b/app/Service/v3/Implementations/UserCenterBlockService.php @@ -54,15 +54,15 @@ class UserCenterBlockService implements UserCenterBlockServiceInterface foreach ($roles as $key => $item) { # code... - if($item['key'] == 'store'){ - $goodsEditor = [ - 'name' => '商品管理', 'icon' => $img_host . 'user_icons/service2.png', - 'type' => 'webview', - 'path' => 'http://localhost:8080/#/pages/goodsManagement/goodsManagement?market_id='.$item['data']['market_id'].'&user_id='.$item['data']['user_id'].'&store_id='.$item['data']['id'], - 'command'=>'sp_login' - ]; - array_push($blocks[1]['items'],$goodsEditor); - } + // if($item['key'] == 'store'){ + // $goodsEditor = [ + // 'name' => '商品管理', 'icon' => $img_host . 'user_icons/service2.png', + // 'type' => 'webview', + // 'path' => 'http://localhost:8080/#/pages/goodsManagement/goodsManagement?market_id='.$item['data']['market_id'].'&user_id='.$item['data']['user_id'].'&store_id='.$item['data']['id'], + // 'command'=>'sp_login' + // ]; + // array_push($blocks[1]['items'],$goodsEditor); + // } if($item['key'] == 'sp'){ $blocks[] = [ @@ -72,7 +72,7 @@ class UserCenterBlockService implements UserCenterBlockServiceInterface ['name' => '评价', 'icon' => $img_host . 'user_icons/service2.png', 'type' => 'page', 'path' => '/zh_cjdianc/pages/appraise/index?service_personnel_id='.$item['data']['id'],'command'=>'sp_login'], [ 'name' => '商品管理', 'icon' => $img_host . 'user_icons/service2.png', - 'type' => 'webview', + 'type' => 'page', 'path' => '/pages/shopList/shopList?personal_id='.$item['data']['id'], 'command'=>'sp_login' ]