| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218 |
- <?php
- use addons\Scratch\common\enums\ScratchEnum;
- return [
- // ----------------------- 菜单配置 ----------------------- //
- 'config' => [
- // 菜单配置
- 'menu' => [
- 'location' => 'default', // default:系统顶部菜单;addons:应用中心菜单
- 'icon' => 'fa fa-puzzle-piece',
- ],
- // 子模块配置
- 'modules' => [
- ],
- ],
- // ----------------------- 快捷入口 ----------------------- //
- 'cover' => [
- ],
- // ----------------------- 菜单配置 ----------------------- //
- 'menu' => [
- [
- 'title' => '奖品列表',
- 'route' => 'scratch/index',
- 'icon' => '',
- 'params' => [
- ],
- 'child' => [
- ],
- ],
- [
- 'title' => '抽奖记录',
- 'route' => 'scratch/log-index',
- 'icon' => '',
- 'params' => [
- ],
- 'child' => [
- ],
- ],
- // [
- // 'title' => '奖品订单',
- // 'route' => 'scratch-order/index',
- // 'icon' => '',
- // 'params' => [
- //
- // ],
- // 'child' => [
- //
- // ],
- // ],
- [
- 'title' => '基础配置',
- 'route' => 'setting/index',
- 'icon' => '',
- 'params' => [
- ],
- 'child' => [
- ],
- ],
- ],
- // ----------------------- 权限配置 ----------------------- //
- 'authItem' => [
- [
- 'title' => '刮刮卡',
- 'name' => '',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'Scratch',
- 'child'=>[
- [
- 'title' => '奖品列表',
- 'name' => 'scratch/index',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'Scratch',
- 'child'=>[
- [
- 'title' => '添加奖品页面',
- 'name' => 'scratch/edit',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'Scratch',
- ],
- [
- 'title' => '获取奖品详情数据',
- 'name' => 'scratch/get-edit',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'Scratch',
- ],
- [
- 'title' => '添加奖品保存',
- 'name' => 'scratch/save-edit',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'Scratch',
- ],
- [
- 'title' => '列表获取数据',
- 'name' => 'scratch/get-list',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'Scratch',
- ],
- [
- 'title' => '列表状态操作',
- 'name' => 'scratch/edit-status',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'Scratch',
- ],
- [
- 'title' => '删除奖品',
- 'name' => 'scratch/delete',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'Scratch',
- ],
- ],
- ],
- [
- 'title' => '抽奖记录',
- 'name' => 'scratch/log-index',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'Scratch',
- 'child'=>[
- [
- 'title' => '获取抽奖记录数据',
- 'name' => 'scratch/get-log-list',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'Scratch',
- ],
- ],
- ],
- // [
- // 'title' => '奖品订单',
- // 'name' => 'scratch-order/index',
- // 'app_id' => 'backend',
- // 'is_addon' => 1,
- // 'addons_name' => 'Scratch',
- // 'child'=>[
- // [
- // 'title' => '获取抽奖记录数据',
- // 'name' => 'scratch/get-log-list',
- // 'app_id' => 'backend',
- // 'is_addon' => 1,
- // 'addons_name' => 'Scratch',
- // ],
- // ],
- // ],
- [
- 'title' => '基础配置',
- 'name' => 'setting/index',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'Scratch',
- 'child'=>[
- [
- 'title' => '获取基础配置数据',
- 'name' => 'setting/get-setting',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'Scratch',
- ],
- [
- 'title' => '基础配置保存',
- 'name' => 'setting/save-setting',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'Scratch',
- ],
- [
- 'title' => '背景图保存',
- 'name' => 'setting/save-background',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'Scratch',
- ],
- ],
- ],
- ]
- ]
- ],
- // ----------------------- APP链接 ----------------------- //
- 'links' => [
- [
- 'title' => '刮刮卡',
- 'route' => '/plugins3/Scratch/index',
- 'icon' => '',
- 'params' => []
- ],
- ],
- // ----------------------- 事件处理 ----------------------- //
- 'events' => [
- ],
- ];
|