jufubao-base 1.0.167 → 1.0.169-beta1
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/JfbBaseLogin/Attr.js +1109 -510
- package/src/components/JfbBaseLogin/JfbBaseLogin.vue +364 -63
- package/src/components/JfbBaseSweep/JfbBaseSweep.vue +2 -2
- package/src/components/JfbBaseTfkCardBind/Attr.js +579 -33
- package/src/components/JfbBaseTfkCardBind/JfbBaseTfkCardBind.vue +453 -18
- package/src/components/JfbBaseTfkCardDetail/Api.js +5 -44
- package/src/components/JfbBaseTfkCardDetail/Attr.js +365 -33
- package/src/components/JfbBaseTfkCardDetail/JfbBaseTfkCardDetail.vue +416 -15
- package/src/components/JfbBaseTfkCardDetail/Mock.js +151 -11
- package/src/components/JfbBaseTfkCardLogin/Api.js +19 -34
- package/src/components/JfbBaseTfkCardLogin/Attr.js +602 -33
- package/src/components/JfbBaseTfkCardLogin/JfbBaseTfkCardLogin.vue +582 -17
- package/src/components/JfbBaseTfkCardLogin/Mock.js +721 -11
|
@@ -8,50 +8,596 @@ export default {
|
|
|
8
8
|
content: (data) => {
|
|
9
9
|
return [
|
|
10
10
|
{
|
|
11
|
-
label:
|
|
12
|
-
ele: 'xd-
|
|
13
|
-
valueKey:
|
|
14
|
-
value: data.
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
{
|
|
19
|
-
|
|
20
|
-
message: '请输入占位框背景颜色',
|
|
21
|
-
trigger: 'blur'
|
|
22
|
-
},
|
|
23
|
-
]
|
|
11
|
+
label: "当前展示项(预览调试样式):",
|
|
12
|
+
ele: 'xd-radio',
|
|
13
|
+
valueKey: "previewCurrent",
|
|
14
|
+
value: data.previewCurrent || "ticket",
|
|
15
|
+
groupKey: "content",
|
|
16
|
+
list: [
|
|
17
|
+
{ label: '实体券', value: 'ticket' },
|
|
18
|
+
{ label: '电子码', value: 'code' },
|
|
19
|
+
],
|
|
24
20
|
},
|
|
25
21
|
{
|
|
26
|
-
label:
|
|
27
|
-
ele:
|
|
28
|
-
valueKey:
|
|
29
|
-
value: data
|
|
22
|
+
label: "温馨提示文案:",
|
|
23
|
+
ele: "xd-tinymce",
|
|
24
|
+
valueKey: "tips",
|
|
25
|
+
value: data.tips || null,
|
|
26
|
+
groupKey: "content",
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
ele: "title",
|
|
30
|
+
label: "标题菜单配置",
|
|
31
|
+
size: "small",
|
|
32
|
+
groupKey: "style",
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
label: '展示方式:',
|
|
36
|
+
ele: 'xd-radio',
|
|
37
|
+
valueKey: 'menuShowType',
|
|
38
|
+
value: data.menuShowType || 'text',
|
|
39
|
+
groupKey:'style',
|
|
40
|
+
list: [
|
|
41
|
+
{ label: '文字展示', value: 'text' },
|
|
42
|
+
{ label: '按钮展示', value: 'button' },
|
|
43
|
+
],
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
label: "菜单底部横线粗细:",
|
|
47
|
+
ele: "el-input",
|
|
48
|
+
valueKey: "menuBorderWidth",
|
|
49
|
+
value: data.menuBorderWidth || 1,
|
|
50
|
+
groupKey: "style",
|
|
51
|
+
type: "number",
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
label: '菜单单项内边距设置:',
|
|
55
|
+
groupKey:'style',
|
|
56
|
+
ele: 'xd-margin-padding',
|
|
57
|
+
valueKey: 'menuBtnPadding',
|
|
58
|
+
value: data.menuBtnPadding || null,
|
|
59
|
+
setting: {
|
|
60
|
+
type: 'padding',
|
|
61
|
+
},
|
|
62
|
+
placeholder: '请设置边距',
|
|
63
|
+
inline: false,
|
|
64
|
+
notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
label: '文字背景颜色设置:',
|
|
68
|
+
ele: 'xd-text-and-bgc',
|
|
69
|
+
groupKey:'style',
|
|
70
|
+
valueKey: 'menuTabColor',
|
|
71
|
+
value: data['menuTabColor'] || null,
|
|
30
72
|
setting: {
|
|
31
|
-
|
|
73
|
+
fontSize: true, //字体大小选择
|
|
74
|
+
color: true, //文字颜色选项
|
|
75
|
+
bgColor: true, //背景选项
|
|
76
|
+
weight: true, //文字粗细
|
|
77
|
+
},
|
|
78
|
+
handleCustom({action, data}) {
|
|
79
|
+
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
|
|
80
|
+
.then(res => {
|
|
81
|
+
data.cb(res.list)
|
|
82
|
+
})
|
|
83
|
+
.catch(error => {
|
|
84
|
+
console.error(error);
|
|
85
|
+
data.cb([])
|
|
86
|
+
});
|
|
32
87
|
},
|
|
33
88
|
},
|
|
34
|
-
|
|
35
|
-
label: '
|
|
89
|
+
{
|
|
90
|
+
label: '菜单外边距:',
|
|
91
|
+
groupKey:'style',
|
|
92
|
+
ele: 'xd-margin-padding',
|
|
93
|
+
valueKey: 'menuPadding',
|
|
94
|
+
value: data.menuPadding || null,
|
|
95
|
+
setting: {
|
|
96
|
+
type: 'padding',
|
|
97
|
+
},
|
|
98
|
+
placeholder: '请设置边距',
|
|
99
|
+
inline: false,
|
|
100
|
+
notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
ele: "title",
|
|
104
|
+
label: "实体券表单样式配置",
|
|
105
|
+
size: "small",
|
|
106
|
+
groupKey: "style",
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
label: '表单容器设外边距:',
|
|
110
|
+
groupKey:'style',
|
|
111
|
+
ele: 'xd-margin-padding',
|
|
112
|
+
valueKey: 'formPadding',
|
|
113
|
+
value: data.formPadding || null,
|
|
114
|
+
setting: {
|
|
115
|
+
type: 'padding',
|
|
116
|
+
},
|
|
117
|
+
placeholder: '请设置边距',
|
|
118
|
+
inline: false,
|
|
119
|
+
notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
label: "输入框样式:",
|
|
123
|
+
ele: 'xd-radio',
|
|
124
|
+
valueKey: 'inputStyle',
|
|
125
|
+
value: data.inputStyle || "linear",
|
|
126
|
+
groupKey:'style',
|
|
127
|
+
placeholder: "请选择输入框样式",
|
|
128
|
+
multiple: false,
|
|
129
|
+
className: 'input80',
|
|
130
|
+
list: [
|
|
131
|
+
{label: '线性', value: "linear"},
|
|
132
|
+
{label: '面性', value: "face"},
|
|
133
|
+
]
|
|
134
|
+
},
|
|
135
|
+
data.inputStyle === 'linear' && {
|
|
136
|
+
label: "表单边框颜色:",
|
|
137
|
+
ele: 'xd-color',
|
|
138
|
+
valueKey: 'formBorderColor',
|
|
139
|
+
value: data.formBorderColor || "#F9F9F9",
|
|
140
|
+
groupKey:'style',
|
|
141
|
+
placeholder: "请选择表单边框颜色",
|
|
142
|
+
},
|
|
143
|
+
data.inputStyle === 'linear' && {
|
|
144
|
+
label: "表单边框宽度:",
|
|
145
|
+
ele: 'el-input',
|
|
146
|
+
valueKey: 'formBorderWidth',
|
|
147
|
+
value: data.formBorderWidth || "1",
|
|
148
|
+
type: "number",
|
|
149
|
+
groupKey:'style',
|
|
150
|
+
placeholder: "请输入表单边框宽度",
|
|
151
|
+
className: 'input60',
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
label: "输入框间隔距离:",
|
|
36
155
|
ele: 'el-input',
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
156
|
+
valueKey: 'inputPadding',
|
|
157
|
+
value: data.inputPadding || "10",
|
|
158
|
+
groupKey:'style',
|
|
159
|
+
type: "number",
|
|
160
|
+
placeholder: "请输入输入框间隔距离",
|
|
161
|
+
className: 'input60',
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
ele: 'title',
|
|
165
|
+
label: '实体券标签样式配置',
|
|
166
|
+
size: 'small',
|
|
167
|
+
groupKey: 'style',
|
|
168
|
+
},
|
|
169
|
+
data.inputStyle === 'linear' && {
|
|
170
|
+
label: "标签位置:",
|
|
171
|
+
ele: "xd-radio",
|
|
172
|
+
valueKey: "labelPosition",
|
|
173
|
+
value: data.labelPosition || "left",
|
|
174
|
+
groupKey:'style',
|
|
175
|
+
placeholder: "请选择标签对齐方式",
|
|
176
|
+
multiple: false,
|
|
41
177
|
className: 'input80',
|
|
42
|
-
|
|
43
|
-
{
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
178
|
+
list: [
|
|
179
|
+
{label: '居左', value: "left"},
|
|
180
|
+
{label: '居上', value: "top"},
|
|
181
|
+
]
|
|
182
|
+
},
|
|
183
|
+
data.inputStyle === 'linear' && {
|
|
184
|
+
label: "标签文字对齐方式:",
|
|
185
|
+
ele: 'xd-radio',
|
|
186
|
+
valueKey: 'labelAlign',
|
|
187
|
+
value: data.labelAlign || "right",
|
|
188
|
+
groupKey:'style',
|
|
189
|
+
placeholder: "请选择标签对齐方式",
|
|
190
|
+
multiple: false,
|
|
191
|
+
className: 'input80',
|
|
192
|
+
list: [
|
|
193
|
+
{label: '左对齐', value: "left"},
|
|
194
|
+
{label: '右对齐', value: "right"},
|
|
195
|
+
{label: '居中', value: "center"},
|
|
48
196
|
]
|
|
49
197
|
},
|
|
50
198
|
{
|
|
51
|
-
label:
|
|
52
|
-
ele: '
|
|
53
|
-
|
|
199
|
+
label: "标签宽度:",
|
|
200
|
+
ele: 'el-input',
|
|
201
|
+
type: "number",
|
|
202
|
+
valueKey: 'labelWidth',
|
|
203
|
+
value: data.labelWidth || "180",
|
|
204
|
+
groupKey:'style',
|
|
205
|
+
placeholder: "请输入标签宽度",
|
|
206
|
+
className: 'input60',
|
|
54
207
|
},
|
|
208
|
+
{
|
|
209
|
+
label: "标签文字是否显示:",
|
|
210
|
+
ele: 'xd-radio',
|
|
211
|
+
valueKey: 'labelShow',
|
|
212
|
+
value: data.labelShow || "Y",
|
|
213
|
+
groupKey:'style',
|
|
214
|
+
placeholder: "请选择标签文字是否显示",
|
|
215
|
+
multiple: false,
|
|
216
|
+
className: 'input80',
|
|
217
|
+
list: [
|
|
218
|
+
{label: '显示', value: "Y"},
|
|
219
|
+
{label: '不显示', value: "N"},
|
|
220
|
+
]
|
|
221
|
+
},
|
|
222
|
+
data.labelShow === 'Y' && {
|
|
223
|
+
label: "标签字体样式设置:",
|
|
224
|
+
ele: "xd-font",
|
|
225
|
+
valueKey: "labelFont",
|
|
226
|
+
value: data.labelFont || {},
|
|
227
|
+
groupKey:'style',
|
|
228
|
+
setting: {
|
|
229
|
+
align: false,
|
|
230
|
+
lineHeight: false,
|
|
231
|
+
},
|
|
232
|
+
handleCustom({action, data}) {
|
|
233
|
+
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
|
|
234
|
+
.then(res => {
|
|
235
|
+
data.cb(res.list)
|
|
236
|
+
})
|
|
237
|
+
.catch(error => {
|
|
238
|
+
data.cb([])
|
|
239
|
+
console.error(error);
|
|
240
|
+
});
|
|
241
|
+
},
|
|
242
|
+
inline: false,
|
|
243
|
+
notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
label: "占位符字体样式设置:",
|
|
247
|
+
ele: "xd-font",
|
|
248
|
+
valueKey: "placeholderFont",
|
|
249
|
+
value: data.placeholderFont || {
|
|
250
|
+
color: '#d4d4d4',
|
|
251
|
+
fontSize: '24rpx',
|
|
252
|
+
fontWeight: "normal",
|
|
253
|
+
},
|
|
254
|
+
groupKey:'style',
|
|
255
|
+
setting: {
|
|
256
|
+
align: false,
|
|
257
|
+
lineHeight: false,
|
|
258
|
+
},
|
|
259
|
+
handleCustom({action, data}) {
|
|
260
|
+
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
|
|
261
|
+
.then(res => {
|
|
262
|
+
data.cb(res.list)
|
|
263
|
+
})
|
|
264
|
+
.catch(error => {
|
|
265
|
+
data.cb([])
|
|
266
|
+
console.error(error);
|
|
267
|
+
});
|
|
268
|
+
},
|
|
269
|
+
inline: false,
|
|
270
|
+
notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
label: "内容字体样式设置:",
|
|
274
|
+
ele: "xd-font",
|
|
275
|
+
valueKey: "contentFont",
|
|
276
|
+
value: data.contentFont || {},
|
|
277
|
+
groupKey:'style',
|
|
278
|
+
setting: {
|
|
279
|
+
align: false,
|
|
280
|
+
lineHeight: false,
|
|
281
|
+
},
|
|
282
|
+
handleCustom({action, data}) {
|
|
283
|
+
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
|
|
284
|
+
.then(res => {
|
|
285
|
+
data.cb(res.list)
|
|
286
|
+
})
|
|
287
|
+
.catch(error => {
|
|
288
|
+
data.cb([])
|
|
289
|
+
console.error(error);
|
|
290
|
+
});
|
|
291
|
+
},
|
|
292
|
+
inline: false,
|
|
293
|
+
notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
label: "票券号码图标:",
|
|
297
|
+
ele: "xd-font",
|
|
298
|
+
valueKey: "ticketIcon",
|
|
299
|
+
value: data.ticketIcon || {},
|
|
300
|
+
groupKey:'style',
|
|
301
|
+
setting: {
|
|
302
|
+
align: false,
|
|
303
|
+
lineHeight: false,
|
|
304
|
+
icon: true,
|
|
305
|
+
weight: false,
|
|
306
|
+
},
|
|
307
|
+
handleCustom({action, data}) {
|
|
308
|
+
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
|
|
309
|
+
.then(res => {
|
|
310
|
+
data.cb(res.list)
|
|
311
|
+
})
|
|
312
|
+
.catch(error => {
|
|
313
|
+
data.cb([])
|
|
314
|
+
console.error(error);
|
|
315
|
+
});
|
|
316
|
+
},
|
|
317
|
+
inline: false,
|
|
318
|
+
notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
label: "票券密码图标:",
|
|
322
|
+
ele: "xd-font",
|
|
323
|
+
valueKey: "passwordIcon",
|
|
324
|
+
value: data.passwordIcon || {},
|
|
325
|
+
groupKey:'style',
|
|
326
|
+
setting: {
|
|
327
|
+
align: false,
|
|
328
|
+
lineHeight: false,
|
|
329
|
+
icon: true,
|
|
330
|
+
weight: false,
|
|
331
|
+
},
|
|
332
|
+
handleCustom({action, data}) {
|
|
333
|
+
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
|
|
334
|
+
.then(res => {
|
|
335
|
+
data.cb(res.list)
|
|
336
|
+
})
|
|
337
|
+
.catch(error => {
|
|
338
|
+
data.cb([])
|
|
339
|
+
console.error(error);
|
|
340
|
+
});
|
|
341
|
+
},
|
|
342
|
+
inline: false,
|
|
343
|
+
notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
label: "验证码图标:",
|
|
347
|
+
ele: "xd-font",
|
|
348
|
+
valueKey: "validCodeIcon",
|
|
349
|
+
value: data.validCodeIcon || {},
|
|
350
|
+
groupKey:'style',
|
|
351
|
+
setting: {
|
|
352
|
+
align: false,
|
|
353
|
+
lineHeight: false,
|
|
354
|
+
icon: true,
|
|
355
|
+
weight: false,
|
|
356
|
+
},
|
|
357
|
+
handleCustom({action, data}) {
|
|
358
|
+
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
|
|
359
|
+
.then(res => {
|
|
360
|
+
data.cb(res.list)
|
|
361
|
+
})
|
|
362
|
+
.catch(error => {
|
|
363
|
+
data.cb([])
|
|
364
|
+
console.error(error);
|
|
365
|
+
});
|
|
366
|
+
},
|
|
367
|
+
inline: false,
|
|
368
|
+
notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
ele: 'title',
|
|
372
|
+
label: '表单右侧图标',
|
|
373
|
+
size: 'small',
|
|
374
|
+
groupKey: 'style',
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
label: "扫码图标:",
|
|
378
|
+
ele: "xd-font",
|
|
379
|
+
valueKey: "scanIcon",
|
|
380
|
+
value: data.scanIcon || {},
|
|
381
|
+
groupKey:'style',
|
|
382
|
+
setting: {
|
|
383
|
+
align: false,
|
|
384
|
+
lineHeight: false,
|
|
385
|
+
icon: true,
|
|
386
|
+
weight: false,
|
|
387
|
+
},
|
|
388
|
+
handleCustom({action, data}) {
|
|
389
|
+
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
|
|
390
|
+
.then(res => {
|
|
391
|
+
data.cb(res.list)
|
|
392
|
+
})
|
|
393
|
+
.catch(error => {
|
|
394
|
+
data.cb([])
|
|
395
|
+
console.error(error);
|
|
396
|
+
});
|
|
397
|
+
},
|
|
398
|
+
inline: false,
|
|
399
|
+
notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
ele: 'title',
|
|
403
|
+
label: '按钮样式配置',
|
|
404
|
+
size: 'small',
|
|
405
|
+
groupKey: 'style',
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
label: "按钮外边距设置",
|
|
409
|
+
groupKey:'style',
|
|
410
|
+
ele: 'xd-margin-padding',
|
|
411
|
+
valueKey: 'btnMargin',
|
|
412
|
+
value: data.btnMargin || {
|
|
413
|
+
top: 20,
|
|
414
|
+
left: 20,
|
|
415
|
+
right: 20,
|
|
416
|
+
bottom: 20
|
|
417
|
+
},
|
|
418
|
+
setting: {
|
|
419
|
+
type: 'padding',
|
|
420
|
+
},
|
|
421
|
+
placeholder: '请设置边距',
|
|
422
|
+
inline: false,
|
|
423
|
+
notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
label: "按钮圆角",
|
|
427
|
+
ele: 'xd-site-select-list',
|
|
428
|
+
valueKey: 'btnRadius',
|
|
429
|
+
value: data['btnRadius'] || '',
|
|
430
|
+
groupKey:'style',
|
|
431
|
+
placeholder: '请选择内容圆角设置',
|
|
432
|
+
multiple: false,
|
|
433
|
+
className: 'input80',
|
|
434
|
+
handleCustom({ action, data }) {
|
|
435
|
+
XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
|
|
436
|
+
.then(res => {
|
|
437
|
+
data.cb(res.list)
|
|
438
|
+
})
|
|
439
|
+
.catch(error => {
|
|
440
|
+
console.error(error);
|
|
441
|
+
});
|
|
442
|
+
},
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
label: "按钮图标设置",
|
|
446
|
+
ele: "xd-font",
|
|
447
|
+
valueKey: "btnIcon",
|
|
448
|
+
value: data.btnIcon || {},
|
|
449
|
+
groupKey:'style',
|
|
450
|
+
setting: {
|
|
451
|
+
align: false,
|
|
452
|
+
lineHeight: false,
|
|
453
|
+
icon: true,
|
|
454
|
+
weight: false,
|
|
455
|
+
},
|
|
456
|
+
handleCustom({action, data}) {
|
|
457
|
+
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
|
|
458
|
+
.then(res => {
|
|
459
|
+
data.cb(res.list)
|
|
460
|
+
})
|
|
461
|
+
.catch(error => {
|
|
462
|
+
data.cb([])
|
|
463
|
+
console.error(error);
|
|
464
|
+
});
|
|
465
|
+
},
|
|
466
|
+
inline: false,
|
|
467
|
+
notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
ele: 'title',
|
|
471
|
+
label: '电子码表单样式配置',
|
|
472
|
+
size: 'small',
|
|
473
|
+
groupKey: 'style',
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
label: "电子码表单外边距设置",
|
|
477
|
+
groupKey:'style',
|
|
478
|
+
ele: 'xd-margin-padding',
|
|
479
|
+
valueKey: 'digitalFormMargin',
|
|
480
|
+
value: data.digitalFormMargin || {
|
|
481
|
+
top: 20,
|
|
482
|
+
left: 20,
|
|
483
|
+
right: 20,
|
|
484
|
+
bottom: 20
|
|
485
|
+
},
|
|
486
|
+
setting: {
|
|
487
|
+
type: 'padding',
|
|
488
|
+
},
|
|
489
|
+
placeholder: '请设置边距',
|
|
490
|
+
inline: false,
|
|
491
|
+
notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
label: "电子码按钮边距设置",
|
|
495
|
+
groupKey:'style',
|
|
496
|
+
ele: 'xd-margin-padding',
|
|
497
|
+
valueKey: 'digitalBtnMargin',
|
|
498
|
+
value: data.digitalBtnMargin || {
|
|
499
|
+
top: 40,
|
|
500
|
+
left: 20,
|
|
501
|
+
right: 20,
|
|
502
|
+
bottom: 10
|
|
503
|
+
},
|
|
504
|
+
setting: {
|
|
505
|
+
type: 'padding',
|
|
506
|
+
},
|
|
507
|
+
placeholder: '请设置边距',
|
|
508
|
+
inline: false,
|
|
509
|
+
notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
label: "电子码票券号图标设置",
|
|
513
|
+
ele: "xd-font",
|
|
514
|
+
valueKey: "digitalCodeIcon",
|
|
515
|
+
value: data.digitalCodeIcon || {},
|
|
516
|
+
groupKey:'style',
|
|
517
|
+
setting: {
|
|
518
|
+
align: false,
|
|
519
|
+
lineHeight: false,
|
|
520
|
+
icon: true,
|
|
521
|
+
weight: false,
|
|
522
|
+
},
|
|
523
|
+
handleCustom({action, data}) {
|
|
524
|
+
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
|
|
525
|
+
.then(res => {
|
|
526
|
+
data.cb(res.list)
|
|
527
|
+
})
|
|
528
|
+
.catch(error => {
|
|
529
|
+
data.cb([])
|
|
530
|
+
console.error(error);
|
|
531
|
+
});
|
|
532
|
+
},
|
|
533
|
+
inline: false,
|
|
534
|
+
notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
label: "电子码标签宽度设置",
|
|
538
|
+
ele: "el-input",
|
|
539
|
+
valueKey: "digitalCodeLabelWidth",
|
|
540
|
+
value: data.digitalCodeLabelWidth || 100,
|
|
541
|
+
groupKey:'style',
|
|
542
|
+
type: "number",
|
|
543
|
+
},
|
|
544
|
+
{
|
|
545
|
+
label: "电子码输入框颜色设置",
|
|
546
|
+
ele: "xd-color",
|
|
547
|
+
valueKey: "digitalCodeColor",
|
|
548
|
+
value: data.digitalCodeColor || "#dddddd",
|
|
549
|
+
groupKey:'style',
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
label: '电子码输入框圆角设置:',
|
|
553
|
+
ele: 'xd-site-select-list',
|
|
554
|
+
valueKey: 'digitalCodeRadius',
|
|
555
|
+
value: data.digitalCodeRadius ||'',
|
|
556
|
+
groupKey:'style',
|
|
557
|
+
placeholder: '请选择边框圆角设置',
|
|
558
|
+
multiple: false,
|
|
559
|
+
className: 'input80',
|
|
560
|
+
handleCustom({ action, data }) {
|
|
561
|
+
XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
|
|
562
|
+
.then(res => {
|
|
563
|
+
data.cb(res.list)
|
|
564
|
+
})
|
|
565
|
+
.catch(error => {
|
|
566
|
+
console.error(error);
|
|
567
|
+
});
|
|
568
|
+
},
|
|
569
|
+
},
|
|
570
|
+
{
|
|
571
|
+
ele: 'title',
|
|
572
|
+
label: '温馨提示样式配置',
|
|
573
|
+
size: 'small',
|
|
574
|
+
groupKey: 'style',
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
label: "背景颜色",
|
|
578
|
+
ele: "xd-color",
|
|
579
|
+
valueKey: "tipBgColor",
|
|
580
|
+
value: data.tipBgColor || "#fff",
|
|
581
|
+
groupKey:'style',
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
label: "内边距设置",
|
|
585
|
+
groupKey:'style',
|
|
586
|
+
ele: 'xd-margin-padding',
|
|
587
|
+
valueKey: 'tipPadding',
|
|
588
|
+
value: data.tipPadding || {
|
|
589
|
+
top: 10,
|
|
590
|
+
left: 20,
|
|
591
|
+
right: 20,
|
|
592
|
+
bottom: 10
|
|
593
|
+
},
|
|
594
|
+
setting: {
|
|
595
|
+
type: 'padding',
|
|
596
|
+
},
|
|
597
|
+
placeholder: '请设置边距',
|
|
598
|
+
inline: false,
|
|
599
|
+
notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
|
|
600
|
+
}
|
|
55
601
|
].filter(i=>i)
|
|
56
602
|
},
|
|
57
603
|
advanced: [],
|