rabin 1 year ago
parent
commit
27b5fe83cf

+ 1 - 1
src/dai/seller/database/info.php

@@ -126,7 +126,7 @@ return array
             'update_search' => 'user/lib/info.manage_search',
             # 绑定js脚本,更新时使用,第一个参数是执行的方式,第二个参数执行的方法,第三个参数是传值。
             //'bind'        => array('onblur', 'loading', array('url' => Dever::url("lib/info.manage_search","user"))),
-            'list'       => '"{uid}" ? Dever::load("user/lib/info.get#mobile", {uid}) : "暂无"',
+            'list'       => '"{uid}" ? Dever::load("user/lib/info.get#aname", {uid}) : "暂无"',
         ),
 
 		'name'		=> array

+ 1 - 1
src/dai/servicer/database/info.php

@@ -59,7 +59,7 @@ return array
             ),
             'update'    => 'select',
             'update_search' => 'user/lib/info.manage_search',
-            'list'       => '"{uid}" ? Dever::load("user/lib/info.get#mobile", {uid}) : "暂无"',
+            'list'       => '"{uid}" ? Dever::load("user/lib/info.get#aname", {uid}) : "暂无"',
         ),
 
 		'name'		=> array

+ 1 - 1
src/dai/supplier/database/info.php

@@ -54,7 +54,7 @@ return array
             ),
             'update'    => 'select',
             'update_search' => 'user/lib/info.manage_search',
-            'list'       => '"{uid}" ? Dever::load("user/lib/info.get#mobile", {uid}) : "暂无"',
+            'list'       => '"{uid}" ? Dever::load("user/lib/info.get#aname", {uid}) : "暂无"',
         ),
 
 		'name'		=> array

+ 12 - 0
src/yuan/content/database/article.php

@@ -128,6 +128,18 @@ return array
 			'match' 	=> 'is_string',
 			'update'	=> 'editor',
 			'key'		=> '1',
+			'editor'    => array
+            (
+                'name' => '选择插入模块',
+                'button' => array
+                (
+                    array
+                    (
+                        'name' => '商品',
+                        'key' => 'goods/lib/manage.editor',
+                    ),
+                ),
+            ),
 		),
 
 		'status'		=> array

+ 43 - 4
src/yuan/goods/database/info.php

@@ -372,12 +372,24 @@ $config = array
 			'match' 	=> 'is_numeric',
 		),
 
+		'cover'		=> array
+		(
+			'type' 		=> 'varchar-150',
+			'name' 		=> '商品封面图-展示在商品列表页,图片尺寸500*500px或等比尺寸,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式',
+			'default' 	=> '',
+			'desc' 		=> '商品封面图',
+			'match' 	=> 'option',
+			'update'	=> 'image',
+			'key' 		=> '1',
+			'place'		=> '500*500',
+		),
+
 		'pic'		=> array
 		(
 			'type' 		=> 'text-255',
-			'name' 		=> '商品主图-图片尺寸500*500px或等比尺寸,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式',
+			'name' 		=> '商品主图-展示在商品详情页顶部,图片尺寸500*500px或等比尺寸,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式',
 			'default' 	=> '',
-			'desc' 		=> '多张图片',
+			'desc' 		=> '商品主图',
 			'match' 	=> 'option',
 			'update'	=> 'images',
 			'key' 		=> '1',
@@ -387,7 +399,7 @@ $config = array
 		'video'     => array
         (
             'type'      => 'varchar-800',
-            'name'      => '商品视频-视频格式mp4,上传大小不能超过4G',
+            'name'      => '商品视频-展示在商品详情页顶部,如果传了视频,将显示在第一个,视频格式mp4,上传大小不能超过4G',
             'default'   => '',
             'desc'      => '商品视频',
             'match'     => 'option',
@@ -657,7 +669,34 @@ $config = array
                 'state' => 1,
             ),
             'type' => 'one',
-            'col' => 'id,name,category,pic,content,video,type,unit,spec_type,goods,commission,pay_money,money_id,score_id,sell_type,buy_type,udate,cdate',
+            'col' => '*',
+        ),
+
+        'getBaseOne' => array
+        (
+            # 匹配的正则或函数 选填项
+            'option' => array
+            (
+                'id' => 'yes',
+                'state' => 1,
+            ),
+            'type' => 'one',
+            'col' => 'id,name,cover,pic,status,state,unit_id,type,ship',
+        ),
+
+        'like' => array
+        (
+            # 匹配的正则或函数 选填项
+            'option' => array
+            (
+                'name' => array('yes', 'like'),
+                'id' => 'yes',
+                //'status' => 1,
+                'state' => 1,
+            ),
+            'type' => 'all',
+            'order' => array('reorder' => 'desc', 'id' => 'desc'),
+            'col' => '*|id',
         ),
 	),
 );