初始上传

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

View File

@@ -0,0 +1,86 @@
<?php
/**
* Niushop商城系统 - 团队十年电商经验汇集巨献!
* =========================================================
* Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
* ----------------------------------------------
* 官方网址: https://www.niushop.com
* 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和使用。
* 任何企业和个人不允许对程序代码以任何形式任何目的再发布。
* =========================================================
*/
return [
// 自定义模板页面类型,格式:[ 'title' => '页面类型名称', 'name' => '页面标识', 'path' => '页面路径', 'value' => '页面数据json格式' ]
'template' => [],
// 后台自定义组件——装修
'util' => [],
// 自定义页面路径
'link' => [
[
'name' => 'GiftCARD',
'title' => '礼品卡',
'parent' => 'MARKETING_LINK',
'wap_url' => '',
'web_url' => '',
'sort' => 0,
'child_list' => [
[
'name' => 'GIFTCARDMANAGE',
'title' => '礼品卡专区',
'wap_url' => '/pages_promotion/giftcard/index',
'web_url' => '',
'sort' => 1
],
[
'name' => 'MYGIFTCARD',
'title' => '我的卡包',
'wap_url' => '/pages_promotion/giftcard/list',
'web_url' => '',
'sort' => 2
],
[
'name' => 'GIFTCARD_RECEIVE_LIST',
'title' => '收到的卡片',
'wap_url' => '/pages_promotion/giftcard/receive_list',
'web_url' => '',
'sort' => 3
],
[
'name' => 'GIFTCARD_GIVE_LIST',
'title' => '送出的卡片',
'wap_url' => '/pages_promotion/giftcard/give_list',
'web_url' => '',
'sort' => 4
],
[
'name' => 'GIFTCARD_EXCHANGE',
'title' => '卡密激活',
'wap_url' => '/pages_promotion/giftcard/exchange',
'web_url' => '',
'sort' => 5
],
]
],
],
// 自定义图标库
'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' => []
];

47
addon/giftcard/config/event.php Executable file
View File

@@ -0,0 +1,47 @@
<?php
// 事件定义文件
return [
'bind' => [
],
'listen' => [
//展示活动
'ShowPromotion' => [
'addon\giftcard\event\ShowPromotion',
],
'GiftCardOrderClose' => [
'addon\giftcard\event\GiftCardOrderClose',
],
'GiftCardOrderPayNotify' => [
'addon\giftcard\event\GiftCardOrderPayNotify',
],
'IncomeStatistics' => [
'addon\giftcard\event\IncomeStatistics'
],
//统计写入
'AddStat' => [
'addon\giftcard\event\AddStat',
],
'CronCardExpire' => [
'addon\giftcard\event\CronCardExpire'
],
'PayReset' => [
'addon\giftcard\event\PayReset'
],
'OrderPayAfter' => [
'addon\giftcard\event\OrderPayAfter'
],
'OrderPromotionType' => [
'addon\giftcard\event\OrderPromotionType',
],
//通过支付信息获取手机端订单详情路径
'WapOrderDetailPathByPayInfo' => [
'addon\giftcard\event\WapOrderDetailPathByPayInfo',
],
],
'subscribe' => [
],
];

20
addon/giftcard/config/info.php Executable file
View File

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

View File

@@ -0,0 +1,177 @@
<?php
// +----------------------------------------------------------------------
// | 店铺端菜单设置
// +----------------------------------------------------------------------
return [
[
'name' => 'PROMOTION_GIFTCARD',
'title' => '礼品卡',
'url' => 'giftcard://shop/giftcard/lists',
'picture' => 'addon/giftcard/shop/view/public/img/distribution_new.png',
'picture_selected' => 'addon/giftcard/shop/view/public/img/distribution_select.png',
'parent' => 'PROMOTION_CENTER',
'is_show' => 1,
'sort' => 100,
'child_list' => [
[
'name' => 'PROMOTION_GIFTCARD_LIST',
'title' => '礼品卡列表',
'url' => 'giftcard://shop/giftcard/lists',
'is_show' => 1,
'sort' => 1,
'child_list' => [
[
'name' => 'PROMOTION_GIFTCARD_ADD',
'title' => '添加礼品卡',
'url' => 'giftcard://shop/giftcard/add',
'sort' => 1,
'is_show' => 0,
'type' => 'button',
],
[
'name' => 'PROMOTION_GIFTCARD_EDIT',
'title' => '编辑礼品卡',
'url' => 'giftcard://shop/giftcard/edit',
'sort' => 2,
'is_show' => 0,
'type' => 'button',
],
[
'name' => 'PROMOTION_GIFTCARD_DELETE',
'title' => '删除礼品卡',
'url' => 'giftcard://shop/giftcard/delete',
'sort' => 3,
'is_show' => 0,
'type' => 'button',
],
[
'name' => 'PROMOTION_GIFTCARD_DETAIL',
'title' => '礼品卡详情',
'url' => 'giftcard://shop/giftcard/detail',
'sort' => 4,
'is_show' => 0,
'type' => 'button',
],
[
'name' => 'PROMOTION_GIFTCARD_IMPORT',
'title' => '制卡',
'url' => 'giftcard://shop/cardimport/lists',
'sort' => 5,
'is_show' => 0,
'type' => 'button',
],
[
'name' => 'PROMOTION_GIFTCARD_IMPORT_DETELE',
'title' => '删除',
'url' => 'giftcard://shop/cardimport/delete',
'sort' => 6,
'is_show' => 0,
'type' => 'button',
],
[
'name' => 'PROMOTION_GIFTCARD_CARD_LISTS',
'title' => '查看卡密',
'url' => 'giftcard://shop/card/lists',
'sort' => 6,
'is_show' => 0,
'type' => 'button',
],
[
'name' => 'PROMOTION_GIFTCARD_CARD_DETAIL',
'title' => '详情',
'url' => 'giftcard://shop/card/detail',
'sort' => 7,
'is_show' => 0,
'type' => 'button'
]
]
],
[
'name' => 'PROMOTION_GIFTCARD_CATEGORY_LIST',
'title' => '分组列表',
'url' => 'giftcard://shop/category/lists',
'is_show' => 1,
'sort' => 2,
'child_list' => [
[
'name' => 'PROMOTION_GIFTCARD_CATEGORY_ADD',
'title' => '添加分组',
'url' => 'giftcard://shop/category/add',
'sort' => 1,
'is_show' => 0,
'type' => 'button',
],
[
'name' => 'PROMOTION_GIFTCARD_CATEGORY_EDIT',
'title' => '编辑分组',
'url' => 'giftcard://shop/category/edit',
'sort' => 2,
'is_show' => 0,
'type' => 'button',
],
[
'name' => 'PROMOTION_GIFTCARD_CATEGORY_DELETE',
'title' => '删除分组',
'url' => 'giftcard://shop/category/delete',
'sort' => 3,
'is_show' => 0,
'type' => 'button',
]
],
],
[
'name' => 'PROMOTION_GIFTCARD_MEDIA_LIST',
'title' => '素材列表',
'url' => 'giftcard://shop/media/lists',
'is_show' => 1,
'sort' => 3,
'child_list' => [
[
'name' => 'PROMOTION_GIFTCARD_MEDIA_ADD',
'title' => '添加素材',
'url' => 'giftcard://shop/media/add',
'sort' => 1,
'is_show' => 0,
'type' => 'button',
],
[
'name' => 'PROMOTION_GIFTCARD_MEDIA_EDIT',
'title' => '编辑素材',
'url' => 'giftcard://shop/media/edit',
'sort' => 2,
'is_show' => 0,
'type' => 'button',
],
[
'name' => 'PROMOTION_GIFTCARD_MEDIA_DELETE',
'title' => '删除素材',
'url' => 'giftcard://shop/media/delete',
'sort' => 3,
'is_show' => 0,
'type' => 'button',
],
]
],
]
],
[
'name' => 'PROMOTION_GIFTCARD_BUYORDER',
'title' => '礼品卡订单',
'url' => 'giftcard://shop/order/order',
'is_show' => 1,
'sort' => 4,
'parent' => 'ORDER_MANAGE',
'child_list' => [
[
'name' => 'PROMOTION_GIFTCARD_BUYORDER_DETAIL',
'title' => '订单详情',
'url' => 'giftcard://shop/order/detail',
'sort' => 3,
'is_show' => 0,
],
]
],
];