dever há 5 anos atrás
pai
commit
97465fbc9e
1 ficheiros alterados com 51 adições e 0 exclusões
  1. 51 0
      database/info.php

+ 51 - 0
database/info.php

@@ -26,6 +26,15 @@ $shop = function()
 	return $array;
 };
 
+$type = array
+(
+	1 => '自营',
+	2 => '淘宝',
+	3 => '京东',
+	4 => '拼多多',
+	11 => '其他',
+);
+
 $config = array
 (
 	# 表名
@@ -81,6 +90,46 @@ $config = array
 			//'edit'		=> true,
 		),
 
+		'type'		=> array
+		(
+			'type' 		=> 'int-11',
+			'name' 		=> '类型',
+			'default' 	=> '1',
+			'desc' 		=> '类型',
+			'match' 	=> 'is_numeric',
+			'update'	=> 'radio',
+			'option'	=> $type,
+			'control'	=> 'type',
+		),
+
+		'link'		=> array
+		(
+			'type' 		=> 'varchar-800',
+			'name' 		=> '链接',
+			'default' 	=> '',
+			'desc' 		=> '链接',
+			'match' 	=> 'is_string',
+			'update'	=> 'textarea',
+			'search'	=> 'fulltext',
+			//'list'		=> true,
+			//'edit'		=> true,
+			'show'		=> 'type=2,3,4,11',
+		),
+
+		'code'		=> array
+		(
+			'type' 		=> 'varchar-800',
+			'name' 		=> '购物码-可以复制的码,淘宝和拼多多有',
+			'default' 	=> '',
+			'desc' 		=> '购物码',
+			'match' 	=> 'is_string',
+			'update'	=> 'textarea',
+			'search'	=> 'fulltext',
+			//'list'		=> true,
+			//'edit'		=> true,
+			'show'		=> 'type=2,4',
+		),
+
 		'brand_id'		=> array
 		(
 			'type' 		=> 'int-11',
@@ -90,6 +139,7 @@ $config = array
 			'match' 	=> 'is_numeric',
 			'update'	=> 'select',
 			'option'	=> $brand,
+			'show'		=> 'type=1',
 		),
 
 		'shop_id'		=> array
@@ -101,6 +151,7 @@ $config = array
 			'match' 	=> 'is_numeric',
 			'update'	=> 'select',
 			'option'	=> $shop,
+			'show'		=> 'type=1',
 		),
 
 		'category'		=> array