diff --git a/app/Service/v3/Implementations/UserCenterBlockService.php b/app/Service/v3/Implementations/UserCenterBlockService.php index f3944d8..f7cf039 100644 --- a/app/Service/v3/Implementations/UserCenterBlockService.php +++ b/app/Service/v3/Implementations/UserCenterBlockService.php @@ -24,15 +24,27 @@ class UserCenterBlockService implements UserCenterBlockServiceInterface public function all() { + + // + $img_host = config('alioss.img_host').'/'; + return [ [ 'type' => 'user', 'title' => '我的', 'items' => [ - ['name' => '收货地址', 'icon' => '', 'type' => 'page', 'path' => ''], - ['name' => '商家入口', 'icon' => '', 'type' => 'page', 'path' => ''], - ['name' => '在线客服', 'icon' => '', 'type' => 'page', 'path' => ''], - ['name' => '当面付订单查询', 'icon' => '', 'type' => 'page', 'path' => ''], + ['name' => '收货地址', 'icon' => $img_host . 'user_icons/user_addr.png', 'type' => 'page', 'path' => '/pages/address/userAddress/userAddress','command'=>'user_addr'], + ['name' => '当面付订单查询', 'icon' => $img_host . 'user_icons/offline_orders.png', 'type' => 'page', 'path' => '/pages/faceOrderList/faceOrderList','command'=>'offline_orders'], + ['name' => '在线客服', 'icon' => $img_host . 'user_icons/online_kf.png', 'type' => 'page', 'path' => '','command'=>'online_kf'], + ['name' => '联系服务站', 'icon' => $img_host . 'user_icons/contact_fwz.png', 'type' => 'page', 'path' => '/pages/contactMarket/contactMarket','command'=>'contact_fwz'], + ['name' => '关于懒族', 'icon' => $img_host . 'user_icons/about_lz.png', 'type' => 'page', 'path' => '/pages/aboutUs/aboutUs','command'=>'about'], + ] + ], + [ + 'type' => 'store_user', + 'title' => '我的', + 'items' => [ + ['name' => '商家入口', 'icon' => $img_host . 'user_icons/shop_enter.png', 'type' => 'page', 'path' => '/pages/shopLogin/shopLogin','command'=>'store_login'] ] ] ];