|
@@ -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',
|
|
|
+
|
|
|
+ 'state' => 1,
|
|
|
+ ),
|
|
|
+ 'type' => 'all',
|
|
|
+ 'order' => array('reorder' => 'desc', 'id' => 'desc'),
|
|
|
+ 'col' => '*|id',
|
|
|
),
|
|
|
),
|
|
|
);
|