rabin 2 gadi atpakaļ
vecāks
revīzija
63a149b69a

+ 36 - 1
app/content/database/company.php

@@ -57,6 +57,28 @@ return array
             'update'    => 'textarea',
         ),
 
+        'top_name'      => array
+        (
+            'type'      => 'varchar-80',
+            'name'      => '顶部标题',
+            'default'   => '',
+            'desc'      => '标题',
+            'match'     => 'is_string',
+            'update'    => 'text',
+            'list'      => true,
+            'search'    => 'fulltext',
+        ),
+
+        'top_desc'      => array
+        (
+            'type'      => 'varchar-500',
+            'name'      => '顶部描述',
+            'default'   => '',
+            'desc'      => '描述',
+            'match'     => 'is_string',
+            'update'    => 'textarea',
+        ),
+
         'top'     => array
         (
             'type'      => 'varchar-150',
@@ -118,7 +140,7 @@ return array
     # 管理功能
     'manage' => array
     (
-        'lang' => 'name,desc,content',
+        'lang' => 'name,desc,content,top_name,top_desc',
         # 列表
         'list_button' => array
         (
@@ -145,5 +167,18 @@ return array
             'limit' => '0,10',
             'col' => 'name as name, id, id as value, "" as selected, "" as disabled|id',
         ),
+
+        'getFive' => array
+        (
+            # 匹配的正则或函数 选填项
+            'option' => array
+            (
+                'state' => 1,
+            ),
+            'type' => 'all',
+            'order' => array('reorder' => 'desc', 'cdate' => 'desc'),
+            'limit' => '0,5',
+            'col' => '*',
+        ),
     ),
 );

+ 13 - 0
app/content/database/service.php

@@ -187,5 +187,18 @@ return array
             'limit' => '0,10',
             'col' => 'name as name, id, id as value, "" as selected, "" as disabled|id',
         ),
+
+        'getFive' => array
+        (
+            # 匹配的正则或函数 选填项
+            'option' => array
+            (
+                'state' => 1,
+            ),
+            'type' => 'all',
+            'order' => array('reorder' => 'desc', 'cdate' => 'desc'),
+            'limit' => '0,5',
+            'col' => '*',
+        ),
     ),
 );

+ 35 - 0
app/content/database/service_cate.php

@@ -35,6 +35,28 @@ return array
             'search'    => 'fulltext',
             'list'      => true,
         ),
+
+        'desc'      => array
+        (
+            'type'      => 'varchar-500',
+            'name'      => '分类描述',
+            'default'   => '',
+            'desc'      => '描述',
+            'match'     => 'is_string',
+            'update'    => 'textarea',
+        ),
+
+        'top'     => array
+        (
+            'type'      => 'varchar-150',
+            'name'      => '顶部图',
+            'default'   => '',
+            'desc'      => '顶部图',
+            'match'     => 'option',
+            'update'    => 'image',
+            'key'       => '1',
+            'place'     => '882*147',
+        ),
         
         'reorder'       => array
         (
@@ -113,5 +135,18 @@ return array
             'order' => array('reorder' => 'desc','id' => 'desc'),
             'col' => '*',
         ),
+
+        'getFive' => array
+        (
+            # 匹配的正则或函数 选填项
+            'option' => array
+            (
+                'state' => 1,
+            ),
+            'type' => 'all',
+            'order' => array('reorder' => 'desc', 'cdate' => 'desc'),
+            'limit' => '0,5',
+            'col' => '*',
+        ),
     ),
 );