| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316 |
- <?php
- use common\enums\EventNameEnum;
- return [
- // ----------------------- 菜单配置 ----------------------- //
- 'config' => [
- // 菜单配置
- 'menu' => [
- 'location' => 'default', // default:系统顶部菜单;addons:应用中心菜单
- 'icon' => 'fa fa-puzzle-piece',
- ],
- // 子模块配置
- 'modules' => [
- ],
- ],
- // ----------------------- 快捷入口 ----------------------- //
- 'cover' => [
- ],
- // ----------------------- 菜单配置 ----------------------- //
- 'menu' => [
- [
- 'title' => '基础设置',
- 'route' => 'default/index',
- 'icon' => '',
- 'params' => [
- ],
- 'child' => [
- ],
- ],
- [
- 'title' => '中台配置',
- 'route' => 'supplys/index',
- 'icon' => '',
- 'params' => [
- ],
- 'child' => [
- ],
- ],
- [
- 'title' => '导入分类',
- 'route' => 'category/index',
- 'icon' => '',
- 'params' => [
- ],
- 'child' => [
- ],
- ],
- [
- 'title' => '精选好货',
- 'route' => 'goods/index',
- 'icon' => '',
- 'params' => [
- ],
- 'child' => [
- ],
- ],
- [
- 'title' => '选品库',
- 'route' => 'storage/index',
- 'icon' => '',
- 'params' => [
- ],
- 'child' => [
- ],
- ],
- [
- 'title' => '订单列表',
- 'route' => 'order/index',
- 'icon' => '',
- 'params' => [
- ],
- 'child' => [
- ],
- ],
- [
- 'title' => '售后管理',
- 'route' => 'refund/index',
- 'icon' => '',
- 'params' => [
- ],
- 'child' => [
- ],
- ],
- [
- 'title' => '通知日志',
- 'route' => 'notice/index',
- 'icon' => '',
- 'params' => [
- ],
- 'child' => [
- ],
- ],
- ],
- // ----------------------- 权限配置 ----------------------- //
- 'authItem' => [
- [
- 'title' => '优选供应链',
- 'name' => '',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'QiJuhe',
- 'child' => [
- [
- 'title' => '基础设置',
- 'name' => 'default/index',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'QiJuhe',
- 'child' => [
- [
- 'title' => '保存设置',
- 'name' => 'default/index',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'QiJuhe',
- 'child' => [],
- ],
- ],
- ],
- [
- 'title' => '中台配置',
- 'name' => 'default/index',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'QiJuhe',
- 'child' => [
- [
- 'title' => '编辑中台',
- 'name' => 'supplys/edit',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'QiJuhe',
- 'child' => [],
- ],
- ],
- ],
- [
- 'title' => '导入分类',
- 'name' => 'default/index',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'QiJuhe',
- 'child' => [
- [
- 'title' => '导入',
- 'name' => 'category/import',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'QiJuhe',
- 'child' => [],
- ],
- ],
- ],
- [
- 'title' => '精选好货',
- 'name' => 'goods/index',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'QiJuhe',
- 'child' => [
- [
- 'title' => '添加选品库',
- 'name' => 'goods/add-storage',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'QiJuhe',
- 'child' => [],
- ],
- ],
- ],
- [
- 'title' => '选品库',
- 'name' => 'storage/index',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'QiJuhe',
- 'child' => [
- [
- 'title' => '导入商品',
- 'name' => 'storage/import',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'QiJuhe',
- 'child' => [],
- ],
- [
- 'title' => '移除选品库',
- 'name' => 'storage/remove',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'QiJuhe',
- 'child' => [],
- ],
- [
- 'title' => '移除选品库',
- 'name' => 'goods/store-reload',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'QiJuhe',
- 'child' => [],
- ],
- ],
- ],
- [
- 'title' => '订单列表',
- 'name' => 'order/index',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'QiJuhe',
- 'child' => [],
- ],
- [
- 'title' => '通知列表',
- 'name' => 'notice/index',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'QiJuhe',
- 'child' => [],
- ],
- ],
- ],
- ],
- // ----------------------- APP链接 ----------------------- //
- 'links' => [
- //[
- //'title' => '',
- //'route' => '',
- //'icon' => '',
- //'params' => [],
- //],
- ],
- // ----------------------- 事件处理 ----------------------- //
- 'events' => [
- [
- 'event_name' => EventNameEnum::ORDER_PAY,
- 'listeners' => [
- 'addons\QiJuhe\common\listeners\OrderPaidListener',
- ],
- ],
- [
- 'event_name' => EventNameEnum::ORDER_TAKE_DELIVERY,
- 'listeners' => [
- 'addons\QiJuhe\common\listeners\OrderTakeDeliveredListener',
- ],
- ],
- // 维权订单取消
- [
- 'event_name' => EventNameEnum::ORDER_REFUND_CANCEL,
- 'listeners' => [
- 'addons\QiJuhe\common\listeners\OrderRefundCancelListener',
- ],
- ],
- [
- 'event_name' => EventNameEnum::ORDER_REFUND_FINISH,
- 'listeners' => [
- 'addons\QiJuhe\common\listeners\OrderRefundFinishListener',
- ],
- ],
- [
- 'event_name' => EventNameEnum::ORDER_REFUND_BUYER_DELIVERY,
- 'listeners' => [
- 'addons\QiJuhe\common\listeners\OrderRefundBuyerDeliveryListener',
- ],
- ],
- [
- 'event_name' => EventNameEnum::GOODS_EDIT,
- 'listeners' => [
- 'addons\QiJuhe\common\listeners\GoodsEditListener',
- ],
- ]
- ],
- 'invoker' => [
- [
- 'invoker_id' => \common\enums\GlobalFuncEnum::CART_LIST_APPEND_FILEDS,
- 'class' => \addons\QiJuhe\common\service\ShoppingCartService::class,
- 'method' => 'cartListAppendFields'
- ],
- [
- 'invoker_id' => \common\enums\GlobalFuncEnum::API_GOODS_DETAIL,
- 'class'=>\addons\QiJuhe\common\service\ShoppingCartService::class,
- 'method'=>'globalGoodsDetail'
- ],
- ]
- ];
|