|
@@ -1,97 +1,79 @@
|
|
|
-<?php
|
|
|
-return array
|
|
|
-(
|
|
|
- 'list' => array
|
|
|
- (
|
|
|
- 'field' => array
|
|
|
- (
|
|
|
- 'name',
|
|
|
- 'key',
|
|
|
- 'type',
|
|
|
- 'method',
|
|
|
- 'cdate',
|
|
|
- 'status' => array
|
|
|
- (
|
|
|
- 'type' => 'switch',
|
|
|
- 'show' => '{status}',
|
|
|
- 'active_value' => 1,
|
|
|
- 'inactive_value' => 2,
|
|
|
- ),
|
|
|
- ),
|
|
|
- 'button' => array
|
|
|
- (
|
|
|
- '新增' => 'add',
|
|
|
- ),
|
|
|
- 'data_button' => array
|
|
|
- (
|
|
|
- '设置' => 'edit',
|
|
|
- ),
|
|
|
- 'search' => array
|
|
|
- (
|
|
|
- 'name',
|
|
|
- 'key',
|
|
|
- 'status',
|
|
|
- )
|
|
|
- ),
|
|
|
- 'update' => array
|
|
|
- (
|
|
|
- 'tab' => array
|
|
|
- (
|
|
|
- '基本设置' => 'name,key,content,type,msg/template_code',
|
|
|
- '功能设置' => 'method,msg/template_sms,msg/template_email',
|
|
|
- ),
|
|
|
- 'field' => array
|
|
|
- (
|
|
|
- 'name',
|
|
|
- 'key',
|
|
|
- 'content' => array
|
|
|
- (
|
|
|
- 'type' => 'textarea',
|
|
|
- 'autosize' => array('minRows' => 2),
|
|
|
- 'desc' => '变量用大括号包含即可,如:{name}',
|
|
|
- ),
|
|
|
- 'type' => 'radio',
|
|
|
- 'msg/template_code' => array
|
|
|
- (
|
|
|
- 'name' => '验证码设置',
|
|
|
- 'where' => array('template_id' => 'id'),
|
|
|
- 'default' => array(array()),
|
|
|
-
|
|
|
- 'type' => 'line',
|
|
|
- ),
|
|
|
-
|
|
|
- 'method' => 'checkbox',
|
|
|
- 'msg/template_sms' => array
|
|
|
- (
|
|
|
- 'name' => '短信设置',
|
|
|
- 'where' => array('template_id' => 'id'),
|
|
|
- 'default' => array(array()),
|
|
|
-
|
|
|
- 'type' => 'line',
|
|
|
- ),
|
|
|
- 'msg/template_email' => array
|
|
|
- (
|
|
|
- 'name' => '邮件设置',
|
|
|
- 'where' => array('template_id' => 'id'),
|
|
|
- 'default' => array(array()),
|
|
|
-
|
|
|
- 'type' => 'line',
|
|
|
- ),
|
|
|
- ),
|
|
|
- 'control' => array
|
|
|
- (
|
|
|
- 'msg/template_code' => array
|
|
|
- (
|
|
|
- 'type' => 2,
|
|
|
- ),
|
|
|
- 'msg/template_sms' => array
|
|
|
- (
|
|
|
- 'method' => array('sms'),
|
|
|
- ),
|
|
|
- 'msg/template_email' => array
|
|
|
- (
|
|
|
- 'method' => array('email'),
|
|
|
- ),
|
|
|
- ),
|
|
|
- ),
|
|
|
-);
|
|
|
+<?php
|
|
|
+return [
|
|
|
+ 'list' => [
|
|
|
+ 'field' => [
|
|
|
+ 'name',
|
|
|
+ 'key',
|
|
|
+ 'type',
|
|
|
+ 'method',
|
|
|
+ 'cdate',
|
|
|
+ 'status' => [
|
|
|
+ 'type' => 'switch',
|
|
|
+ 'show' => '{status}',
|
|
|
+ 'active_value' => 1,
|
|
|
+ 'inactive_value' => 2,
|
|
|
+ ],
|
|
|
+ ],
|
|
|
+ 'button' => [
|
|
|
+ '新增' => 'add',
|
|
|
+ ],
|
|
|
+ 'data_button' => [
|
|
|
+ '设置' => 'edit',
|
|
|
+ ],
|
|
|
+ 'search' => [
|
|
|
+ 'name',
|
|
|
+ 'key',
|
|
|
+ 'status',
|
|
|
+ ]
|
|
|
+ ],
|
|
|
+ 'update' => [
|
|
|
+ 'tab' => [
|
|
|
+ '基本设置' => 'name,key,content,type,msg/template_code',
|
|
|
+ '功能设置' => 'method,msg/template_sms,msg/template_email',
|
|
|
+ ],
|
|
|
+ 'field' => [
|
|
|
+ 'name',
|
|
|
+ 'key',
|
|
|
+ 'content' => [
|
|
|
+ 'type' => 'textarea',
|
|
|
+ 'autosize' => ['minRows' => 2],
|
|
|
+ 'desc' => '变量用大括号包含即可,如:{name}',
|
|
|
+ ],
|
|
|
+ 'type' => 'radio',
|
|
|
+ 'msg/template_code' => [
|
|
|
+ 'name' => '验证码设置',
|
|
|
+ 'where' => ['template_id' => 'id'],
|
|
|
+ 'default' => [[]],
|
|
|
+
|
|
|
+ 'type' => 'line',
|
|
|
+ ],
|
|
|
+
|
|
|
+ 'method' => 'checkbox',
|
|
|
+ 'msg/template_sms' => [
|
|
|
+ 'name' => '短信设置',
|
|
|
+ 'where' => ['template_id' => 'id'],
|
|
|
+ 'default' => [[]],
|
|
|
+
|
|
|
+ 'type' => 'line',
|
|
|
+ ],
|
|
|
+ 'msg/template_email' => [
|
|
|
+ 'name' => '邮件设置',
|
|
|
+ 'where' => ['template_id' => 'id'],
|
|
|
+ 'default' => [[]],
|
|
|
+
|
|
|
+ 'type' => 'line',
|
|
|
+ ],
|
|
|
+ ],
|
|
|
+ 'control' => [
|
|
|
+ 'msg/template_code' => [
|
|
|
+ 'type' => 2,
|
|
|
+ ],
|
|
|
+ 'msg/template_sms' => [
|
|
|
+ 'method' => ['sms'],
|
|
|
+ ],
|
|
|
+ 'msg/template_email' => [
|
|
|
+ 'method' => ['email'],
|
|
|
+ ],
|
|
|
+ ],
|
|
|
+ ],
|
|
|
+];
|