|
|
|
@ -43,10 +43,6 @@ class UserCenterBlockService implements UserCenterBlockServiceInterface |
|
|
|
] |
|
|
|
]; |
|
|
|
|
|
|
|
foreach ($roles as $key => $item) { |
|
|
|
# code...
|
|
|
|
|
|
|
|
if($item['key'] == 'store'){ |
|
|
|
$blocks[] = [ |
|
|
|
'type' => 'store_user', |
|
|
|
'title' => '商户相关', |
|
|
|
@ -54,7 +50,19 @@ class UserCenterBlockService implements UserCenterBlockServiceInterface |
|
|
|
['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'] == 'sp'){ |
|
|
|
$blocks[] = [ |
|
|
|
|