_config.js
2.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
var condition_type_list = [
{
name:'condition_combine',
caption :'顶级组合条件',
child : [
{
name:'condition_product',
caption :'产品属性组合条件',
child :[
{
name:'condition_product_sort',
caption :'分类'
},
{
name:'condition_product_brand' ,
caption :'品牌'
},
{
name:'condition_promotion_flag',
caption :'促销标记'
},
{
name:'condition_special_product',
caption :'特定产品'
}
]
},
{
name:"condition_payment",
caption :'支付方式',
html:{
operator:{
name:"operator",
type:"select"
},
value:{
name:"value",
type:"select"
}
}
}
]
}
];
var formDataKey = {
data : {name: "data"},
pnodeIndex :{name : "pnodeIndex"},
curnodeIndex : {name : "nodeIndex"}
};
var formSerializeArrayKey={
name:"name",
value:"value"
}
var conditon_base_conf = {
preffixName: "rule_condition",
splitor:"_",
firstLevelIndex:0,
/** condition_type_list 第一级 child 位置*/
productIndex:0,
paymentIndex:1,
/** condition_type_list 第一级 child 位置*/
product_sort_index:0,
product_brand_index:1,
promotion_flag_index:2,
special_product_index:3
};
var promotion_config={
condition_type_list: condition_type_list,
formDataKey : formDataKey,
formSerializeArrayKey : formSerializeArrayKey,
condition_base_conf: conditon_base_conf
}
module.exports = promotion_config;