Browse Source

商品管理

master
Lemon 5 years ago
parent
commit
fa20eeea46
  1. 20
      app/Service/v3/Implementations/UserCenterBlockService.php

20
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'
]

Loading…
Cancel
Save