jufubao-base 1.0.168 → 1.0.169-beta10

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.
Files changed (41) hide show
  1. package/package.json +1 -1
  2. package/src/components/JfbBaseLogin/Attr.js +1147 -510
  3. package/src/components/JfbBaseLogin/JfbBaseLogin.vue +364 -63
  4. package/src/components/JfbBaseMapSearch/MapSearchMp.vue +1 -1
  5. package/src/components/JfbBaseOrderDetail/Api.js +12 -7
  6. package/src/components/JfbBaseOrderDetail/Attr.js +28 -14
  7. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +68 -18
  8. package/src/components/JfbBaseOrderDetail/Mock.js +3 -1
  9. package/src/components/JfbBaseTfkCardBind/Api.js +49 -30
  10. package/src/components/JfbBaseTfkCardBind/Attr.js +635 -38
  11. package/src/components/JfbBaseTfkCardBind/JfbBaseTfkCardBind.vue +617 -22
  12. package/src/components/JfbBaseTfkCardBind/Mock.js +19 -9
  13. package/src/components/JfbBaseTfkCardDetail/Api.js +19 -32
  14. package/src/components/JfbBaseTfkCardDetail/Attr.js +692 -33
  15. package/src/components/JfbBaseTfkCardDetail/JfbBaseTfkCardDetail.vue +630 -23
  16. package/src/components/JfbBaseTfkCardDetail/Mock.js +151 -11
  17. package/src/components/JfbBaseTfkCardLogin/Api.js +19 -34
  18. package/src/components/JfbBaseTfkCardLogin/Attr.js +898 -33
  19. package/src/components/JfbBaseTfkCardLogin/JfbBaseTfkCardLogin.vue +741 -17
  20. package/src/components/JfbBaseTfkCardLogin/Mock.js +677 -11
  21. package/src/components/JfbBaseTfkCardLogin/XdCouponItem.vue +271 -0
  22. package/src/components/JfbBaseTfkSearch/AllList.vue +232 -0
  23. package/src/components/JfbBaseTfkSearch/Api.js +11 -42
  24. package/src/components/JfbBaseTfkSearch/Attr.js +225 -33
  25. package/src/components/JfbBaseTfkSearch/ContentCinema.vue +157 -0
  26. package/src/components/JfbBaseTfkSearch/ContentFilm.vue +179 -0
  27. package/src/components/JfbBaseTfkSearch/ContentProduct.vue +308 -0
  28. package/src/components/JfbBaseTfkSearch/ContentShop.vue +184 -0
  29. package/src/components/JfbBaseTfkSearch/CusAttr.js +213 -0
  30. package/src/components/JfbBaseTfkSearch/CustomList.vue +402 -0
  31. package/src/components/JfbBaseTfkSearch/JfbBaseTfkSearch.vue +230 -26
  32. package/src/components/JfbBaseTfkSearch/Mock.js +90 -11
  33. package/src/components/JfbBaseTfkSearch/SkeletonCinema.vue +45 -0
  34. package/src/components/JfbBaseTfkSearch/SkeletonFilm.vue +109 -0
  35. package/src/components/JfbBaseTfkSearch/SkeletonProduct.vue +246 -0
  36. package/src/components/JfbBaseTfkSearch/SkeletonShop.vue +81 -0
  37. package/src/components/JfbBaseTfkSearch/handleKeyword.js +24 -0
  38. package/src/components/JfbBaseTfkSearch/listMixins.js +153 -0
  39. package/src/components/JfbBaseTfkSearch/search.js +293 -0
  40. package/src/mixins/colorCardMixins.js +71 -9
  41. package/src/mixins/componentsMixins.js +346 -23
@@ -8,50 +8,709 @@ export default {
8
8
  content: (data) => {
9
9
  return [
10
10
  {
11
- label: '背景颜色:',
12
- ele: 'xd-color',
13
- valueKey: 'bgcolor',
14
- value: data.bgcolor || '',
15
- placeholder: '请输入占位框背景颜色',
16
- classNmae: 'input80',
17
- rules: [
18
- {
19
- required: true,
20
- message: '请输入占位框背景颜色',
21
- trigger: 'blur'
11
+ label: "展示模块(预览调试样式)",
12
+ ele: 'xd-radio',
13
+ valueKey: "previewCurrent",
14
+ value: data.previewCurrent || "main",
15
+ groupKey: "content",
16
+ list: [
17
+ { label: '票券信息', value: 'main' },
18
+ { label: '规则信息', value: 'rule' },
19
+ { label: "提货券", value: "pickup" },
20
+ ],
21
+ },
22
+ {
23
+ label: '服务展示',
24
+ ele: "xd-radio",
25
+ valueKey: "showBusinessList",
26
+ value: data.showBusinessList || 'Y',
27
+ groupKey: 'content',
28
+ list: [
29
+ { label: "隐藏业务线", value: "N" },
30
+ { label: "展示业务线", value: "Y" }
31
+ ],
32
+ hidden: data.previewCurrent !== 'main'
33
+ },
34
+ {
35
+ label: '票券背景图:',
36
+ ele: 'xd-upload',
37
+ valueKey: 'cardImageUrl',
38
+ groupKey:'content',
39
+ value: data.cardImageUrl || {},
40
+ defaultValue: data.cardImageUrl || null,
41
+ slot: true,
42
+ oneWidth: 355,
43
+ oneHeight: 170,
44
+ elinputClassName: 'input40',
45
+ tipsformet: '上传格式:@imageType@不超过@size@MB.建议尺寸710*340',
46
+ type: ['jpg', 'png', 'jpeg'],
47
+ styleType: 'one',
48
+ uploadType: 'aliyun',
49
+ size: 5,
50
+ action: 'action',
51
+ sort: true,
52
+ maxlen: 100,
53
+ hidden: data.previewCurrent !== 'main'
54
+ },
55
+ {
56
+ label: "票券使用规则",
57
+ ele: 'xd-site-news',
58
+ valueKey: 'cardRule',
59
+ groupKey:'content',
60
+ value: data.cardRule || null,
61
+ className: 'input70',
62
+ setting: {
63
+ config: {
64
+ sort: true,
65
+ maxlen: 100,
66
+ action: 'aliyun',
67
+ size: 5,
68
+ tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
69
+ uploadType: 'aliyun',
70
+ type: ['jpg', 'png', 'jpeg']
22
71
  },
23
- ]
72
+ },
73
+ handleCustom({action, data}) {
74
+ if (data && data.params) {
75
+ //当一个插件中出现使用内容分类时候需要设置code值,在页面引用时候容器id + code进行拼接
76
+ //data.params = Object.assign({}, data.params, {code: 'g_test_id'});
77
+ }
78
+
79
+ //获取返回参数(场景类型名称为必填)
80
+ //获取返回参数(场景类型名称为必填)
81
+ let loading = { close(){}}
82
+
83
+ //获取显示内容
84
+ if (action === 'screen') {
85
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_bucket_content_tip'})
86
+ .then(res => {
87
+ loading.close();
88
+ data.cb(res['list'])
89
+ })
90
+ .catch(error => {
91
+ console.error(error);
92
+ loading.close();
93
+ });
94
+
95
+ }
96
+
97
+ //获取返回参数(广告位高度必选项)
98
+ if (action === 'getNewsInfo') {
99
+ XdBus.getParentApi('cmsGetPublishEditxContent')(data.params)
100
+ .then(res => {
101
+ loading.close()
102
+ data.cb({list: res.list, selectId: res.selected})
103
+ })
104
+ .catch(error => {
105
+ loading.close()
106
+ console.error(error);
107
+ });
108
+ }
109
+
110
+ //获取产品业务线列表
111
+ if (action === 'namespace') {
112
+ XdBus.getParentApi('getOptionsNamespaces')({})
113
+ .then(res => {
114
+ loading.close()
115
+ data.cb(res['list'])
116
+ })
117
+ .catch(error => {
118
+ loading.close()
119
+ console.error(error);
120
+ });
121
+ }
122
+
123
+ //使用内容分类
124
+ if (action === 'cmsPublishEditxContent') {
125
+ loading = XdBus.getParentApi('loading')({});
126
+ XdBus.getParentApi('cmsPublishEditxContent')(data.params)
127
+ .then(res => {
128
+ console.log('cmsPublishEditxContent', res)
129
+ loading.close();
130
+ data.cb(res)
131
+ })
132
+ .catch(error => {
133
+ loading.close();
134
+ console.error(error);
135
+ });
136
+ }
137
+
138
+ //位置列表
139
+ if (action === 'getListPostion') {
140
+ loading = XdBus.getParentApi('loading')({});
141
+ XdBus.getParentApi('getListNewsPosition')(data.params)
142
+ .then(res => {
143
+ loading.close();
144
+ data.cb(res)
145
+ })
146
+ .catch(error => {
147
+ loading.close();
148
+ console.error(error);
149
+ });
150
+ }
151
+
152
+ //位置创建
153
+ if (action === 'addPostion') {
154
+ loading = XdBus.getParentApi('loading')({});
155
+ XdBus.getParentApi('addNewsPosition')(data.params)
156
+ .then(res => {
157
+ loading.close();
158
+ data.cb(true)
159
+ })
160
+ .catch(error => {
161
+ console.error(error);
162
+ loading.close();
163
+ data.cb(false)
164
+ });
165
+ }
166
+
167
+ //位置编辑
168
+ if (action === 'editPostion') {
169
+ loading = XdBus.getParentApi('loading')({});
170
+ XdBus.getParentApi('updateNewsPosition')(data.params)
171
+ .then(res => {
172
+ loading.close();
173
+ data.cb(true)
174
+ })
175
+ .catch(error => {
176
+ console.error(error);
177
+ loading.close();
178
+ data.cb(false)
179
+ });
180
+ }
181
+
182
+ //位置删除
183
+ if (action === 'deleltePostion') {
184
+ loading = XdBus.getParentApi('loading')({});
185
+ XdBus.getParentApi('deleteNewsPosition')(data.params)
186
+ .then(res => {
187
+ loading.close();
188
+ data.cb(true)
189
+ })
190
+ .catch(error => {
191
+ console.error(error);
192
+ loading.close();
193
+ data.cb(false)
194
+ });
195
+ }
196
+
197
+ //获取广告位内容列表
198
+ if (action === 'getListContent') {
199
+ loading = XdBus.getParentApi('loading')({});
200
+ XdBus.getParentApi('getListNewsContent')(data.params)
201
+ .then(res => {
202
+ loading.close();
203
+ data.cb(res)
204
+ })
205
+ .catch(error => {
206
+ loading.close();
207
+ console.error(error);
208
+ });
209
+ }
210
+
211
+ //广告内容创建
212
+ if (action === 'addContent') {
213
+ loading = XdBus.getParentApi('loading')({});
214
+ XdBus.getParentApi('addNewsContent')(data.params)
215
+ .then(res => {
216
+ loading.close();
217
+ data.cb(true)
218
+ })
219
+ .catch(error => {
220
+ console.error(error);
221
+ loading.close();
222
+ data.cb(false)
223
+ });
224
+ }
225
+
226
+ //广告内容编辑
227
+ if (action === 'editContent') {
228
+ loading = XdBus.getParentApi('loading')({});
229
+ XdBus.getParentApi('updateNewsContent')(data.params)
230
+ .then(res => {
231
+ loading.close();
232
+ data.cb(true)
233
+ })
234
+ .catch(error => {
235
+ console.error(error);
236
+ loading.close();
237
+ data.cb(false)
238
+ });
239
+ }
240
+
241
+ //广告内容删除
242
+ if (action === 'deleteContent') {
243
+ loading = XdBus.getParentApi('loading')({});
244
+ XdBus.getParentApi('deleteNewsContent')(data.params)
245
+ .then(res => {
246
+ loading.close();
247
+ data.cb(true)
248
+ })
249
+ .catch(error => {
250
+ console.error(error);
251
+ loading.close();
252
+ data.cb(false)
253
+ });
254
+ }
255
+
256
+ //内容发布
257
+ if (action === 'publish') {
258
+ loading = XdBus.getParentApi('loading')({});
259
+ console.log('publish', data.params)
260
+ XdBus.getParentApi('cmsPublishContent')(data.params)
261
+ .then(res => {
262
+ loading.close();
263
+ data.cb(res)
264
+ })
265
+ .catch(error => {
266
+ loading.close();
267
+ console.error(error);
268
+ });
269
+ }
270
+
271
+ //通知页面进行刷新
272
+ if (action === 'update') {
273
+ loading = XdBus.getParentApi('loading')({});
274
+ XdBus.getParentApi('getXdBusUpdateView')('onUpdateView', {});
275
+ loading.close()
276
+ }
277
+ },
278
+ },
279
+ {
280
+ label: "票券信息样式配置",
281
+ ele: "title",
282
+ size: "small",
283
+ groupKey: 'style',
284
+ hidden: data.previewCurrent !== 'main'
285
+ },
286
+ {
287
+ label: "字体颜色",
288
+ ele: 'xd-color',
289
+ valueKey: 'cardFontColor',
290
+ value: data.cardFontColor || '#303133',
291
+ groupKey:'style',
292
+ hidden: data.previewCurrent !== 'main'
24
293
  },
25
294
  {
26
- label: '选中路径:',
27
- ele: 'xd-select-pages-path',
28
- valueKey: 'select-pages-path',
29
- value: data['select-pages-path'] || null,
295
+ label: "外边距设置",
296
+ groupKey:'style',
297
+ ele: 'xd-margin-padding',
298
+ valueKey: 'cardInfoMargin',
299
+ value: data.cardInfoMargin || {
300
+ top: 20,
301
+ left: 20,
302
+ right: 20,
303
+ bottom: 20
304
+ },
30
305
  setting: {
31
- router: XdBus.getParentApi('getPagesTree')
306
+ type: 'padding',
32
307
  },
308
+ placeholder: '请设置边距',
309
+ inline: false,
310
+ notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
311
+ hidden: data.previewCurrent !== 'main'
33
312
  },
34
- data.bgcolor && {
35
- label: '高度:',
36
- ele: 'el-input',
313
+ {
314
+ label: "内边距设置",
315
+ groupKey:'style',
316
+ ele: 'xd-margin-padding',
317
+ valueKey: 'cardInfoPadding',
318
+ value: data.cardInfoPadding || {
319
+ top: 20,
320
+ left: 20,
321
+ right: 20,
322
+ bottom: 20
323
+ },
324
+ setting: {
325
+ type: 'padding',
326
+ },
327
+ placeholder: '请设置内边距',
328
+ inline: false,
329
+ notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
330
+ hidden: data.previewCurrent !== 'main'
331
+ },
332
+ {
333
+ label: "票券高度",
334
+ ele: "el-input",
335
+ valueKey: 'cardHeight',
336
+ value: data.cardHeight || 260,
37
337
  type: 'number',
38
- valueKey: 'height',
39
- value: data.height || 100,
40
- placeholder: '请输入占位框高度,单位像素,默认:10px',
338
+ groupKey:'style',
339
+ placeholder: "请输入票券高度",
340
+ hidden: data.previewCurrent !== 'main'
341
+ },
342
+ {
343
+ label: "票券圆角",
344
+ ele: 'xd-site-select-list',
345
+ valueKey: 'cardRadius',
346
+ value: data['cardRadius'] || 16,
347
+ groupKey:'style',
348
+ placeholder: '请选择内容圆角设置',
349
+ multiple: false,
41
350
  className: 'input80',
42
- rules: [
43
- {
44
- required: true,
45
- message: '请输入占位框高度',
46
- trigger: 'blur'
47
- },
48
- ]
351
+ handleCustom({ action, data }) {
352
+ XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
353
+ .then(res => {
354
+ data.cb(res.list)
355
+ })
356
+ .catch(error => {
357
+ console.error(error);
358
+ });
359
+ },
360
+ hidden: data.previewCurrent !== 'main'
361
+ },
362
+ {
363
+ label: "业务板块样式配置",
364
+ ele: 'title',
365
+ size: 'small',
366
+ groupKey: 'style',
367
+ hidden: data.previewCurrent !== 'main'
368
+ },
369
+ {
370
+ label: "业务板块外边距",
371
+ groupKey:'style',
372
+ ele: 'xd-margin-padding',
373
+ valueKey: 'bussTempMargin',
374
+ value: data.bussTempMargin || {
375
+ top: 30,
376
+ left: 0,
377
+ right: 0,
378
+ bottom: 0
379
+ },
380
+ setting: {
381
+ type: 'padding',
382
+ },
383
+ placeholder: '请设置内边距',
384
+ inline: false,
385
+ notice: '设置内边距,<span style="color: red">单位:像素</span>。',
386
+ hidden: data.previewCurrent !== 'main'
387
+ },
388
+ {
389
+ label: "业务板块容器内边距",
390
+ groupKey:'style',
391
+ ele: 'xd-margin-padding',
392
+ valueKey: 'bussPadding',
393
+ value: data.bussPadding || {
394
+ top: 10,
395
+ left: 20,
396
+ right: 20,
397
+ bottom: 20
398
+ },
399
+ setting: {
400
+ type: 'padding',
401
+ },
402
+ placeholder: '请设置内边距',
403
+ inline: false,
404
+ notice: '设置内边距,<span style="color: red">单位:像素</span>。',
405
+ hidden: data.previewCurrent !== 'main'
406
+ },
407
+ {
408
+ label: "业务板块背景色",
409
+ groupKey:'style',
410
+ ele: 'xd-color',
411
+ valueKey: 'bussTempBgColor',
412
+ value: data.bussTempBgColor || '',
413
+ hidden: data.previewCurrent !== 'main'
414
+ },
415
+ {
416
+ label: "单项业务外边距",
417
+ groupKey:'style',
418
+ ele: 'xd-margin-padding',
419
+ valueKey: 'bussMargin',
420
+ value: data.bussMargin || {
421
+ top: 30,
422
+ left: 30,
423
+ right: 30,
424
+ bottom: 30
425
+ },
426
+ setting: {
427
+ type: 'margin',
428
+ },
429
+ placeholder: '请设置外边距',
430
+ inline: false,
431
+ notice: '设置外边距,<span style="color: red">单位:像素</span>。',
432
+ hidden: data.previewCurrent !== 'main' || data.showBusinessList !== 'Y'
433
+ },
434
+ {
435
+ label: "单项业务宽度",
436
+ groupKey:'style',
437
+ ele: 'el-input',
438
+ valueKey: 'bussWidth',
439
+ value: data.bussWidth || 100,
440
+ type: "number",
441
+ className: 'input70',
442
+ placeholder: "请输入单项业务宽度",
443
+ hidden: data.previewCurrent !== 'main' || data.showBusinessList !== 'Y'
49
444
  },
50
445
  {
51
- label: '', //label
52
- ele: 'slot', //package 名称
53
- slot: 'is_reference',
446
+ label: "使用规则、提货码样式配置",
447
+ ele: 'title',
448
+ size: 'small',
449
+ groupKey:'style',
450
+ hidden: data.previewCurrent !== 'main'
54
451
  },
452
+ {
453
+ label: "外边距",
454
+ groupKey:'style',
455
+ ele: 'xd-margin-padding',
456
+ valueKey: 'listColMargin',
457
+ value: data.listColMargin || {
458
+ top: 40,
459
+ left: 0,
460
+ right: 0,
461
+ bottom: 15
462
+ },
463
+ setting: {
464
+ type: 'margin',
465
+ },
466
+ placeholder: '请设置外边距',
467
+ inline: false,
468
+ notice: '设置外边距,<span style="color: red">单位:像素</span>。',
469
+ hidden: data.previewCurrent !== 'main'
470
+ },
471
+ {
472
+ label: "单项内边距",
473
+ groupKey:'style',
474
+ ele: 'xd-margin-padding',
475
+ valueKey: 'listColPadding',
476
+ value: data.listColPadding || {
477
+ top: 20,
478
+ left: 20,
479
+ right: 20,
480
+ bottom: 20
481
+ },
482
+ setting: {
483
+ type: 'padding',
484
+ },
485
+ placeholder: '请设置内边距',
486
+ inline: false,
487
+ notice: '设置内边距,<span style="color: red">单位:像素</span>。',
488
+ hidden: data.previewCurrent !== 'main'
489
+ },
490
+ {
491
+ label: "单项间隔距离",
492
+ ele: "el-input",
493
+ valueKey: 'listColSpace',
494
+ value: data.listColSpace || 10,
495
+ groupKey: 'style',
496
+ type: "number",
497
+ className: 'input70',
498
+ placeholder: "请输入间隔距离",
499
+ hidden: data.previewCurrent !== 'main'
500
+ },
501
+ {
502
+ label: "提货码详情样式配置",
503
+ ele: 'title',
504
+ size: 'small',
505
+ groupKey:'style',
506
+ hidden: data.previewCurrent !== 'pickup'
507
+ },
508
+ {
509
+ label: "提货码详情外边距",
510
+ groupKey:'style',
511
+ ele: 'xd-margin-padding',
512
+ valueKey: 'codeDetailMargin',
513
+ value: data.codeDetailMargin || {
514
+ top: 30,
515
+ left: 20,
516
+ right: 20,
517
+ bottom: 30
518
+ },
519
+ setting: {
520
+ type: 'margin',
521
+ },
522
+ placeholder: '请设置外边距',
523
+ inline: false,
524
+ notice: '设置外边距,<span style="color: red">单位:像素</span>',
525
+ hidden: data.previewCurrent !== 'pickup'
526
+ },
527
+ {
528
+ label: "提货码详情内边距",
529
+ groupKey:'style',
530
+ ele: 'xd-margin-padding',
531
+ valueKey: 'codeDetailPadding',
532
+ value: data.codeDetailPadding || {
533
+ top: 20,
534
+ left: 20,
535
+ right: 20,
536
+ bottom: 20
537
+ },
538
+ setting: {
539
+ type: 'padding',
540
+ },
541
+ placeholder: '请设置内边距',
542
+ inline: false,
543
+ notice: '设置外边距,<span style="color: red">单位:像素</span>',
544
+ hidden: data.previewCurrent !== 'pickup'
545
+ },
546
+ {
547
+ label: "提货码详情背景色",
548
+ groupKey:'style',
549
+ ele: 'xd-color',
550
+ valueKey: 'codeDetailBgColor',
551
+ value: data.codeDetailBgColor || '#ffffff',
552
+ hidden: data.previewCurrent !== 'pickup'
553
+ },
554
+ {
555
+ label: "提货码详情圆角",
556
+ ele: 'xd-site-select-list',
557
+ valueKey: 'codeDetailRadius',
558
+ value: data['codeDetailRadius'] || 16,
559
+ groupKey:'style',
560
+ placeholder: '请选择内容圆角设置',
561
+ multiple: false,
562
+ className: 'input80',
563
+ handleCustom({ action, data }) {
564
+ XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
565
+ .then(res => {
566
+ data.cb(res.list)
567
+ })
568
+ .catch(error => {
569
+ console.error(error);
570
+ });
571
+ },
572
+ hidden: data.previewCurrent !== 'pickup'
573
+ },
574
+ {
575
+ label: "提货码详情边框",
576
+ ele: "xd-border",
577
+ valueKey: 'codeDetailBorder',
578
+ value: data.codeDetailBorder || null,
579
+ groupKey:'style',
580
+ hidden: data.previewCurrent !== 'pickup'
581
+ },
582
+ {
583
+ label: "提货码详情边框阴影",
584
+ ele: "xd-shadow",
585
+ valueKey: 'codeDetailShadow',
586
+ value: data.codeDetailShadow || null,
587
+ groupKey:'style',
588
+ handleCustom({action, data}) {
589
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
590
+ .then(res => {
591
+ data.cb(res.list)
592
+ })
593
+ .catch(error => {
594
+ console.error(error);
595
+ data.cb([])
596
+ });
597
+ },
598
+ hidden: data.previewCurrent !== 'pickup'
599
+ },
600
+ {
601
+ label: "二维码长宽设置",
602
+ ele: "el-input",
603
+ valueKey: 'qrcodeWidth',
604
+ value: data.qrcodeWidth || 300,
605
+ groupKey: 'style',
606
+ type: "number",
607
+ className: 'input70',
608
+ placeholder: "请输入二维码长宽",
609
+ hidden: data.previewCurrent !== 'pickup'
610
+ },
611
+ {
612
+ label: "向商家付款前置图标配置",
613
+ ele: 'el-input',
614
+ valueKey: 'payPreIcon',
615
+ value: data.payPreIcon || '',
616
+ groupKey: 'style',
617
+ type: "text",
618
+ className: 'input70',
619
+ placeholder: "请输入图标代码",
620
+ hidden: data.previewCurrent !== 'pickup'
621
+ },
622
+ {
623
+ label: "刷新二维码图标配置",
624
+ ele: 'el-input',
625
+ valueKey: 'refreshIcon',
626
+ value: data.refreshIcon || '',
627
+ groupKey: 'style',
628
+ type: "text",
629
+ className: 'input70',
630
+ placeholder: "请输入图标代码",
631
+ hidden: data.previewCurrent !== 'pickup'
632
+ },
633
+ {
634
+ label: "规则详情样式配置",
635
+ ele: 'title',
636
+ size: 'small',
637
+ groupKey:'style',
638
+ hidden: data.previewCurrent !== 'rule'
639
+ },
640
+ {
641
+ label: "规则详情外边距",
642
+ groupKey:'style',
643
+ ele: 'xd-margin-padding',
644
+ valueKey: 'ruleDetailMargin',
645
+ value: data.ruleDetailMargin || {
646
+ top: 0,
647
+ left: 20,
648
+ right: 20,
649
+ bottom: 15
650
+ },
651
+ setting: {
652
+ type: 'margin',
653
+ },
654
+ placeholder: '请设置外边距',
655
+ inline: false,
656
+ notice: '设置外边距,<span style="color: red">单位:像素</span>',
657
+ hidden: data.previewCurrent !== 'rule'
658
+ },
659
+ {
660
+ label: "规则详情内边距",
661
+ groupKey:'style',
662
+ ele: 'xd-margin-padding',
663
+ valueKey: 'ruleDetailPadding',
664
+ value: data.ruleDetailPadding || {
665
+ top: 20,
666
+ left: 15,
667
+ right: 15,
668
+ bottom: 20
669
+ },
670
+ setting: {
671
+ type: 'padding',
672
+ },
673
+ placeholder: '请设置内边距',
674
+ inline: false,
675
+ notice: '设置外边距,<span style="color: red">单位:像素</span>',
676
+ hidden: data.previewCurrent !== 'rule'
677
+ },
678
+ {
679
+ label: "规则详情背景色",
680
+ groupKey:'style',
681
+ ele: 'xd-color',
682
+ valueKey: 'ruleDetailBgColor',
683
+ value: data.ruleDetailBgColor || '#ffffff',
684
+ hidden: data.previewCurrent !== 'rule'
685
+ },
686
+ {
687
+ label: "规则字体颜色",
688
+ groupKey:'style',
689
+ ele: 'xd-color',
690
+ valueKey: 'ruleDetailFontColor',
691
+ value: data.ruleDetailFontColor || '#303133',
692
+ hidden: data.previewCurrent !== 'rule'
693
+ },
694
+ {
695
+ label: "规则信息边框圆角",
696
+ ele: 'xd-site-select-list',
697
+ valueKey: 'ruleDetailRadius',
698
+ value: data.ruleDetailRadius || '0',
699
+ groupKey:'style',
700
+ placeholder: '请选择内容圆角设置',
701
+ multiple: false,
702
+ className: 'input80',
703
+ handleCustom({ action, data }) {
704
+ XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
705
+ .then(res => {
706
+ data.cb(res.list)
707
+ })
708
+ .catch(error => {
709
+ console.error(error);
710
+ });
711
+ },
712
+ hidden: data.previewCurrent !== 'rule'
713
+ }
55
714
  ].filter(i=>i)
56
715
  },
57
716
  advanced: [],