@@ -3,13 +3,21 @@ import { ComponentStyle, DiyComponent } from '@/components/DiyEditor/util'
3
3
/** 拼团属性 */
4
4
export interface PromotionCombinationProperty {
5
5
// 布局类型:单列 | 三列
6
- layoutType : 'oneCol ' | 'threeCol '
6
+ layoutType : 'oneColBigImg ' | 'oneColSmallImg' | 'twoCol '
7
7
// 商品字段
8
8
fields : {
9
9
// 商品名称
10
10
name : PromotionCombinationFieldProperty
11
+ // 商品简介
12
+ introduction : PromotionCombinationFieldProperty
11
13
// 商品价格
12
14
price : PromotionCombinationFieldProperty
15
+ // 市场价
16
+ marketPrice : PromotionCombinationFieldProperty
17
+ // 商品销量
18
+ salesCount : PromotionCombinationFieldProperty
19
+ // 商品库存
20
+ stock : PromotionCombinationFieldProperty
13
21
}
14
22
// 角标
15
23
badge : {
@@ -18,14 +26,27 @@ export interface PromotionCombinationProperty {
18
26
// 角标图片
19
27
imgUrl : string
20
28
}
29
+ // 按钮
30
+ btnBuy : {
31
+ // 类型:文字 | 图片
32
+ type : 'text' | 'img'
33
+ // 文字
34
+ text : string
35
+ // 文字按钮:背景渐变起始颜色
36
+ bgBeginColor : string
37
+ // 文字按钮:背景渐变结束颜色
38
+ bgEndColor : string
39
+ // 图片按钮:图片地址
40
+ imgUrl : string
41
+ }
21
42
// 上圆角
22
43
borderRadiusTop : number
23
44
// 下圆角
24
45
borderRadiusBottom : number
25
46
// 间距
26
47
space : number
27
48
// 拼团活动编号
28
- activityId : number
49
+ activityIds : number [ ]
29
50
// 组件样式
30
51
style : ComponentStyle
31
52
}
@@ -44,12 +65,23 @@ export const component = {
44
65
name : '拼团' ,
45
66
icon : 'mdi:account-group' ,
46
67
property : {
47
- layoutType : 'oneCol ' ,
68
+ layoutType : 'oneColBigImg ' ,
48
69
fields : {
49
70
name : { show : true , color : '#000' } ,
50
- price : { show : true , color : '#ff3000' }
71
+ introduction : { show : true , color : '#999' } ,
72
+ price : { show : true , color : '#ff3000' } ,
73
+ marketPrice : { show : true , color : '#c4c4c4' } ,
74
+ salesCount : { show : true , color : '#c4c4c4' } ,
75
+ stock : { show : false , color : '#c4c4c4' }
51
76
} ,
52
77
badge : { show : false , imgUrl : '' } ,
78
+ btnBuy : {
79
+ type : 'text' ,
80
+ text : '去拼团' ,
81
+ bgBeginColor : '#FF6000' ,
82
+ bgEndColor : '#FE832A' ,
83
+ imgUrl : ''
84
+ } ,
53
85
borderRadiusTop : 8 ,
54
86
borderRadiusBottom : 8 ,
55
87
space : 8 ,
0 commit comments