| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561 |
- <?php
- use common\enums\EventNameEnum;
- return [
- // ----------------------- 菜单配置 ----------------------- //
- 'config' => [
- // 菜单配置
- 'menu' => [
- 'location' => 'default', // default:系统顶部菜单;addons:应用中心菜单
- 'icon' => 'fa fa-puzzle-piece',
- ],
- // 子模块配置
- 'modules' => [
- 'client' => [
- 'class' => 'addons\Happiness\client\Module',
- ],
- 'agent' => [
- 'class' => 'addons\Happiness\agent\Module',
- ],
- ],
- ],
- // ----------------------- 快捷入口 ----------------------- //
- 'cover' => [
- ],
- // ----------------------- 菜单配置 ----------------------- //
- 'menu' => [
- [
- 'title' => '数据概况',
- 'route' => 'default/index',
- 'icon' => '',
- 'params' => [],
- 'child' => [],
- ],
- // [
- // 'title' => '首页装修',
- // 'route' => 'diy/index',
- // 'icon' => '',
- // 'params' => [],
- // 'child' => [],
- // ],
- [
- 'title' => '小店管理',
- 'route' => 'store/index',
- 'icon' => '',
- 'params' => [],
- 'child' => [],
- ],
- [
- 'title' => '小店选品库',
- 'route' => 'store-goods/index',
- 'icon' => '',
- 'params' => [],
- 'child' => [],
- ],
- [
- 'title' => '订单管理',
- 'route' => 'store-order/index',
- 'icon' => '',
- 'params' => [],
- 'child' => [],
- ],
- [
- 'title' => '提货订单',
- 'route' => 'store-voucher-order/index',
- 'icon' => '',
- 'params' => [],
- 'child' => [],
- ],
- [
- 'title' => '收款码订单',
- 'route' => 'store-casher/index',
- 'icon' => '',
- 'params' => [],
- 'child' => [],
- ],
- [
- 'title' => '售后管理',
- 'route' => 'store-order/refund-list',
- 'icon' => '',
- 'params' => [],
- 'child' => [],
- ],
- [
- 'title' => '小店审核',
- 'route' => 'store-audit/index',
- 'icon' => '',
- 'params' => [],
- 'child' => [],
- ],
- [
- 'title' => '核销管理',
- 'name' => 'store-clerk/index',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'Happiness',
- 'child' => [
- [
- 'title' => '核销员管理',
- 'name' => 'store-clerk/index',
- 'route' => 'store-clerk/index',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'Happiness',
- 'child' => [],
- ],
- [
- 'title' => '核销统计',
- 'name' => 'store-clerk/clerk-log',
- 'route' => 'store-clerk/clerk-log',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'Happiness',
- 'child' => [],
- ],
- ],
- ],
- [
- 'title' => '流水管理',
- 'route' => 'store-assets/index',
- 'icon' => '',
- 'params' => [],
- 'child' => [],
- ],
- [
- 'title' => '流水统计',
- 'route' => 'store-statistics/index',
- 'icon' => '',
- 'params' => [],
- 'child' => [],
- ],
- [
- 'title' => '支出统计',
- 'route' => 'store-expenses/index',
- 'icon' => '',
- 'params' => [],
- 'child' => [],
- ],
- [
- 'title' => '提现审核',
- 'route' => 'store-cashdraw/index',
- 'icon' => '',
- 'params' => [],
- 'child' => [],
- ],
- [
- 'title' => '养老金',
- 'route' => 'store-pension/index',
- 'icon' => '',
- 'params' => [],
- 'child' => [],
- ],
- [
- 'title' => '推广身份',
- 'route' => 'store-agent/index',
- 'icon' => '',
- 'params' => [],
- 'child' => [
- [
- 'title' => '推广管理',
- 'name' => 'store-business/index',
- 'route' => 'store-business/index',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'Happiness',
- 'child' => [],
- ],
- [
- 'title' => '代理管理',
- 'name' => 'store-agent/index',
- 'route' => 'store-agent/index',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'Happiness',
- 'child' => [],
- ],
- [
- 'title' => '合伙人管理',
- 'name' => 'store-boss/index',
- 'route' => 'store-boss/index',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'Happiness',
- 'child' => [],
- ],
- ],
- ],
- [
- 'title' => '加权分红',
- 'route' => 'store-weight/index',
- 'icon' => '',
- 'params' => [],
- 'child' => [
- [
- 'title' => '分红明细',
- 'name' => 'store-weight/index',
- 'route' => 'store-weight/index',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'Happiness',
- 'child' => [],
- ],
- [
- 'title' => '结算周期',
- 'name' => 'store-weight/list',
- 'route' => 'store-weight/list',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'Happiness',
- 'child' => [],
- ],
- ]
- ],
- [
- 'title' => '基础设置',
- 'route' => 'store-setting/index',
- 'icon' => '',
- 'params' => [],
- 'child' => [],
- ],
- ],
- // ----------------------- 权限配置 ----------------------- //
- 'authItem' => [
- [
- 'title' => '幸福小店',
- 'name' => '',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'Happiness',
- 'child' => [
- [
- 'title' => '数据概况',
- 'name' => 'default/index',
- 'icon' => '',
- 'params' => [],
- 'is_addon' => 1,
- 'addons_name' => 'Happiness',
- 'child' => [],
- ],
- // [
- // 'title' => '首页装修',
- // 'name' => 'diy/index',
- // 'icon' => '',
- // 'params' => [],
- // 'is_addon' => 1,
- // 'addons_name' => 'Happiness',
- // 'child' => [],
- // ],
- [
- 'title' => '小店管理',
- 'name' => 'store/index',
- 'icon' => '',
- 'params' => [],
- 'is_addon' => 1,
- 'addons_name' => 'Happiness',
- 'child' => [],
- ],
- [
- 'title' => '小店选品库',
- 'name' => 'store-goods/index',
- 'icon' => '',
- 'params' => [],
- 'is_addon' => 1,
- 'addons_name' => 'Happiness',
- 'child' => [],
- ],
- [
- 'title' => '订单管理',
- 'name' => 'store-order/index',
- 'icon' => '',
- 'params' => [],
- 'is_addon' => 1,
- 'addons_name' => 'Happiness',
- 'child' => [],
- ],
- [
- 'title' => '提货订单',
- 'name' => 'store-voucher-order/index',
- 'icon' => '',
- 'params' => [],
- 'is_addon' => 1,
- 'addons_name' => 'Happiness',
- 'child' => [],
- ],
- [
- 'title' => '收款码订单',
- 'name' => 'store-casher/index',
- 'icon' => '',
- 'params' => [],
- 'is_addon' => 1,
- 'addons_name' => 'Happiness',
- 'child' => [],
- ],
- [
- 'title' => '售后管理',
- 'name' => 'store-order/refund-list',
- 'icon' => '',
- 'params' => [],
- 'is_addon' => 1,
- 'addons_name' => 'Happiness',
- 'child' => [],
- ],
- [
- 'title' => '小店审核',
- 'name' => 'store-audit/index',
- 'icon' => '',
- 'params' => [],
- 'is_addon' => 1,
- 'addons_name' => 'Happiness',
- 'child' => [],
- ],
- [
- 'title' => '核销管理',
- 'name' => 'store-clerk/index',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'Happiness',
- 'child' => [
- [
- 'title' => '核销员管理',
- 'name' => 'store-clerk/index',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'Happiness',
- 'child' => [],
- ],
- [
- 'title' => '核销统计',
- 'name' => 'store-clerk/clerk-log',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'Happiness',
- 'child' => [],
- ],
- ],
- ],
- [
- 'title' => '流水管理',
- 'name' => 'store-assets/index',
- 'icon' => '',
- 'params' => [],
- 'is_addon' => 1,
- 'addons_name' => 'Happiness',
- 'child' => [],
- ],
- [
- 'title' => '流水统计',
- 'name' => 'store-statistics/index',
- 'icon' => '',
- 'params' => [],
- 'is_addon' => 1,
- 'addons_name' => 'Happiness',
- 'child' => [],
- ],
- [
- 'title' => '支出统计',
- 'name' => 'store-expenses/index',
- 'icon' => '',
- 'params' => [],
- 'is_addon' => 1,
- 'addons_name' => 'Happiness',
- 'child' => [],
- ],
- [
- 'title' => '提现审核',
- 'name' => 'store-cashdraw/index',
- 'icon' => '',
- 'params' => [],
- 'is_addon' => 1,
- 'addons_name' => 'Happiness',
- 'child' => [],
- ],
- [
- 'title' => '养老金',
- 'name' => 'store-pension/index',
- 'icon' => '',
- 'params' => [],
- 'is_addon' => 1,
- 'addons_name' => 'Happiness',
- 'child' => [],
- ],
- [
- 'title' => '加权分红',
- 'name' => 'store-weight/index',
- 'icon' => '',
- 'params' => [],
- 'is_addon' => 1,
- 'addons_name' => 'Happiness',
- 'child' => [],
- ],
- [
- 'title' => '推广身份',
- 'name' => 'store-agent/index',
- 'icon' => '',
- 'params' => [],
- 'is_addon' => 1,
- 'addons_name' => 'Happiness',
- 'child' => [
- [
- 'title' => '推广管理',
- 'name' => 'store-business/index',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'Happiness',
- 'child' => [],
- ],
- [
- 'title' => '代理管理',
- 'name' => 'store-agent/index',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'Happiness',
- 'child' => [],
- ],
- [
- 'title' => '合伙人管理',
- 'name' => 'store-boss/index',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'Happiness',
- 'child' => [],
- ],
- ],
- ],
- ]
- ],
- ],
- // ----------------------- APP链接 ----------------------- //
- 'links' => [
- [
- 'title' => '代理收益',
- 'route' => '/customDesigns/Happiness/earningsShare?type=agent',
- 'icon' => '',
- 'params' => [],
- ],
- [
- 'title' => '分享收益',
- 'route' => '/customDesigns/Happiness/earningsShare?type=share',
- 'icon' => '',
- 'params' => [],
- ],
- [
- 'title' => '锁定收益',
- 'route' => '/customDesigns/Happiness/earningsShare?type=lock',
- 'icon' => '',
- 'params' => [],
- ],
- [
- 'title' => '推广收益',
- 'route' => '/customDesigns/Happiness/earningsShare?type=command',
- 'icon' => '',
- 'params' => [],
- ],
- [
- 'title' => '附近小店',
- 'route' => '/customDesigns/Happiness/shopSelect',
- 'icon' => '',
- 'params' => [],
- ],
- [
- 'title' => '小店入驻',
- 'route' => '/customDesigns/Happiness/shopEnter',
- 'icon' => '',
- 'params' => [],
- ],
- [
- 'title' => '首页',
- 'route' => '/customDesigns/Happiness/diy',
- 'icon' => '',
- 'params' => [],
- ],
- [
- 'title' => '养老金',
- 'route' => '/customDesigns/Happiness/pension',
- 'icon' => '',
- 'params' => [],
- ],
- [
- 'title' => '小店购物车',
- 'route' => '/customDesigns/Happiness/cart/index',
- 'icon' => '',
- 'params' => [],
- ],
- [
- 'title' => '养老金实名',
- 'route' => '/customDesigns/Happiness/real',
- 'icon' => '',
- 'params' => [],
- ],
- [
- 'title' => '订单核销',
- 'route' => '/plugins2/Store/writeoff/index',
- 'icon' => '',
- 'params' => []
- ]
- ],
- // ----------------------- 事件处理 ----------------------- //
- 'events' => [
- // [
- // 'event_name' => EventNameEnum::ORDER_CLOSE,
- // 'listeners' => [
- // 'addons\Happiness\common\listeners\OrderCloseListener',
- // ]
- // ],
- [
- 'event_name' => EventNameEnum::ORDER_PAY,
- 'listeners' => [
- 'addons\Happiness\common\listeners\OrderPaidListener',
- ]
- ],
- [
- 'event_name' => EventNameEnum::ORDER_FINISH,
- 'listeners' => [
- 'addons\Happiness\common\listeners\OrderFinishListener',
- ]
- ],
- [
- 'event_name' => EventNameEnum::ORDER_REFUND,
- 'listeners' => [
- 'addons\Happiness\common\listeners\OrderRefundCreateListener',
- ]
- ],
- [
- 'event_name' => EventNameEnum::ORDER_REFUND_FINISH,
- 'listeners' => [
- 'addons\Happiness\common\listeners\OrderRefundListener',
- ]
- ],
- [
- 'event_name' => EventNameEnum::GOODS_EDIT,
- 'listeners' => [
- 'addons\Happiness\common\listeners\GoodsEditListener',
- ],
- ],
- [
- 'event_name' => 'user_register',//订单完成
- 'listeners' => [
- 'addons\Happiness\common\listeners\UserRegisterListener',
- ]
- ],
- ],
- 'invoker' => [
- ['invoker_id' => \common\enums\GlobalFuncEnum::CART_LIST_APPEND_FILEDS, 'class' => 'addons\Happiness\common\service\GoodsService', 'method' => 'cartListAppendFields'],
- ['invoker_id' => \common\enums\GlobalFuncEnum::INVOKE_CLERK, 'class' => 'addons\Happiness\common\global_func\Clerk', 'method' => 'clerk'],
- ['invoker_id' => \common\enums\GlobalFuncEnum::ORDER_DETAIL, 'class' => 'addons\Happiness\common\service\OrderService', 'method' => 'globalOrderDetail'],
- ['invoker_id' => \common\enums\GlobalFuncEnum::BACKEND_ORDER_LIST, 'class' => 'addons\Happiness\common\service\OrderService', 'method' => 'globalBackendLists'],
- ['invoker_id' => \common\enums\GlobalFuncEnum::INVOKE_CLERK_DETAIL, 'class' => 'addons\Happiness\common\global_func\Clerk', 'method' => 'clerkDetail'],
- ],
- ];
|