[ // 菜单配置 'menu' => [ 'location' => 'default', // default:系统顶部菜单;addons:应用中心菜单 'icon' => 'fa fa-puzzle-piece', ], // 子模块配置 'modules' => [ ], ], // ----------------------- 快捷入口 ----------------------- // 'cover' => [ ], // ----------------------- 菜单配置 ----------------------- // 'menu' => [ [ 'title' => '小店入驻', 'route' => 'default/index', 'icon' => '', 'params' => [], 'child' => [], ], [ 'title' => '商品列表', 'route' => 'goods/index', 'icon' => '', 'params' => [], 'child' => [], ], [ 'title' => '商品类目管理', 'route' => 'cate/index', 'icon' => '', 'params' => [], 'child' => [], ], // [ // 'title' => '订单管理', // 'route' => 'order/index', // 'icon' => '', // 'params' => [], // 'child' => [], // ], [ 'title' => '店铺管理', 'route' => 'shop/index', 'icon' => '', 'params' => [], 'child' => [], ], [ 'title' => '基础设置', 'route' => 'setting/index', 'icon' => '', 'params' => [], 'child' => [], ], ], // ----------------------- 权限配置 ----------------------- // 'authItem' => [ [ 'title' => '微信视频小店', 'name' => '', 'app_id' => 'backend', 'is_addon' => 1, 'addons_name' => 'WechatVideoShop', 'child' => [ [ 'title' => '小店入驻', 'name' => 'default/index', 'app_id' => 'backend', 'is_addon' => 1, 'addons_name' => 'WechatVideoShop', ], [ 'title' => '商品列表', 'name' => 'goods/index', 'app_id' => 'backend', 'is_addon' => 1, 'addons_name' => 'WechatVideoShop', ], [ 'title' => '引流获客', 'route' => 'sharer/index', 'icon' => '', 'params' => [], 'child' => [ [ 'title' => '分销员管理', 'route' => 'sharer/list', 'icon' => '', 'params' => [], 'child' => [], 'addons_name' => 'WechatVideoShop', ], [ 'title' => '邀请视频号分销员', 'route' => 'sharer/invite', 'icon' => '', 'params' => [], 'child' => [], 'addons_name' => 'WechatVideoShop', ], [ 'title' => '奖励明细', 'route' => 'commission/index', 'icon' => '', 'params' => [], 'child' => [], 'addons_name' => 'WechatVideoShop', ], [ 'title' => '分销员权重', 'route' => 'level/index', 'icon' => '', 'params' => [], 'child' => [], 'addons_name' => 'WechatVideoShop', ] ], 'addons_name' => 'WechatVideoShop', ], // [ // 'title' => '订单管理', // 'route' => 'order/index', // 'icon' => '', // 'params' => [], // 'child' => [], // 'addons_name' => 'WechatVideoShop', // ], [ 'title' => '商品类目管理', 'route' => 'cate/index', 'icon' => '', 'params' => [], 'child' => [], 'addons_name' => 'WechatVideoShop', ], [ 'title' => '店铺管理', 'name' => 'shop/index', 'app_id' => 'backend', 'is_addon' => 1, 'addons_name' => 'WechatVideoShop', ], [ 'title' => '基础设置', 'name' => 'setting/index', 'app_id' => 'backend', 'is_addon' => 1, 'addons_name' => 'WechatVideoShop', ], ], ], ], // ----------------------- APP链接 ----------------------- // 'links' => [ [ 'title' => '微信视频小店', 'route' => '/plugins3/WechatVideoShop/index', 'icon' => '', 'params' => [], ], [ 'title' => '分销员申请', 'route' => '/plugins3/WechatVideoShop/invite', 'icon' => '', 'params' => [], ], ], // ----------------------- 事件处理 ----------------------- // 'events' => [ // [ // 'event_name' => 'order_create', // 创建订单 - 不需要 // 'listeners' => [ // OrderCreateListener::class, // ] // ], [ 'event_name' => 'order_pay', // 订单支付 'listeners' => [ OrderPaidListener::class, ] ], [ 'event_name' => 'order_delivery', // 订单发货 'listeners' => [ OrderDeliveryListener::class, ] ], [ 'event_name' => 'order_take_delivery', // 订单收货 'listeners' => [ OrderTakeDeliveryListener::class, ] ], [ 'event_name' => 'order_finish', //订单完成 'listeners' => [ OrderFinishListener::class, ] ], [ 'event_name' => 'order_close', //订单关闭 'listeners' => [ OrderCloseListener::class, ] ], [ 'event_name' => 'order_refund', //申请售后 'listeners' => [ OrderRefundListener::class, ] ], [ 'event_name' => 'order_refund_buyer_delivery', //买家邮寄退货商品 'listeners' => [ OrderRefundBuyerExpressListener::class, ] ], [ 'event_name' => 'order_refund_cancel', //售后取消 'listeners' => [ OrderRefundCancelListener::class, ] ], [ 'event_name' => 'order_refund_finish', //售后完成 'listeners' => [ OrderRefundFinishListener::class, ] ], [ 'event_name' => 'order_refund_update', // 售后更新 'listeners' => [ OrderRefundUpdateListener::class, ] ], [ 'event_name' => 'goods_edit', // 商品更新 'listeners' => [ GoodsUpdateListener::class, ] ] ], // ----------------------- 公共调用 ----------------------- // 'invoker'=>[ ['invoker_id'=>\common\enums\GlobalFuncEnum::GOODS_MODEL,'class'=> \addons\WechatVideoShop\common\service\GoodsSettingService::class,'method'=>'globalGoodsModel'], ['invoker_id'=>\common\enums\GlobalFuncEnum::GOODS_MODEL_LEVEL,'class'=> \addons\WechatVideoShop\common\service\LevelService::class,'method'=>'globalGoodsModelLevel'], ['invoker_id'=>\common\enums\GlobalFuncEnum::PROMOTION,'class'=> \addons\WechatVideoShop\common\service\PromotionService::class, 'method'=>'getIncomeInfo'], ['invoker_id'=>\common\enums\GlobalFuncEnum::GET_INSTALL_ADDONS_LIST, 'class'=>\addons\WechatVideoShop\common\service\PromotionService::class,'method'=>'getAddons'] ], ];