|
|
@ -54,15 +54,15 @@ class UserCenterBlockService implements UserCenterBlockServiceInterface |
|
|
foreach ($roles as $key => $item) { |
|
|
foreach ($roles as $key => $item) { |
|
|
# code...
|
|
|
# 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'){ |
|
|
if($item['key'] == 'sp'){ |
|
|
$blocks[] = [ |
|
|
$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' => 'page', 'path' => '/zh_cjdianc/pages/appraise/index?service_personnel_id='.$item['data']['id'],'command'=>'sp_login'], |
|
|
[ |
|
|
[ |
|
|
'name' => '商品管理', 'icon' => $img_host . 'user_icons/service2.png', |
|
|
'name' => '商品管理', 'icon' => $img_host . 'user_icons/service2.png', |
|
|
'type' => 'webview', |
|
|
|
|
|
|
|
|
'type' => 'page', |
|
|
'path' => '/pages/shopList/shopList?personal_id='.$item['data']['id'], |
|
|
'path' => '/pages/shopList/shopList?personal_id='.$item['data']['id'], |
|
|
'command'=>'sp_login' |
|
|
'command'=>'sp_login' |
|
|
] |
|
|
] |
|
|
|