Browse Source

强行显示商户相关操作block

master
Mike 5 years ago
parent
commit
18d26aa3f2
  1. 26
      app/Service/v3/Implementations/UserCenterBlockService.php

26
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[] = [

Loading…
Cancel
Save