初始上传

This commit is contained in:
2026-04-04 17:27:12 +08:00
parent 4d80d28eb4
commit b7e11774ee
11191 changed files with 1588469 additions and 0 deletions

67
addon/live/config/diy_view.php Executable file
View File

@@ -0,0 +1,67 @@
<?php
/**
* Niushop商城系统 - 团队十年电商经验汇集巨献!
* =========================================================
* Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
* ----------------------------------------------
* 官方网址: https://www.niushop.com
* =========================================================
*/
return [
// 自定义模板页面类型,格式:[ 'title' => '页面类型名称', 'name' => '页面标识', 'path' => '页面路径', 'value' => '页面数据json格式' ]
'template' => [],
// 后台自定义组件——装修
'util' => [
[
'name' => 'LiveInfo',
'title' => '小程序直播',
'type' => 'PROMOTION',
'value' => '{}',
'sort' => '30009',
'support_diy_view' => '',
'max_count' => 1,
'icon' => 'iconfont iconzhibojian'
]
],
// 自定义页面路径
'link' => [
[
'name' => 'LIVE',
'title' => '直播',
'parent' => 'MARKETING_LINK',
'wap_url' => '',
'web_url' => '',
'sort' => 0,
'child_list' => [
[
'name' => 'LIVE_LIST',
'title' => '直播',
'wap_url' => '/pages_tool/live/list',
'web_url' => '',
'sort' => 0
]
]
]
],
// 自定义图标库
'icon_library' => [],
// uni-app 组件,格式:[ 'name' => '组件名称/文件夹名称', 'path' => '文件路径/目录路径' ]多个逗号隔开自定义组件名称前缀必须是diy-,也可以引用第三方组件
'component' => [],
// uni-app 页面,多个逗号隔开
'pages' => [],
// 模板信息,格式:'title' => '模板名称', 'name' => '模板标识', 'cover' => '模板封面图', 'preview' => '模板预览图', 'desc' => '模板描述'
'info' => [],
// 主题风格配色格式可以自由定义扩展【在uni-app中通过this.themeStyle... 获取定义的颜色字段例如this.themeStyle.main_color】
'theme' => [],
// 自定义页面数据,格式:[ 'title' => '页面名称', 'name' => "页面标识", 'value' => [页面数据json格式] ]
'data' => []
];

28
addon/live/config/event.php Executable file
View File

@@ -0,0 +1,28 @@
<?php
// 事件定义文件
return [
'bind' => [
],
'listen' => [
//展示活动
'ShowPromotion' => [
'addon\live\event\ShowPromotion',
],
'WeappMenu' => [
'addon\live\event\WeappMenu',
],
// 轮询更新直播商品状态
'LiveGoodsStatus' => [
'addon\live\event\LiveGoodsStatus',
],
// 轮询更新直播间状态
'LiveRoomStatus' => [
'addon\live\event\LiveRoomStatus',
]
],
'subscribe' => [
],
];

21
addon/live/config/info.php Executable file
View File

@@ -0,0 +1,21 @@
<?php
/**
* Niushop商城系统 - 团队十年电商经验汇集巨献!
* =========================================================
* Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
* ----------------------------------------------
* 官方网址: https://www.niushop.com
* =========================================================
*/
return [
'name' => 'live',
'title' => '小程序直播',
'description' => '在小程序中实现直播互动与商品销售闭环',
'type' => 'tool', //插件类型 system :系统插件(自动安装), promotion:扩展营销插件 tool:工具插件
'status' => 1,
'author' => '',
'version' => '5.5.3',
'version_no' => '553250709001',
'content' => '',
];

106
addon/live/config/menu_shop.php Executable file
View File

@@ -0,0 +1,106 @@
<?php
// +----------------------------------------------------------------------
// | 平台端菜单设置
// +----------------------------------------------------------------------
return [
[
'name' => 'LIVE_ROOT',
'title' => '小程序直播',
'url' => 'live://shop/room/index',
'picture' => 'addon/live/shop/view/public/img/live_new.png',
'picture_selected' => 'addon/live/shop/view/public/img/live_select.png',
'parent' => 'PROMOTION_TOOL',
'is_show' => 1,
'sort' => 1,
'child_list' => [
[
'name' => 'LIVE_ROOM',
'title' => '直播间',
'url' => 'live://shop/room/index',
'is_show' => 1,
'sort' => 1,
'child_list' => [
[
'name' => 'ADD_LIVE_ROOM',
'title' => '添加直播间',
'url' => 'live://shop/room/add',
'is_show' => 0,
'sort' => 1,
'type' => 'button',
'type' => 'button',
],
[
'name' => 'DELETE_LIVE_ROOM',
'title' => '删除直播间',
'url' => 'live://shop/room/delete',
'is_show' => 0,
'sort' => 2,
'type' => 'button',
'type' => 'button',
],
[
'name' => 'LIVE_ROOM_OPERATE',
'title' => '运营',
'url' => 'live://shop/room/operate',
'is_show' => 0,
'sort' => 3,
'type' => 'button',
'type' => 'button',
],
[
'name' => 'SYNC_LIVE_ROOM',
'title' => '同步直播间',
'url' => 'live://shop/room/sync',
'is_show' => 0,
'sort' => 4,
'type' => 'button',
'type' => 'button',
],
[
'name' => 'ADD_GOODS_TO_LIVE_ROOM',
'title' => '添加商品到直播间',
'url' => 'live://shop/room/addGoods',
'is_show' => 0,
'sort' => 5,
'type' => 'button',
'type' => 'button',
]
]
],
[
'name' => 'LIVE_GOODS',
'title' => '直播商品',
'url' => 'live://shop/goods/index',
'is_show' => 1,
'sort' => 2,
'child_list' => [
[
'name' => 'ADD_LIVE_GOODS',
'title' => '添加商品',
'url' => 'live://shop/goods/add',
'is_show' => 0,
'sort' => 1,
'type' => 'button',
],
[
'name' => 'DELETE_LIVE_GOODS',
'title' => '删除商品',
'url' => 'live://shop/goods/delete',
'is_show' => 0,
'sort' => 2,
'type' => 'button',
],
[
'name' => 'SYNC_LIVE_GOODS',
'title' => '同步直播商品库',
'url' => 'live://shop/goods/sync',
'is_show' => 0,
'sort' => 3,
'type' => 'button',
]
]
],
]
]
];