jufubao-food 1.0.12-beta3 → 1.0.12-beta5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/components/JfbFoodConfirmV2/JfbFoodConfirmV2.vue +1 -1
- package/src/components/JfbFoodConfirmV2/Mock.js +91 -12
- package/src/components/JfbFoodProductInfo/JfbFoodProductInfo.vue +7 -3
- package/src/components/JfbFoodProductInfo/Mock.js +316 -11
- package/src/components/JfbFoodProductInfo/XdSku.vue +1 -8
- package/src/components/JfbFoodProductList/JfbFoodProductList.vue +4 -4
- package/src/components/JfbFoodProductList/cusAttr/advanced.js +2 -2
- package/src/components/JfbFoodProductList/cusAttr/content.js +0 -159
- package/src/components/JfbFoodProductList/cusAttr/style.js +1 -545
package/package.json
CHANGED
|
@@ -209,7 +209,7 @@
|
|
|
209
209
|
:getSettleListCoupons="getSettleListCoupons"
|
|
210
210
|
:setSettleSelectCoupon="setSettleSelectCoupon"
|
|
211
211
|
></cus-coupon-chose>
|
|
212
|
-
<XdDailog :show.sync="showDialogConfirmShop" :showTitle="false"
|
|
212
|
+
<XdDailog :show.sync="showDialogConfirmShop" :showTitle="false">
|
|
213
213
|
<view>
|
|
214
214
|
<view style="font-size: 32rpx;margin: 60rpx auto 50rpx;">确认门店</view>
|
|
215
215
|
<view style="font-size: 28rpx;">
|
|
@@ -1,8 +1,87 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
getFoodCartConfirm: {
|
|
5
|
+
shop_info: {
|
|
6
|
+
shop_id: 1170110,
|
|
7
|
+
shop_name: "星巴克(平谷国泰店)",
|
|
8
|
+
shop_address: "北京平谷区文化北街13号国泰商场一层",
|
|
9
|
+
distance: 6722645,
|
|
10
|
+
distance_conversion: "6,722.6km",
|
|
11
|
+
shop_icon:
|
|
12
|
+
"https://jfbcake.oss-cn-beijing.aliyuncs.com/uploads/20220629/b9782f923292030447ff19b62c637715.jpg",
|
|
13
|
+
meal_method: [
|
|
14
|
+
{ value: "in_store", label: "店内就餐" },
|
|
15
|
+
{ value: "take_away", label: "外带" }
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
order_info: {
|
|
19
|
+
product_total_amount: 6400,
|
|
20
|
+
real_total_amount: 6400,
|
|
21
|
+
total_discount_price: 0,
|
|
22
|
+
total_market_price: 6400
|
|
23
|
+
},
|
|
24
|
+
product_infos: [
|
|
25
|
+
{
|
|
26
|
+
product_id: 707,
|
|
27
|
+
product_name: "双杯抹茶星冰乐®",
|
|
28
|
+
product_sku: "",
|
|
29
|
+
specs: [
|
|
30
|
+
{
|
|
31
|
+
spec_code: "Cupsize",
|
|
32
|
+
spec_name: "杯型",
|
|
33
|
+
spec_value_code: "Grande",
|
|
34
|
+
spec_value_name: "大杯",
|
|
35
|
+
image: ""
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
spec_code: "Temperature",
|
|
39
|
+
spec_name: "温度",
|
|
40
|
+
spec_value_code: "Cold",
|
|
41
|
+
spec_value_name: "冰",
|
|
42
|
+
image: ""
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
spec_code: "Milk",
|
|
46
|
+
spec_name: "添加或更换牛奶",
|
|
47
|
+
spec_value_code: "6411150",
|
|
48
|
+
spec_value_name: "全脂牛奶",
|
|
49
|
+
image: ""
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
spec_code: "Cream",
|
|
53
|
+
spec_name: "饮品顶部",
|
|
54
|
+
spec_value_code: "DefaultCream",
|
|
55
|
+
spec_value_name: "标准搅打稀奶油",
|
|
56
|
+
image: ""
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
spec_code: "MultiChangeSyrup",
|
|
60
|
+
spec_name: "无糖风味定制/添加",
|
|
61
|
+
spec_value_code: "710045678",
|
|
62
|
+
spec_value_name: "香草风味",
|
|
63
|
+
image: ""
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
spec_code: "ChangeSugar",
|
|
67
|
+
spec_name: "甜度选择",
|
|
68
|
+
spec_value_code: "ClassicSugar",
|
|
69
|
+
spec_value_name: "经典糖",
|
|
70
|
+
image: ""
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
sub_name: "大杯/冰/全脂牛奶/标准搅打稀奶油/香草风味/经典糖",
|
|
74
|
+
num: 1,
|
|
75
|
+
image:
|
|
76
|
+
"https://image.quanma51.com/self/mahua/sbk/product/7b45d7de7c684b48b14725c7816c4ec9!img",
|
|
77
|
+
show_prices: [{ p: 6400, n: "PLUS价", t: "S" }],
|
|
78
|
+
tip: ""
|
|
79
|
+
}
|
|
80
|
+
],
|
|
81
|
+
is_show_vip_card_list: "N",
|
|
82
|
+
request_id: "30f4902e9dc47c0f"
|
|
83
|
+
},
|
|
84
|
+
getFoodCardList: {
|
|
6
85
|
list: [
|
|
7
86
|
{
|
|
8
87
|
card_number: "101001000005193",
|
|
@@ -71,14 +150,14 @@ module.exports = {
|
|
|
71
150
|
request_id: "ee8f030d48df4faa"
|
|
72
151
|
},
|
|
73
152
|
getPayMethod: {
|
|
74
|
-
|
|
75
|
-
{
|
|
76
|
-
{
|
|
77
|
-
{
|
|
78
|
-
{
|
|
79
|
-
{
|
|
153
|
+
list: [
|
|
154
|
+
{ method: "third", show_name: "使用补差", icon: "icon_2" },
|
|
155
|
+
{ method: "card", show_name: "使用票券", icon: "icon_4" },
|
|
156
|
+
{ method: "score", show_name: "使用积分", icon: "icon_3" },
|
|
157
|
+
{ method: "wallet", show_name: "使用余额", icon: "icon_1" },
|
|
158
|
+
{ method: "coupon", show_name: "使用满减券", icon: "icon_1" }
|
|
80
159
|
],
|
|
81
|
-
|
|
160
|
+
request_id: "83b92e9b30d37c9f"
|
|
82
161
|
},
|
|
83
162
|
getUserWallet: {
|
|
84
163
|
show_name: "我的元宝",
|
|
@@ -106,5 +185,5 @@ module.exports = {
|
|
|
106
185
|
}
|
|
107
186
|
],
|
|
108
187
|
request_id: "823e7aa78fa32fa9"
|
|
109
|
-
}
|
|
110
|
-
}
|
|
188
|
+
}
|
|
189
|
+
};
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
<xd-sku :skus="skus" @change="handleSkuChange"></xd-sku>
|
|
45
45
|
</view>
|
|
46
46
|
|
|
47
|
-
<view class="attr_wrap">
|
|
47
|
+
<view v-if="spuList.length" class="attr_wrap">
|
|
48
48
|
<!-- <xd-spu ref="mySpu" @change="handleSpuChange"></xd-spu> -->
|
|
49
49
|
<xd-spu ref="mySpu" :list="spuList" @change="handleSpuChange"></xd-spu>
|
|
50
50
|
</view>
|
|
@@ -241,12 +241,16 @@
|
|
|
241
241
|
src: res.base_info.thumb
|
|
242
242
|
}];
|
|
243
243
|
this.baseInfo = res.base_info;
|
|
244
|
+
this.skus = res.base_info.skus;
|
|
244
245
|
}).catch(err => {
|
|
245
246
|
this.$xdHideLoading()
|
|
246
247
|
})
|
|
247
248
|
},
|
|
248
249
|
addCart(){
|
|
249
|
-
let specs =
|
|
250
|
+
let specs = [];
|
|
251
|
+
if(this.$refs['mySpu']){
|
|
252
|
+
specs = this.$refs['mySpu'].getSpecs();
|
|
253
|
+
}
|
|
250
254
|
console.log(specs);
|
|
251
255
|
jfbRootExec("addFoodCart", {
|
|
252
256
|
vm: this,
|
|
@@ -312,7 +316,7 @@
|
|
|
312
316
|
|
|
313
317
|
.jfb-food-product-info {
|
|
314
318
|
&__body{
|
|
315
|
-
background-color: #
|
|
319
|
+
background-color: #f8f8f8;
|
|
316
320
|
.xd-store-product {
|
|
317
321
|
color: #333;
|
|
318
322
|
&__swiper {
|
|
@@ -1,13 +1,318 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
4
|
+
getFoodProductDetail: {
|
|
5
|
+
base_info: {
|
|
6
|
+
product_id: "708",
|
|
7
|
+
product_name: "双杯红茶拿铁",
|
|
8
|
+
category_id: "a0aacaff0fb278c5f8127cec63ec3a53",
|
|
9
|
+
thumb:
|
|
10
|
+
"https://image.quanma51.com/self/mahua/sbk/product/c54d777ee7c34cd29a800c2e219249b0!img",
|
|
11
|
+
sub_title:
|
|
12
|
+
"超微研磨的优质红茶粉在蒸煮牛奶中呈现出丰盈口感。醇厚细腻,香气馥郁,慢慢品享这红茶与牛奶的对话。本饮品不含咖啡。毫升数仅供参考,饮品量以实际为准。本产品不支持七天无理由退货。/MOP主要原料:红茶固体饮料,牛奶,香草风味饮料浓浆,原味糖浆",
|
|
13
|
+
show_prices: [{ p: 5200, n: "PLUS价", t: "S" }],
|
|
14
|
+
skus: [],
|
|
15
|
+
spus: [
|
|
16
|
+
{
|
|
17
|
+
product_sku: "",
|
|
18
|
+
specs: [
|
|
19
|
+
{
|
|
20
|
+
code: "Cupsize",
|
|
21
|
+
name: "杯型",
|
|
22
|
+
required: true,
|
|
23
|
+
multiple: false,
|
|
24
|
+
multiple_min: 1,
|
|
25
|
+
multiple_max: -1,
|
|
26
|
+
is_show_image: false,
|
|
27
|
+
values: [
|
|
28
|
+
{
|
|
29
|
+
code: "Tall",
|
|
30
|
+
name: "中杯",
|
|
31
|
+
image: "",
|
|
32
|
+
price: 0,
|
|
33
|
+
num: 1,
|
|
34
|
+
checked: false,
|
|
35
|
+
enabled: true
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
code: "Grande",
|
|
39
|
+
name: "大杯",
|
|
40
|
+
image: "",
|
|
41
|
+
price: 600,
|
|
42
|
+
num: 1,
|
|
43
|
+
checked: true,
|
|
44
|
+
enabled: true
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
code: "Venti",
|
|
48
|
+
name: "超大杯",
|
|
49
|
+
image: "",
|
|
50
|
+
price: 1200,
|
|
51
|
+
num: 1,
|
|
52
|
+
checked: false,
|
|
53
|
+
enabled: true
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
code: "Temperature",
|
|
59
|
+
name: "温度",
|
|
60
|
+
required: true,
|
|
61
|
+
multiple: false,
|
|
62
|
+
multiple_min: 1,
|
|
63
|
+
multiple_max: -1,
|
|
64
|
+
is_show_image: false,
|
|
65
|
+
values: [
|
|
66
|
+
{
|
|
67
|
+
code: "6200007",
|
|
68
|
+
name: "特别热",
|
|
69
|
+
image: "",
|
|
70
|
+
price: 0,
|
|
71
|
+
num: 1,
|
|
72
|
+
checked: false,
|
|
73
|
+
enabled: true
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
code: "Hot",
|
|
77
|
+
name: "热",
|
|
78
|
+
image: "",
|
|
79
|
+
price: 0,
|
|
80
|
+
num: 1,
|
|
81
|
+
checked: true,
|
|
82
|
+
enabled: true
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
code: "6411088",
|
|
86
|
+
name: "微热",
|
|
87
|
+
image: "",
|
|
88
|
+
price: 0,
|
|
89
|
+
num: 1,
|
|
90
|
+
checked: false,
|
|
91
|
+
enabled: true
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
code: "Cold",
|
|
95
|
+
name: "冰",
|
|
96
|
+
image: "",
|
|
97
|
+
price: 0,
|
|
98
|
+
num: 1,
|
|
99
|
+
checked: false,
|
|
100
|
+
enabled: true
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
code: "6411085",
|
|
104
|
+
name: "少冰",
|
|
105
|
+
image: "",
|
|
106
|
+
price: 0,
|
|
107
|
+
num: 1,
|
|
108
|
+
checked: false,
|
|
109
|
+
enabled: true
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
code: "9710026",
|
|
113
|
+
name: "去冰",
|
|
114
|
+
image: "",
|
|
115
|
+
price: 0,
|
|
116
|
+
num: 1,
|
|
117
|
+
checked: false,
|
|
118
|
+
enabled: true
|
|
119
|
+
}
|
|
120
|
+
]
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
code: "Milk",
|
|
124
|
+
name: "添加或更换牛奶",
|
|
125
|
+
required: true,
|
|
126
|
+
multiple: false,
|
|
127
|
+
multiple_min: 1,
|
|
128
|
+
multiple_max: -1,
|
|
129
|
+
is_show_image: false,
|
|
130
|
+
values: [
|
|
131
|
+
{
|
|
132
|
+
code: "6411150",
|
|
133
|
+
name: "全脂牛奶",
|
|
134
|
+
image: "",
|
|
135
|
+
price: 0,
|
|
136
|
+
num: 1,
|
|
137
|
+
checked: true,
|
|
138
|
+
enabled: true
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
code: "710029599",
|
|
142
|
+
name: "巴旦木奶",
|
|
143
|
+
image: "",
|
|
144
|
+
price: 0,
|
|
145
|
+
num: 1,
|
|
146
|
+
checked: false,
|
|
147
|
+
enabled: true
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
code: "6411174",
|
|
151
|
+
name: "燕麦奶",
|
|
152
|
+
image: "",
|
|
153
|
+
price: 0,
|
|
154
|
+
num: 1,
|
|
155
|
+
checked: false,
|
|
156
|
+
enabled: true
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
code: "5400001",
|
|
160
|
+
name: "脱脂牛奶",
|
|
161
|
+
image: "",
|
|
162
|
+
price: 0,
|
|
163
|
+
num: 1,
|
|
164
|
+
checked: false,
|
|
165
|
+
enabled: true
|
|
166
|
+
}
|
|
167
|
+
]
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
code: "FoamMopFilter",
|
|
171
|
+
name: "奶泡",
|
|
172
|
+
required: true,
|
|
173
|
+
multiple: false,
|
|
174
|
+
multiple_min: 1,
|
|
175
|
+
multiple_max: -1,
|
|
176
|
+
is_show_image: false,
|
|
177
|
+
values: [
|
|
178
|
+
{
|
|
179
|
+
code: "DefaultFoamMopFilter",
|
|
180
|
+
name: "标准奶泡",
|
|
181
|
+
image: "",
|
|
182
|
+
price: 0,
|
|
183
|
+
num: 1,
|
|
184
|
+
checked: true,
|
|
185
|
+
enabled: true
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
code: "6411090",
|
|
189
|
+
name: "去奶泡",
|
|
190
|
+
image: "",
|
|
191
|
+
price: 0,
|
|
192
|
+
num: 1,
|
|
193
|
+
checked: false,
|
|
194
|
+
enabled: true
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
code: "6411137",
|
|
198
|
+
name: "少奶泡",
|
|
199
|
+
image: "",
|
|
200
|
+
price: 0,
|
|
201
|
+
num: 1,
|
|
202
|
+
checked: false,
|
|
203
|
+
enabled: true
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
code: "6411089",
|
|
207
|
+
name: "多奶泡",
|
|
208
|
+
image: "",
|
|
209
|
+
price: 0,
|
|
210
|
+
num: 1,
|
|
211
|
+
checked: false,
|
|
212
|
+
enabled: true
|
|
213
|
+
}
|
|
214
|
+
]
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
code: "BlackTeaDrinkPowderMopFilter",
|
|
218
|
+
name: "红茶底",
|
|
219
|
+
required: true,
|
|
220
|
+
multiple: false,
|
|
221
|
+
multiple_min: 1,
|
|
222
|
+
multiple_max: -1,
|
|
223
|
+
is_show_image: false,
|
|
224
|
+
values: [
|
|
225
|
+
{
|
|
226
|
+
code: "DefaultBlackTeaMopFilter",
|
|
227
|
+
name: "标准",
|
|
228
|
+
image: "",
|
|
229
|
+
price: 0,
|
|
230
|
+
num: 1,
|
|
231
|
+
checked: true,
|
|
232
|
+
enabled: true
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
code: "6411145",
|
|
236
|
+
name: "少",
|
|
237
|
+
image: "",
|
|
238
|
+
price: 0,
|
|
239
|
+
num: 1,
|
|
240
|
+
checked: false,
|
|
241
|
+
enabled: true
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
code: "6411146",
|
|
245
|
+
name: "多",
|
|
246
|
+
image: "",
|
|
247
|
+
price: 0,
|
|
248
|
+
num: 1,
|
|
249
|
+
checked: false,
|
|
250
|
+
enabled: true
|
|
251
|
+
}
|
|
252
|
+
]
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
code: "MultiChangeSyrup",
|
|
256
|
+
name: "无糖风味定制/添加",
|
|
257
|
+
required: true,
|
|
258
|
+
multiple: false,
|
|
259
|
+
multiple_min: 1,
|
|
260
|
+
multiple_max: -1,
|
|
261
|
+
is_show_image: false,
|
|
262
|
+
values: [
|
|
263
|
+
{
|
|
264
|
+
code: "710045678",
|
|
265
|
+
name: "香草风味",
|
|
266
|
+
image: "",
|
|
267
|
+
price: 0,
|
|
268
|
+
num: 1,
|
|
269
|
+
checked: true,
|
|
270
|
+
enabled: true
|
|
271
|
+
}
|
|
272
|
+
]
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
code: "ChangeSugar",
|
|
276
|
+
name: "甜度选择",
|
|
277
|
+
required: true,
|
|
278
|
+
multiple: false,
|
|
279
|
+
multiple_min: 1,
|
|
280
|
+
multiple_max: -1,
|
|
281
|
+
is_show_image: false,
|
|
282
|
+
values: [
|
|
283
|
+
{
|
|
284
|
+
code: "ClassicSugar",
|
|
285
|
+
name: "经典糖",
|
|
286
|
+
image: "",
|
|
287
|
+
price: 0,
|
|
288
|
+
num: 1,
|
|
289
|
+
checked: true,
|
|
290
|
+
enabled: true
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
code: "ZeroCalorieSugar",
|
|
294
|
+
name: "0热量代糖",
|
|
295
|
+
image: "",
|
|
296
|
+
price: 0,
|
|
297
|
+
num: 1,
|
|
298
|
+
checked: false,
|
|
299
|
+
enabled: true
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
code: "NoExtraSugar",
|
|
303
|
+
name: "不另外加糖",
|
|
304
|
+
image: "",
|
|
305
|
+
price: 0,
|
|
306
|
+
num: 1,
|
|
307
|
+
checked: false,
|
|
308
|
+
enabled: true
|
|
309
|
+
}
|
|
310
|
+
]
|
|
311
|
+
}
|
|
312
|
+
]
|
|
313
|
+
}
|
|
314
|
+
]
|
|
315
|
+
},
|
|
316
|
+
request_id: "d30913e9c3d8c613"
|
|
317
|
+
}
|
|
318
|
+
};
|
|
@@ -85,17 +85,10 @@ export default {
|
|
|
85
85
|
this.$emit("change", {...n});
|
|
86
86
|
}
|
|
87
87
|
},
|
|
88
|
+
immediate: true
|
|
88
89
|
},
|
|
89
90
|
},
|
|
90
91
|
computed:{
|
|
91
|
-
choseSkuName(){
|
|
92
|
-
if(!this.currSku) return "";
|
|
93
|
-
let standards = this.currSku.standards;
|
|
94
|
-
if(standards){
|
|
95
|
-
return standards.map(item => item.value).join(" - ");
|
|
96
|
-
}
|
|
97
|
-
return ""
|
|
98
|
-
},
|
|
99
92
|
|
|
100
93
|
},
|
|
101
94
|
async created(){
|
|
@@ -259,7 +259,7 @@
|
|
|
259
259
|
methods: {
|
|
260
260
|
onJfbLoad(options) {
|
|
261
261
|
this.setNameSpace(options);
|
|
262
|
-
this.resource_shop_id = options.resource_shop_id
|
|
262
|
+
this.resource_shop_id = options.resource_shop_id;
|
|
263
263
|
this.consume_mode = options.consume_mode || 'HDSELF';
|
|
264
264
|
|
|
265
265
|
this.p_getFoodShopDetail();
|
|
@@ -269,8 +269,8 @@
|
|
|
269
269
|
* @param container {object} 业务组件对象自己
|
|
270
270
|
*/
|
|
271
271
|
init(container) {
|
|
272
|
-
this.foodDetailPath = getContainerPropsValue(container, 'content.foodDetailPath', {value: "/
|
|
273
|
-
this.confirmPath = getContainerPropsValue(container, 'content.confirmPath', {value: "/
|
|
272
|
+
this.foodDetailPath = getContainerPropsValue(container, 'content.foodDetailPath', {value: "/Smallline/food/pinfo"}).value;
|
|
273
|
+
this.confirmPath = getContainerPropsValue(container, 'content.confirmPath', {value: "/Smallline/food/confirmv2"}).value;
|
|
274
274
|
this.switchStorePath = getContainerPropsValue(container, 'content.switchStorePath', { value: ''}).value;
|
|
275
275
|
this.productConfig = this.getProductConfig(container);
|
|
276
276
|
},
|
|
@@ -625,7 +625,7 @@
|
|
|
625
625
|
|
|
626
626
|
.jfb-food-product-list {
|
|
627
627
|
&__body{
|
|
628
|
-
background-color: #
|
|
628
|
+
background-color: #f8f8f8;
|
|
629
629
|
.flex-center{
|
|
630
630
|
display: flex;
|
|
631
631
|
align-items: center;
|
|
@@ -7,7 +7,7 @@ export default (data)=>{
|
|
|
7
7
|
ele: 'xd-select-pages-path',
|
|
8
8
|
valueKey: 'foodDetailPath',
|
|
9
9
|
placeholder: '请选择商品详情页跳转地址',
|
|
10
|
-
value: data.
|
|
10
|
+
value: data.foodDetailPath || null,
|
|
11
11
|
labelInline: true,
|
|
12
12
|
setting: {
|
|
13
13
|
router: XdBus.getParentApi('getPagesTree'),
|
|
@@ -20,7 +20,7 @@ export default (data)=>{
|
|
|
20
20
|
ele: 'xd-select-pages-path',
|
|
21
21
|
valueKey: 'confirmPath',
|
|
22
22
|
placeholder: '请选择订单确认页跳转地址',
|
|
23
|
-
value: data.
|
|
23
|
+
value: data.confirmPath || null,
|
|
24
24
|
labelInline: true,
|
|
25
25
|
setting: {
|
|
26
26
|
router: XdBus.getParentApi('getPagesTree'),
|
|
@@ -36,164 +36,5 @@ export default function (data, gValue,gColor,oldData){
|
|
|
36
36
|
.catch();
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
|
-
|
|
40
|
-
{
|
|
41
|
-
label: "引导支付",
|
|
42
|
-
ele: "xd-radio",
|
|
43
|
-
valueKey: "guidePay",
|
|
44
|
-
value: dataVal({data, key:'guidePay', dValue: "Y", gValue}),
|
|
45
|
-
groupKey: "content",
|
|
46
|
-
labelInline: true,
|
|
47
|
-
className: 'input100',
|
|
48
|
-
notice:'<div style="margin-right: 10px;">无使用他支付时弹框引导使用票券、钱包、优惠券</div>',
|
|
49
|
-
inline: false,
|
|
50
|
-
list: [
|
|
51
|
-
{label: '是', value: 'Y'},
|
|
52
|
-
{label: '否', value: 'N'},
|
|
53
|
-
]
|
|
54
|
-
},
|
|
55
|
-
//2.0新属性
|
|
56
|
-
{
|
|
57
|
-
label: "票券定位",
|
|
58
|
-
ele: "xd-radio",
|
|
59
|
-
valueKey: "ticketPositionStatus",
|
|
60
|
-
value: dataVal({data, key: "ticketPositionStatus", dValue: "N", gValue}),
|
|
61
|
-
groupKey: "content",
|
|
62
|
-
labelInline: true,
|
|
63
|
-
inline: false,
|
|
64
|
-
notice: "开启后会提示票券选择,点击自动滚动到选择支付位置",
|
|
65
|
-
list: [
|
|
66
|
-
{ label: "显示", value: "Y" },
|
|
67
|
-
{ label: "隐藏", value: "N" },
|
|
68
|
-
]
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
label: "使用新票券",
|
|
72
|
-
ele: "xd-radio",
|
|
73
|
-
valueKey: "bindCard",
|
|
74
|
-
value: dataVal({data, key:'bindCard', dValue: "1", gValue}),
|
|
75
|
-
groupKey:'content',
|
|
76
|
-
labelInline: true,
|
|
77
|
-
inline: false,
|
|
78
|
-
notice: `<div style="margin-right: 50px;">票劵选择时是否隐藏使用新票券入口</div>`,
|
|
79
|
-
list: [
|
|
80
|
-
{ label: "显示", value: "1" },
|
|
81
|
-
{ label: "隐藏", value: "2" },
|
|
82
|
-
]
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
label: "补差提示",
|
|
86
|
-
ele: 'xd-radio',
|
|
87
|
-
valueKey: "skipTip",
|
|
88
|
-
value: dataVal({data, key:'skipTip', dValue: "N", gValue}),
|
|
89
|
-
groupKey:'content',
|
|
90
|
-
labelInline: true,
|
|
91
|
-
inline: false,
|
|
92
|
-
notice: "无其它支付方式时,是否弹框提示全部补差",
|
|
93
|
-
list: [
|
|
94
|
-
{label: '跳过', value: 'Y'},
|
|
95
|
-
{label: '不跳过', value: 'N'},
|
|
96
|
-
],
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
ele: 'title',
|
|
100
|
-
label: '组件样式',
|
|
101
|
-
size: 'small',
|
|
102
|
-
groupKey:'content',
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
label: "内容样式",
|
|
106
|
-
ele: "xd-style-image",
|
|
107
|
-
groupKey: 'content',
|
|
108
|
-
valueKey: "cont_style",
|
|
109
|
-
cusStyle: {marginBottom: '5px'},
|
|
110
|
-
value: customVal({
|
|
111
|
-
data,
|
|
112
|
-
key: 'cont_style',
|
|
113
|
-
gValue,
|
|
114
|
-
fields: { sectionHeightStatus: ['sectionHeight'], lrPaddingStatus: ['lrPadding'] },
|
|
115
|
-
sValue: `{"spacing":20,"margin":{"bottom":0,"top":0,"left":0,"right":0},"backgroundColor": "rgba(245, 245, 245, 1)"}`,
|
|
116
|
-
}),
|
|
117
|
-
labelInline:true,
|
|
118
|
-
isTplRef: true, //内容引用模版被禁用
|
|
119
|
-
className: 'input100',
|
|
120
|
-
handleCustom(cusRes) {
|
|
121
|
-
XdBus.getParentApi('getCompStylesOptions')({
|
|
122
|
-
layout_ids: 'nEdG7N3K7pwb4SgrDuYLP',
|
|
123
|
-
key: Date.now()
|
|
124
|
-
})
|
|
125
|
-
.then(res => {
|
|
126
|
-
cusRes.data.cb(res)
|
|
127
|
-
})
|
|
128
|
-
.catch(error => {
|
|
129
|
-
console.error(error);
|
|
130
|
-
});
|
|
131
|
-
},
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
label: "优惠券风格",
|
|
135
|
-
ele: "xd-style-image",
|
|
136
|
-
groupKey: "content",
|
|
137
|
-
valueKey: "coupon_layout",
|
|
138
|
-
value: dataVal({data, key:'coupon_layout', dValue: '1', gValue}),
|
|
139
|
-
labelInline:true,
|
|
140
|
-
className: 'input100',
|
|
141
|
-
isTplRef: true, //内容引用模版被禁用
|
|
142
|
-
handleCustom(cusRes) {
|
|
143
|
-
XdBus.getParentApi('getCompStylesOptions')({
|
|
144
|
-
layout_ids: 'xt8e4k6jYdxBpzwnpMvbv',
|
|
145
|
-
key: Date.now()
|
|
146
|
-
})
|
|
147
|
-
.then(res => {
|
|
148
|
-
cusRes.data.cb(res)
|
|
149
|
-
})
|
|
150
|
-
.catch(error => {
|
|
151
|
-
console.error(error);
|
|
152
|
-
});
|
|
153
|
-
},
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
ele: 'title',
|
|
157
|
-
label: '显示内容',
|
|
158
|
-
size: 'small',
|
|
159
|
-
groupKey:'content',
|
|
160
|
-
},
|
|
161
|
-
|
|
162
|
-
{
|
|
163
|
-
label: '订购人信息',
|
|
164
|
-
ele: 'xd-cus-switch',
|
|
165
|
-
valueKey: 'showBuyer',
|
|
166
|
-
value: dataVal({data, key:'showBuyer', dValue: 'Y', gValue}),
|
|
167
|
-
className: 'input100',
|
|
168
|
-
groupKey:'content',
|
|
169
|
-
labelInline:true,
|
|
170
|
-
cusStyle:{marginBottom: '10px'},
|
|
171
|
-
setting: {
|
|
172
|
-
tips:['显示','不显示'],
|
|
173
|
-
isBackType: 'string'
|
|
174
|
-
},
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
ele:'xd-line',
|
|
178
|
-
groupKey:'content'
|
|
179
|
-
},
|
|
180
|
-
{
|
|
181
|
-
label: '订单备注',
|
|
182
|
-
ele: 'xd-cus-switch',
|
|
183
|
-
valueKey: 'showOrderComment',
|
|
184
|
-
value: dataVal({data, key:'showOrderComment', dValue: 'Y', gValue}),
|
|
185
|
-
className: 'input100',
|
|
186
|
-
groupKey:'content',
|
|
187
|
-
labelInline:true,
|
|
188
|
-
cusStyle:{marginBottom: '10px'},
|
|
189
|
-
setting: {
|
|
190
|
-
tips:['显示','不显示'],
|
|
191
|
-
isBackType: 'string'
|
|
192
|
-
},
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
ele:'xd-line',
|
|
196
|
-
groupKey:'content'
|
|
197
|
-
},
|
|
198
39
|
].filter(i=>i)
|
|
199
40
|
}
|
|
@@ -14,549 +14,5 @@ import {
|
|
|
14
14
|
const Color = require('color');
|
|
15
15
|
|
|
16
16
|
export default function (data={},gValue={},gColor={},oldData) {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
let isContDisabled = cusDisabled({
|
|
20
|
-
data,
|
|
21
|
-
key: 'cont_style',
|
|
22
|
-
fields: { sectionHeightStatus: ['sectionHeight'], lrPaddingStatus: ['lrPadding'] },
|
|
23
|
-
gValue
|
|
24
|
-
});
|
|
25
|
-
let isAddrDisabled = cusDisabled({
|
|
26
|
-
data,
|
|
27
|
-
key: 'addr_style',
|
|
28
|
-
fields: { addrLrPaddingStatus: ['addrLrPadding'] },
|
|
29
|
-
gValue
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
return [
|
|
33
|
-
{
|
|
34
|
-
ele: 'title',
|
|
35
|
-
label: '常规',
|
|
36
|
-
size: 'small',
|
|
37
|
-
groupKey:'style',
|
|
38
|
-
},
|
|
39
|
-
// {
|
|
40
|
-
// label: '外边距',
|
|
41
|
-
// ele: 'xd-radio',
|
|
42
|
-
// groupKey: 'style',
|
|
43
|
-
// valueKey: 'bodyPaddingStatus',
|
|
44
|
-
// value: statusDataVal({data, key:'bodyPaddingStatus', dValue: 'D', gValue}),
|
|
45
|
-
// labelInline:true,
|
|
46
|
-
// list: [
|
|
47
|
-
// {label: '默认', value: 'D'},
|
|
48
|
-
// {label: '自定义', value: 'C'},
|
|
49
|
-
// ]
|
|
50
|
-
// },
|
|
51
|
-
// {ele: 'group_start'},
|
|
52
|
-
// {
|
|
53
|
-
// label: '',
|
|
54
|
-
// ele: 'xd-margin-padding',
|
|
55
|
-
// groupKey:'style',
|
|
56
|
-
// valueKey: 'bodyPadding',
|
|
57
|
-
// hidden: statusShow({data, key: 'bodyPaddingStatus', dValue: 'D', gValue}), //隐藏自定义外边距
|
|
58
|
-
// value: dataVal({
|
|
59
|
-
// data,
|
|
60
|
-
// key:'bodyPadding',
|
|
61
|
-
// dValue:[0],
|
|
62
|
-
// gValue,
|
|
63
|
-
// isPM: true,
|
|
64
|
-
// isCPM: true,
|
|
65
|
-
// }),
|
|
66
|
-
// setting: {
|
|
67
|
-
// type: 'margin',
|
|
68
|
-
// },
|
|
69
|
-
// },
|
|
70
|
-
// {ele: 'group_end'},
|
|
71
|
-
{
|
|
72
|
-
label: "行间距",
|
|
73
|
-
ele: "xd-radio",
|
|
74
|
-
groupKey: "style",
|
|
75
|
-
valueKey: "sectionHeightStatus",
|
|
76
|
-
value: statusDataVal({data, key:'sectionHeightStatus', fields:['sectionHeight'], gValue, cusField:['cont_style']}),
|
|
77
|
-
disabled: isContDisabled,
|
|
78
|
-
isRefresh: isContDisabled,
|
|
79
|
-
labelInline:true,
|
|
80
|
-
list: [
|
|
81
|
-
{label: '默认', value: 'D'},
|
|
82
|
-
{label: '自定义', value: 'C'},
|
|
83
|
-
]
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
ele: "group_start"
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
label: "",
|
|
90
|
-
groupKey: 'style',
|
|
91
|
-
ele: 'xd-slider',
|
|
92
|
-
valueKey: "sectionHeight",
|
|
93
|
-
value: dataVal({data, key:'sectionHeight', dValue: '16', gValue}),
|
|
94
|
-
hidden: !statusShow({data, key: 'sectionHeightStatus', fields:['sectionHeight'], gValue}),
|
|
95
|
-
className: "input100",
|
|
96
|
-
labelInline: true,
|
|
97
|
-
setting:{
|
|
98
|
-
min: 0,
|
|
99
|
-
max: 100,
|
|
100
|
-
step:1,
|
|
101
|
-
showStops:false,
|
|
102
|
-
showInput:false,
|
|
103
|
-
}
|
|
104
|
-
},
|
|
105
|
-
{ele: 'group_end'},
|
|
106
|
-
|
|
107
|
-
{
|
|
108
|
-
ele: 'title',
|
|
109
|
-
label: '内容区',
|
|
110
|
-
size: 'small',
|
|
111
|
-
groupKey:'style',
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
label: '两侧边距',
|
|
115
|
-
ele: 'xd-radio',
|
|
116
|
-
groupKey: 'style',
|
|
117
|
-
valueKey: 'lrPaddingStatus',
|
|
118
|
-
value: statusDataVal({data, key:'lrPaddingStatus', dValue: 'D', gValue, cusField:['cont_style']}),
|
|
119
|
-
disabled: isContDisabled,
|
|
120
|
-
isRefresh: isContDisabled,
|
|
121
|
-
labelInline:true,
|
|
122
|
-
list: [
|
|
123
|
-
{label: '默认', value: 'D'},
|
|
124
|
-
{label: '自定义', value: 'C'},
|
|
125
|
-
]
|
|
126
|
-
},
|
|
127
|
-
{ele: 'group_start'},
|
|
128
|
-
{
|
|
129
|
-
label: '',
|
|
130
|
-
ele: 'xd-margin-padding',
|
|
131
|
-
groupKey:'style',
|
|
132
|
-
valueKey: 'lrPadding',
|
|
133
|
-
hidden: statusShow({data, key: 'lrPaddingStatus', dValue: 'D', gValue}), //隐藏自定义外边距
|
|
134
|
-
value: dataVal({
|
|
135
|
-
data,
|
|
136
|
-
key:'lrPadding',
|
|
137
|
-
dValue:[0],
|
|
138
|
-
gValue,
|
|
139
|
-
isPM: true,
|
|
140
|
-
isCPM: true,
|
|
141
|
-
}),
|
|
142
|
-
setting: {
|
|
143
|
-
type: 'margin',
|
|
144
|
-
top: false,
|
|
145
|
-
bottom: false,
|
|
146
|
-
},
|
|
147
|
-
},
|
|
148
|
-
{ele: 'group_end'},
|
|
149
|
-
|
|
150
|
-
{
|
|
151
|
-
label: '圆角',
|
|
152
|
-
ele: 'xd-radio',
|
|
153
|
-
groupKey: 'style',
|
|
154
|
-
valueKey: 'radiusStatus',
|
|
155
|
-
value: statusDataVal({data, key:'radiusStatus', dValue: 'D', gValue}),
|
|
156
|
-
labelInline:true,
|
|
157
|
-
list: [
|
|
158
|
-
{label: '默认', value: 'D'},
|
|
159
|
-
{label: '无圆角', value: 'N'},
|
|
160
|
-
{label: '自定义', value: 'C'},
|
|
161
|
-
]
|
|
162
|
-
},
|
|
163
|
-
{ele: 'group_start'},
|
|
164
|
-
{
|
|
165
|
-
label: '',
|
|
166
|
-
ele: 'xd-site-select-list',
|
|
167
|
-
labelInline: true,
|
|
168
|
-
valueKey: 'radius',
|
|
169
|
-
value: dataVal({data, key:'radius', dValue:'10', gValue}),
|
|
170
|
-
hidden: !statusShow({data, key: 'radiusStatus', dValue: 'C', gValue}),
|
|
171
|
-
placeholder: '请选择是否设置圆角',
|
|
172
|
-
multiple: false,
|
|
173
|
-
className: 'input80',
|
|
174
|
-
groupKey:'style',
|
|
175
|
-
handleCustom({action, data}) {
|
|
176
|
-
XdBus.getParentApi('getOptionsSettingList')({
|
|
177
|
-
setting_id: 'edtix_style_radius',
|
|
178
|
-
key: Date.now()
|
|
179
|
-
})
|
|
180
|
-
.then(res => {
|
|
181
|
-
res.list = res.list.filter(item=>{
|
|
182
|
-
return item.label !== '无';
|
|
183
|
-
});
|
|
184
|
-
data.cb(res.list)
|
|
185
|
-
})
|
|
186
|
-
.catch(error => {
|
|
187
|
-
console.error(error);
|
|
188
|
-
});
|
|
189
|
-
},
|
|
190
|
-
},
|
|
191
|
-
{ele: 'group_end'},
|
|
192
|
-
|
|
193
|
-
{
|
|
194
|
-
label: "投影",
|
|
195
|
-
ele: "xd-radio",
|
|
196
|
-
groupKey: "style",
|
|
197
|
-
valueKey: "blockShadowStatus",
|
|
198
|
-
value: statusDataVal({data, key:'blockShadowStatus', dValue: 'N', gValue}),
|
|
199
|
-
labelInline:true,
|
|
200
|
-
list: [
|
|
201
|
-
{label: '默认', value: 'D'},
|
|
202
|
-
{label: '无投影', value: 'N'},
|
|
203
|
-
{label: '自定义', value: 'C'},
|
|
204
|
-
]
|
|
205
|
-
},
|
|
206
|
-
|
|
207
|
-
{ele: 'group_start'},
|
|
208
|
-
{
|
|
209
|
-
label: '',
|
|
210
|
-
ele: 'xd-shadow',
|
|
211
|
-
labelInline: true,
|
|
212
|
-
groupKey:'style',
|
|
213
|
-
valueKey: 'blockShadow',
|
|
214
|
-
value: dataVal({data, key:'blockShadow', dValue:{}, gValue}),
|
|
215
|
-
hidden: !statusShow({data, key: 'blockShadowStatus', dValue: 'C', gValue}),
|
|
216
|
-
className: 'input100',
|
|
217
|
-
setting: {
|
|
218
|
-
isCloseType: true, //关闭type选项
|
|
219
|
-
//设置默认值
|
|
220
|
-
default: {
|
|
221
|
-
color: '#e5e5e5',
|
|
222
|
-
width: '10',
|
|
223
|
-
}
|
|
224
|
-
},
|
|
225
|
-
handleCustom({action, data}) {
|
|
226
|
-
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
|
|
227
|
-
.then(res => {
|
|
228
|
-
res.list = res.list.filter(item=>{
|
|
229
|
-
return item.label !== '无';
|
|
230
|
-
});
|
|
231
|
-
data.cb(res.list)
|
|
232
|
-
})
|
|
233
|
-
.catch(error => {
|
|
234
|
-
console.error(error);
|
|
235
|
-
data.cb([])
|
|
236
|
-
});
|
|
237
|
-
},
|
|
238
|
-
},
|
|
239
|
-
{ele: 'group_end'},
|
|
240
|
-
|
|
241
|
-
{
|
|
242
|
-
ele: 'title',
|
|
243
|
-
label: '收货地址',
|
|
244
|
-
size: 'small',
|
|
245
|
-
groupKey:'style',
|
|
246
|
-
},
|
|
247
|
-
|
|
248
|
-
{
|
|
249
|
-
label: "两侧边距",
|
|
250
|
-
ele: "xd-radio",
|
|
251
|
-
groupKey: "style",
|
|
252
|
-
valueKey: "addrLrPaddingStatus",
|
|
253
|
-
value: statusDataVal({data, key:'addrLrPaddingStatus', dValue: 'D', gValue, cusField:['addr_style']}),
|
|
254
|
-
disabled: isAddrDisabled,
|
|
255
|
-
isRefresh: isAddrDisabled,
|
|
256
|
-
labelInline:true,
|
|
257
|
-
list: [
|
|
258
|
-
{label: '默认', value: 'D'},
|
|
259
|
-
{label: '自定义', value: 'C'},
|
|
260
|
-
]
|
|
261
|
-
},
|
|
262
|
-
{ele: 'group_start'},
|
|
263
|
-
{
|
|
264
|
-
label: '',
|
|
265
|
-
ele: 'xd-margin-padding',
|
|
266
|
-
groupKey:'style',
|
|
267
|
-
valueKey: 'addrLrPadding',
|
|
268
|
-
hidden: statusShow({data, key: 'addrLrPaddingStatus', dValue: 'D', gValue}), //隐藏自定义外边距
|
|
269
|
-
value: dataVal({
|
|
270
|
-
data,
|
|
271
|
-
key:'addrLrPadding',
|
|
272
|
-
dValue:[0],
|
|
273
|
-
gValue,
|
|
274
|
-
isPM: true,
|
|
275
|
-
isCPM: true,
|
|
276
|
-
}),
|
|
277
|
-
setting: {
|
|
278
|
-
type: 'margin',
|
|
279
|
-
top: false,
|
|
280
|
-
bottom: false,
|
|
281
|
-
},
|
|
282
|
-
},
|
|
283
|
-
{ele: 'group_end'},
|
|
284
|
-
|
|
285
|
-
{
|
|
286
|
-
label: "圆角",
|
|
287
|
-
ele: "xd-radio",
|
|
288
|
-
groupKey: "style",
|
|
289
|
-
valueKey: "addrRadiusStatus",
|
|
290
|
-
value: statusDataVal({data, key:'addrRadiusStatus', dValue: 'D', gValue}),
|
|
291
|
-
labelInline:true,
|
|
292
|
-
list: [
|
|
293
|
-
{label: '默认', value: 'D'},
|
|
294
|
-
{label: '无圆角', value: 'N'},
|
|
295
|
-
{label: '自定义', value: 'C'},
|
|
296
|
-
]
|
|
297
|
-
},
|
|
298
|
-
{ele: 'group_start'},
|
|
299
|
-
{
|
|
300
|
-
label: '',
|
|
301
|
-
ele: 'xd-site-select-list',
|
|
302
|
-
labelInline: true,
|
|
303
|
-
valueKey: 'addrRadius',
|
|
304
|
-
value: dataVal({data, key:'addrRadius', dValue:'10', gValue}),
|
|
305
|
-
hidden: !statusShow({data, key: 'addrRadiusStatus', dValue: 'C', gValue}),
|
|
306
|
-
placeholder: '请选择是否设置圆角',
|
|
307
|
-
multiple: false,
|
|
308
|
-
className: 'input80',
|
|
309
|
-
groupKey:'style',
|
|
310
|
-
handleCustom({action, data}) {
|
|
311
|
-
XdBus.getParentApi('getOptionsSettingList')({
|
|
312
|
-
setting_id: 'edtix_style_radius',
|
|
313
|
-
key: Date.now()
|
|
314
|
-
})
|
|
315
|
-
.then(res => {
|
|
316
|
-
res.list = res.list.filter(item=>{
|
|
317
|
-
return item.label !== '无';
|
|
318
|
-
});
|
|
319
|
-
data.cb(res.list)
|
|
320
|
-
})
|
|
321
|
-
.catch(error => {
|
|
322
|
-
console.error(error);
|
|
323
|
-
});
|
|
324
|
-
},
|
|
325
|
-
},
|
|
326
|
-
{ele: 'group_end'},
|
|
327
|
-
|
|
328
|
-
{
|
|
329
|
-
label: "投影",
|
|
330
|
-
ele: "xd-radio",
|
|
331
|
-
groupKey: "style",
|
|
332
|
-
valueKey: "addrShadowStatus",
|
|
333
|
-
value: statusDataVal({data, key:'addrShadowStatus', dValue: 'N', gValue}),
|
|
334
|
-
labelInline:true,
|
|
335
|
-
list: [
|
|
336
|
-
{label: '默认', value: 'D'},
|
|
337
|
-
{label: '隐藏', value: 'N'},
|
|
338
|
-
{label: '自定义', value: 'C'},
|
|
339
|
-
]
|
|
340
|
-
},
|
|
341
|
-
{ele: 'group_start'},
|
|
342
|
-
{
|
|
343
|
-
label: '',
|
|
344
|
-
ele: 'xd-shadow',
|
|
345
|
-
labelInline: true,
|
|
346
|
-
groupKey:'style',
|
|
347
|
-
valueKey: 'addrShadow',
|
|
348
|
-
value: dataVal({data, key:'addrShadow', dValue:{}, gValue}),
|
|
349
|
-
hidden: !statusShow({data, key: 'addrShadowStatus', dValue: 'C', gValue}),
|
|
350
|
-
className: 'input100',
|
|
351
|
-
setting: {
|
|
352
|
-
isCloseType: true, //关闭type选项
|
|
353
|
-
//设置默认值
|
|
354
|
-
default: {
|
|
355
|
-
color: '#e5e5e5',
|
|
356
|
-
width: '10',
|
|
357
|
-
}
|
|
358
|
-
},
|
|
359
|
-
handleCustom({action, data}) {
|
|
360
|
-
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
|
|
361
|
-
.then(res => {
|
|
362
|
-
res.list = res.list.filter(item=>{
|
|
363
|
-
return item.label !== '无';
|
|
364
|
-
});
|
|
365
|
-
data.cb(res.list)
|
|
366
|
-
})
|
|
367
|
-
.catch(error => {
|
|
368
|
-
console.error(error);
|
|
369
|
-
data.cb([])
|
|
370
|
-
});
|
|
371
|
-
},
|
|
372
|
-
},
|
|
373
|
-
{ele: 'group_end'},
|
|
374
|
-
|
|
375
|
-
{
|
|
376
|
-
ele: 'title',
|
|
377
|
-
label: '底部按钮区域',
|
|
378
|
-
size: 'small',
|
|
379
|
-
groupKey:'style',
|
|
380
|
-
},
|
|
381
|
-
{
|
|
382
|
-
label: "内边距",
|
|
383
|
-
ele: "xd-radio",
|
|
384
|
-
groupKey: "style",
|
|
385
|
-
valueKey: "bottomPaddingStatus",
|
|
386
|
-
value: statusDataVal({data, key:'bottomPaddingStatus', fields: ['bottomPadding'], gValue}),
|
|
387
|
-
labelInline:true,
|
|
388
|
-
list: [
|
|
389
|
-
{label: '默认', value: 'D'},
|
|
390
|
-
{label: '自定义', value: 'C'},
|
|
391
|
-
]
|
|
392
|
-
},
|
|
393
|
-
{ele: 'group_start'},
|
|
394
|
-
{
|
|
395
|
-
label: '',
|
|
396
|
-
ele: 'xd-margin-padding',
|
|
397
|
-
groupKey:'style',
|
|
398
|
-
valueKey: 'bottomPadding',
|
|
399
|
-
hidden: !statusShow({data, key: 'bottomPaddingStatus', fields: ['bottomPadding'], gValue}), //隐藏自定义外边距
|
|
400
|
-
value: dataVal({
|
|
401
|
-
data,
|
|
402
|
-
key:'bottomPadding',
|
|
403
|
-
dValue:[0],
|
|
404
|
-
gValue,
|
|
405
|
-
isPM: true,
|
|
406
|
-
isCPM: true,
|
|
407
|
-
}),
|
|
408
|
-
setting: {
|
|
409
|
-
type: 'margin',
|
|
410
|
-
},
|
|
411
|
-
},
|
|
412
|
-
{ele: 'group_end'},
|
|
413
|
-
|
|
414
|
-
{
|
|
415
|
-
label: "按钮样式",
|
|
416
|
-
ele: "xd-radio",
|
|
417
|
-
groupKey: "style",
|
|
418
|
-
valueKey: "btnStyleStatus",
|
|
419
|
-
value: statusDataVal({data, key:'btnStyleStatus', fields: ['bottomBtnRadius', 'bottomBtnHeight', 'bottomPayText'], gValue}),
|
|
420
|
-
labelInline:true,
|
|
421
|
-
list: [
|
|
422
|
-
{label: '默认', value: 'D'},
|
|
423
|
-
{label: '自定义', value: 'C'},
|
|
424
|
-
]
|
|
425
|
-
},
|
|
426
|
-
{ele: "group_start"},
|
|
427
|
-
{
|
|
428
|
-
label: "圆角",
|
|
429
|
-
ele: 'xd-site-select-list',
|
|
430
|
-
valueKey: 'bottomBtnRadius',
|
|
431
|
-
groupKey:'style',
|
|
432
|
-
value: dataVal({data, key:'bottomBtnRadius', dValue: '40', gValue}),
|
|
433
|
-
hidden: !statusShow({data, key: 'btnStyleStatus', fields: ['bottomBtnRadius', 'bottomBtnHeight', 'bottomPayText'], gValue}),
|
|
434
|
-
placeholder: '请选择内容圆角设置',
|
|
435
|
-
labelInline: true,
|
|
436
|
-
multiple: false,
|
|
437
|
-
className: 'input80',
|
|
438
|
-
handleCustom({action, data}) {
|
|
439
|
-
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
|
|
440
|
-
.then(res => {
|
|
441
|
-
data.cb(res.list)
|
|
442
|
-
})
|
|
443
|
-
.catch(error => {
|
|
444
|
-
console.error(error);
|
|
445
|
-
});
|
|
446
|
-
},
|
|
447
|
-
},
|
|
448
|
-
{
|
|
449
|
-
label: "高度",
|
|
450
|
-
ele: 'el-input',
|
|
451
|
-
type: 'number',
|
|
452
|
-
valueKey: 'bottomBtnHeight',
|
|
453
|
-
groupKey:'style',
|
|
454
|
-
value: dataVal({data, key:'bottomBtnHeight', dValue: 60, gValue}),
|
|
455
|
-
hidden: !statusShow({data, key: 'btnStyleStatus', fields: ['bottomBtnRadius', 'bottomBtnHeight', 'bottomPayText'], gValue}),
|
|
456
|
-
labelInline: true,
|
|
457
|
-
append: 'px',
|
|
458
|
-
placeholder: '请输入操作按钮高度',
|
|
459
|
-
className: 'input80',
|
|
460
|
-
},
|
|
461
|
-
{
|
|
462
|
-
label: '文字',
|
|
463
|
-
ele: "el-input",
|
|
464
|
-
valueKey: 'bottomPayText',
|
|
465
|
-
groupKey:'style',
|
|
466
|
-
value: dataVal({data, key:'bottomPayText', dValue: '支付', gValue}),
|
|
467
|
-
hidden: !statusShow({data, key: 'btnStyleStatus', fields: ['bottomBtnRadius', 'bottomBtnHeight', 'bottomPayText'], gValue}),
|
|
468
|
-
labelInline: true,
|
|
469
|
-
placeholder: '支付按钮文字,默认“支付”',
|
|
470
|
-
className: 'input80',
|
|
471
|
-
},
|
|
472
|
-
{ele: "group_end"},
|
|
473
|
-
|
|
474
|
-
{
|
|
475
|
-
label: "价格样式",
|
|
476
|
-
ele: "xd-radio",
|
|
477
|
-
groupKey: "style",
|
|
478
|
-
valueKey: "btnPriceStatus",
|
|
479
|
-
value: statusDataVal({data, key:'btnPriceStatus', fields: ['bottomPricePosition'], gValue}),
|
|
480
|
-
labelInline:true,
|
|
481
|
-
list: [
|
|
482
|
-
{label: '默认', value: 'D'},
|
|
483
|
-
{label: '自定义', value: 'C'},
|
|
484
|
-
]
|
|
485
|
-
},
|
|
486
|
-
{ele: "group_start"},
|
|
487
|
-
{
|
|
488
|
-
label: "位置",
|
|
489
|
-
ele: "xd-radio",
|
|
490
|
-
groupKey: "style",
|
|
491
|
-
valueKey: "bottomPricePosition",
|
|
492
|
-
value: dataVal({data, key:'bottomPricePosition', dValue: 'flex-start', gValue}),
|
|
493
|
-
hidden: !statusShow({data, key: 'btnPriceStatus', fields: ['bottomPricePosition'], gValue}),
|
|
494
|
-
labelInline: true,
|
|
495
|
-
list: [
|
|
496
|
-
{label: "左侧", value: "flex-start"},
|
|
497
|
-
{label: "右侧", value: "flex-end"},
|
|
498
|
-
{label: "中间", value: "center"}
|
|
499
|
-
],
|
|
500
|
-
},
|
|
501
|
-
{ele: "group_end"},
|
|
502
|
-
|
|
503
|
-
{
|
|
504
|
-
ele: 'title',
|
|
505
|
-
label: '其它配置',
|
|
506
|
-
size: 'small',
|
|
507
|
-
groupKey:'style',
|
|
508
|
-
},
|
|
509
|
-
|
|
510
|
-
{
|
|
511
|
-
label: "表单提示",
|
|
512
|
-
ele: "xd-radio",
|
|
513
|
-
groupKey: "style",
|
|
514
|
-
valueKey: "formTipStatus",
|
|
515
|
-
value: statusDataVal({data, key:'formTipStatus', fields: ['blessTextColor', 'blessFontSize'], gValue}),
|
|
516
|
-
labelInline:true,
|
|
517
|
-
inline: false,
|
|
518
|
-
notice: "自定义表单提示文字样式",
|
|
519
|
-
list: [
|
|
520
|
-
{label: '默认', value: 'D'},
|
|
521
|
-
{label: '自定义', value: 'C'},
|
|
522
|
-
]
|
|
523
|
-
},
|
|
524
|
-
{ele: "group_start"},
|
|
525
|
-
{
|
|
526
|
-
label: "大小",
|
|
527
|
-
ele: 'xd-site-select-list',
|
|
528
|
-
valueKey: 'blessFontSize',
|
|
529
|
-
groupKey:'style',
|
|
530
|
-
value: dataVal({data, key:'blessFontSize', dValue: '24', gValue}),
|
|
531
|
-
hidden: !statusShow({data, key: 'formTipStatus', fields: ['blessTextColor', 'blessFontSize'], gValue}),
|
|
532
|
-
placeholder: '请选择字体大小',
|
|
533
|
-
labelInline: true,
|
|
534
|
-
multiple: false,
|
|
535
|
-
className: 'input80',
|
|
536
|
-
handleCustom({action, data}) {
|
|
537
|
-
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
|
|
538
|
-
.then(res => {
|
|
539
|
-
data.cb(res.list)
|
|
540
|
-
})
|
|
541
|
-
.catch(error => {
|
|
542
|
-
console.error(error);
|
|
543
|
-
});
|
|
544
|
-
},
|
|
545
|
-
},
|
|
546
|
-
{
|
|
547
|
-
label: '颜色:',
|
|
548
|
-
ele: 'xd-color',
|
|
549
|
-
valueKey: 'blessTextColor',
|
|
550
|
-
groupKey:'style',
|
|
551
|
-
value: dataVal({data, key:'blessTextColor', dValue: null, gValue}),
|
|
552
|
-
hidden: !statusShow({data, key: 'formTipStatus', fields: ['blessTextColor', 'blessFontSize'], gValue}),
|
|
553
|
-
labelInline: true,
|
|
554
|
-
placeholder: '表单提示文字颜色',
|
|
555
|
-
className: 'input80',
|
|
556
|
-
setting: {
|
|
557
|
-
showAlpha: true
|
|
558
|
-
},
|
|
559
|
-
},
|
|
560
|
-
{ele: "group_end"},
|
|
561
|
-
]
|
|
17
|
+
return []
|
|
562
18
|
}
|