初始上传
This commit is contained in:
38
addon/niusms/config/diy_view.php
Executable file
38
addon/niusms/config/diy_view.php
Executable file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
/**
|
||||
* Niushop商城系统 - 团队十年电商经验汇集巨献!
|
||||
* =========================================================
|
||||
* Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
|
||||
* ----------------------------------------------
|
||||
* 官方网址: https://www.niushop.com
|
||||
* =========================================================
|
||||
*/
|
||||
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' => []
|
||||
];
|
||||
38
addon/niusms/config/event.php
Executable file
38
addon/niusms/config/event.php
Executable file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
// 事件定义文件
|
||||
return [
|
||||
'bind' => [
|
||||
|
||||
],
|
||||
|
||||
'listen' => [
|
||||
//短信方式
|
||||
'SmsType' => [
|
||||
'addon\niusms\event\SmsType'
|
||||
],
|
||||
'DoEditSmsMessage' => [
|
||||
'addon\niusms\event\DoEditSmsMessage'
|
||||
],
|
||||
'SendSms' => [
|
||||
'addon\niusms\event\SendSms'
|
||||
],
|
||||
'SmsTemplateInfo' => [
|
||||
'addon\niusms\event\SmsTemplateInfo'
|
||||
],
|
||||
//启用回调,使用这个短信,就要关闭其他短信插件
|
||||
'EnableCallBack' => [
|
||||
'addon\niusms\event\EnableCallBack'
|
||||
],
|
||||
//查询启用的短信插件
|
||||
'EnableSms' => [
|
||||
'addon\niusms\event\EnableSms'
|
||||
],
|
||||
//关闭短信充值订单
|
||||
'CloseSmsPayment' => [
|
||||
'addon\niusms\event\CloseSmsPayment',
|
||||
],
|
||||
],
|
||||
|
||||
'subscribe' => [
|
||||
],
|
||||
];
|
||||
19
addon/niusms/config/info.php
Executable file
19
addon/niusms/config/info.php
Executable file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
/**
|
||||
* NiuShop商城系统 - 团队十年电商经验汇集巨献!
|
||||
* =========================================================
|
||||
* Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
|
||||
* ----------------------------------------------
|
||||
* 官方网址: https://www.niushop.com
|
||||
*/
|
||||
return [
|
||||
'name' => 'niusms',
|
||||
'title' => '牛云短信',
|
||||
'description' => '牛云短信功能',
|
||||
'type' => 'system', //插件类型 system :系统插件(自动安装), business:业务插件 promotion:营销插件 tool:工具插件
|
||||
'status' => 1,
|
||||
'author' => '',
|
||||
'version' => '5.5.3',
|
||||
'version_no' => '553250709001',
|
||||
'content' => '',
|
||||
];
|
||||
56
addon/niusms/config/menu_shop.php
Executable file
56
addon/niusms/config/menu_shop.php
Executable file
@@ -0,0 +1,56 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | 平台端菜单设置
|
||||
// +----------------------------------------------------------------------
|
||||
return [
|
||||
[
|
||||
'name' => 'NIU_SMS_CONFIG',
|
||||
'title' => '牛云短信配置',
|
||||
'url' => 'niusms://shop/sms/index',
|
||||
'parent' => 'SMS_MANAGE',
|
||||
'is_show' => 0,
|
||||
'is_control' => 1,
|
||||
'is_icon' => 0,
|
||||
'picture' => '',
|
||||
'picture_select' => '',
|
||||
'sort' => 1,
|
||||
'type' => 'button',
|
||||
'child_list' => [
|
||||
[
|
||||
'name' => 'NIU_SMS_LOGIN',
|
||||
'title' => '账户登录',
|
||||
'url' => 'niusms://shop/sms/login',
|
||||
'is_show' => 0,
|
||||
'sort' => 1,
|
||||
'type' => 'button',
|
||||
],
|
||||
[
|
||||
'name' => 'NIU_SMS_REGISTER',
|
||||
'title' => '账户注册',
|
||||
'url' => 'niusms://shop/sms/register',
|
||||
'is_show' => 0,
|
||||
'sort' => 2,
|
||||
'type' => 'button',
|
||||
],
|
||||
[
|
||||
'name' => 'NIU_SMS_Forget',
|
||||
'title' => '账户注册',
|
||||
'url' => 'niusms://shop/sms/forget',
|
||||
'is_show' => 0,
|
||||
'sort' => 3,
|
||||
'type' => 'button',
|
||||
],
|
||||
],
|
||||
],
|
||||
[
|
||||
'name' => 'NIU_MESSAGE_SMS_EDIT',
|
||||
'title' => '编辑牛云短信模板',
|
||||
'url' => 'niusms://shop/message/edit',
|
||||
'parent' => 'MESSAGE_LISTS',
|
||||
'is_show' => 0,
|
||||
'picture' => '',
|
||||
'picture_select' => '',
|
||||
'sort' => 1,
|
||||
'type' => 'button',
|
||||
],
|
||||
];
|
||||
Reference in New Issue
Block a user