[ // 菜单配置 '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'], ], ];