| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282 |
- <?php
- use addons\WechatVideoShop\common\listeners\GoodsUpdateListener;
- use addons\WechatVideoShop\common\listeners\OrderCloseListener;
- use addons\WechatVideoShop\common\listeners\OrderCreateListener;
- use addons\WechatVideoShop\common\listeners\OrderDeliveryListener;
- use addons\WechatVideoShop\common\listeners\OrderFinishListener;
- use addons\WechatVideoShop\common\listeners\OrderPaidListener;
- use addons\WechatVideoShop\common\listeners\OrderRefundBuyerExpressListener;
- use addons\WechatVideoShop\common\listeners\OrderRefundCancelListener;
- use addons\WechatVideoShop\common\listeners\OrderRefundFinishListener;
- use addons\WechatVideoShop\common\listeners\OrderRefundListener;
- use addons\WechatVideoShop\common\listeners\OrderRefundUpdateListener;
- use addons\WechatVideoShop\common\listeners\OrderTakeDeliveryListener;
- return [
- // ----------------------- 菜单配置 ----------------------- //
- 'config' => [
- // 菜单配置
- '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']
- ],
- ];
|