chore(addon): 添加线下支付及华为支付基本配置

This commit is contained in:
2025-12-01 11:36:51 +08:00
parent 3a7f510e19
commit e51f6c6544
40 changed files with 3238 additions and 12 deletions

View File

@@ -0,0 +1,30 @@
<?php
return [
// 自定义模板页面类型,格式:[ 'title' => '页面类型名称', 'name' => '页面标识', 'path' => '页面路径', 'value' => '页面数据json格式' ]
'template' => [],
// 后台自定义组件——装修
'util' => [],
// 自定义页面路径
'link' => [],
// 自定义图标库
'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' => []
];

View File

@@ -0,0 +1,30 @@
<?php
// 事件定义文件
return [
'bind' => [
],
'listen' => [
//支付方式,后台查询
'PayType' => [
'addon\offlinepay\event\PayType'
],
'Pay' => [
'addon\offlinepay\event\Pay'
],
'PayClose' => [
'addon\offlinepay\event\PayClose'
],
'PayRefund' => [
'addon\offlinepay\event\PayRefund'
],
'SendMessageTemplate' => [
'addon\offlinepay\event\MessageOfflinepayWaitAudit',
'addon\offlinepay\event\MessageOfflinepayAuditRefuse',
],
],
'subscribe' => [
],
];

View File

@@ -0,0 +1,12 @@
<?php
return [
'name' => 'offlinepay',
'title' => '线下支付',
'description' => '线下支付功能',
'type' => 'system', //插件类型 system :系统插件(自动安装), business:业务插件 promotion:扩展营销插件 tool:工具插件
'status' => 1,
'author' => '',
'version' => '5.5.2',
'version_no' => '552250604001',
'content' => '',
];

View File

@@ -0,0 +1,49 @@
<?php
// +----------------------------------------------------------------------
// | 平台端菜单设置
// +----------------------------------------------------------------------
return [
[
'name' => 'OFFLINE_PAY_CONFIG',
'title' => '线下支付编辑',
'url' => 'offlinepay://shop/pay/config',
'parent' => 'CONFIG_PAY',
'is_show' => 0,
'is_control' => 1,
'is_icon' => 0,
'sort' => 1,
'type' => 'button',
],
[
'name' => 'OFFLINE_PAY_LIST',
'title' => '线下支付',
'url' => 'offlinepay://shop/pay/lists',
'parent' => 'ORDER_MANAGE',
'is_show' => 1,
'is_control' => 1,
'is_icon' => 0,
'sort' => 8,
'child_list' => [
[
'name' => 'OFFLINE_PAY_AUDIT_PASS',
'title' => '审核通过',
'url' => 'offlinepay://shop/pay/auditpass',
'is_show' => 0,
'is_control' => 1,
'is_icon' => 0,
'sort' => 1,
'type' => 'button',
],
[
'name' => 'OFFLINE_PAY_AUDIT_REFUSE',
'title' => '审核拒绝',
'url' => 'offlinepay://shop/pay/auditrefuse',
'is_show' => 0,
'is_control' => 1,
'is_icon' => 0,
'sort' => 2,
'type' => 'button',
],
]
],
];