jufubao-base 1.0.169 → 1.0.170

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/JfbBaseHeader/JfbBaseHeader.vue +2 -2
  3. package/src/components/JfbBaseLogin/Attr.js +1157 -510
  4. package/src/components/JfbBaseLogin/JfbBaseLogin.vue +369 -63
  5. package/src/components/JfbBaseMapSearch/MapSearchMp.vue +1 -1
  6. package/src/components/JfbBaseNotice/JfbBaseNotice.vue +2 -2
  7. package/src/components/JfbBaseTfkCardBind/Api.js +49 -30
  8. package/src/components/JfbBaseTfkCardBind/Attr.js +708 -38
  9. package/src/components/JfbBaseTfkCardBind/JfbBaseTfkCardBind.vue +688 -22
  10. package/src/components/JfbBaseTfkCardBind/Mock.js +19 -9
  11. package/src/components/JfbBaseTfkCardDetail/Api.js +19 -32
  12. package/src/components/JfbBaseTfkCardDetail/Attr.js +740 -33
  13. package/src/components/JfbBaseTfkCardDetail/JfbBaseTfkCardDetail.vue +639 -23
  14. package/src/components/JfbBaseTfkCardDetail/Mock.js +151 -11
  15. package/src/components/JfbBaseTfkCardLogin/Api.js +19 -34
  16. package/src/components/JfbBaseTfkCardLogin/Attr.js +1094 -32
  17. package/src/components/JfbBaseTfkCardLogin/JfbBaseTfkCardLogin.vue +775 -17
  18. package/src/components/JfbBaseTfkCardLogin/Mock.js +191 -11
  19. package/src/components/JfbBaseTfkCardLogin/XdCouponItem.vue +275 -0
  20. package/src/components/JfbBaseTfkCardLogin/XdNotice.vue +550 -0
  21. package/src/components/JfbBaseTfkSearch/AllList.vue +337 -0
  22. package/src/components/JfbBaseTfkSearch/Api.js +11 -42
  23. package/src/components/JfbBaseTfkSearch/Attr.js +344 -32
  24. package/src/components/JfbBaseTfkSearch/ContentCinema.vue +157 -0
  25. package/src/components/JfbBaseTfkSearch/ContentFilm.vue +218 -0
  26. package/src/components/JfbBaseTfkSearch/ContentProduct.vue +317 -0
  27. package/src/components/JfbBaseTfkSearch/ContentShop.vue +186 -0
  28. package/src/components/JfbBaseTfkSearch/CusAttr.js +213 -0
  29. package/src/components/JfbBaseTfkSearch/CustomList.vue +453 -0
  30. package/src/components/JfbBaseTfkSearch/JfbBaseTfkSearch.vue +286 -35
  31. package/src/components/JfbBaseTfkSearch/Mock.js +242 -11
  32. package/src/components/JfbBaseTfkSearch/SkeletonCinema.vue +45 -0
  33. package/src/components/JfbBaseTfkSearch/SkeletonFilm.vue +109 -0
  34. package/src/components/JfbBaseTfkSearch/SkeletonProduct.vue +246 -0
  35. package/src/components/JfbBaseTfkSearch/SkeletonShop.vue +81 -0
  36. package/src/components/JfbBaseTfkSearch/handleKeyword.js +24 -0
  37. package/src/components/JfbBaseTfkSearch/listMixins.js +187 -0
  38. package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +2 -1
  39. package/src/mixins/colorCardMixins.js +71 -9
  40. package/src/mixins/componentsMixins.js +376 -23
  41. package/src/mixins/posterMixins.js +122 -0
@@ -8,50 +8,757 @@ 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'
24
285
  },
25
286
  {
26
- label: '选中路径:',
27
- ele: 'xd-select-pages-path',
28
- valueKey: 'select-pages-path',
29
- value: data['select-pages-path'] || null,
287
+ label: "字体颜色",
288
+ ele: 'xd-color',
289
+ valueKey: 'cardFontColor',
290
+ value: data.cardFontColor || '#303133',
291
+ groupKey:'style',
292
+ hidden: data.previewCurrent !== 'main'
293
+ },
294
+ {
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 || 340,
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
+ ele: 'xd-site-select-list',
418
+ valueKey: 'bussTempRadius',
419
+ value: data['bussTempRadius'] || 16,
420
+ groupKey:'style',
421
+ placeholder: '请选择内容圆角设置',
422
+ multiple: false,
423
+ className: 'input80',
424
+ handleCustom({ action, data }) {
425
+ XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
426
+ .then(res => {
427
+ data.cb(res.list)
428
+ })
429
+ .catch(error => {
430
+ console.error(error);
431
+ });
432
+ },
433
+ hidden: data.previewCurrent !== 'main'
434
+ },
435
+ {
436
+ label: "单项业务外边距",
437
+ groupKey:'style',
438
+ ele: 'xd-margin-padding',
439
+ valueKey: 'bussMargin',
440
+ value: data.bussMargin || {
441
+ top: 30,
442
+ left: 30,
443
+ right: 30,
444
+ bottom: 30
445
+ },
446
+ setting: {
447
+ type: 'margin',
448
+ },
449
+ placeholder: '请设置外边距',
450
+ inline: false,
451
+ notice: '设置外边距,<span style="color: red">单位:像素</span>。',
452
+ hidden: data.previewCurrent !== 'main' || data.showBusinessList !== 'Y'
453
+ },
454
+ {
455
+ label: "单项业务宽度",
456
+ groupKey:'style',
457
+ ele: 'el-input',
458
+ valueKey: 'bussWidth',
459
+ value: data.bussWidth || 100,
460
+ type: "number",
461
+ className: 'input70',
462
+ placeholder: "请输入单项业务宽度",
463
+ hidden: data.previewCurrent !== 'main' || data.showBusinessList !== 'Y'
464
+ },
465
+ {
466
+ label: "使用规则、提货码样式配置",
467
+ ele: 'title',
468
+ size: 'small',
469
+ groupKey:'style',
470
+ hidden: data.previewCurrent !== 'main'
471
+ },
472
+ {
473
+ label: "外边距",
474
+ groupKey:'style',
475
+ ele: 'xd-margin-padding',
476
+ valueKey: 'listColMargin',
477
+ value: data.listColMargin || {
478
+ top: 40,
479
+ left: 0,
480
+ right: 0,
481
+ bottom: 15
482
+ },
483
+ setting: {
484
+ type: 'margin',
485
+ },
486
+ placeholder: '请设置外边距',
487
+ inline: false,
488
+ notice: '设置外边距,<span style="color: red">单位:像素</span>。',
489
+ hidden: data.previewCurrent !== 'main'
490
+ },
491
+ {
492
+ label: "单项内边距",
493
+ groupKey:'style',
494
+ ele: 'xd-margin-padding',
495
+ valueKey: 'listColPadding',
496
+ value: data.listColPadding || {
497
+ top: 20,
498
+ left: 20,
499
+ right: 20,
500
+ bottom: 20
501
+ },
502
+ setting: {
503
+ type: 'padding',
504
+ },
505
+ placeholder: '请设置内边距',
506
+ inline: false,
507
+ notice: '设置内边距,<span style="color: red">单位:像素</span>。',
508
+ hidden: data.previewCurrent !== 'main'
509
+ },
510
+ {
511
+ label: "单项间隔距离",
512
+ ele: "el-input",
513
+ valueKey: 'listColSpace',
514
+ value: data.listColSpace || 10,
515
+ groupKey: 'style',
516
+ type: "number",
517
+ className: 'input70',
518
+ placeholder: "请输入间隔距离",
519
+ hidden: data.previewCurrent !== 'main'
520
+ },
521
+ {
522
+ label: "单项背景色",
523
+ groupKey:'style',
524
+ ele: 'xd-color',
525
+ valueKey: 'listColBgColor',
526
+ value: data.listColBgColor || '#ffffff',
527
+ hidden: data.previewCurrent !== 'main'
528
+ },
529
+ {
530
+ label: "单项圆角",
531
+ ele: 'xd-site-select-list',
532
+ valueKey: 'listColRadius',
533
+ value: data['listColRadius'] || 16,
534
+ groupKey:'style',
535
+ placeholder: '请选择内容圆角设置',
536
+ multiple: false,
537
+ className: 'input80',
538
+ handleCustom({ action, data }) {
539
+ XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
540
+ .then(res => {
541
+ data.cb(res.list)
542
+ })
543
+ .catch(error => {
544
+ console.error(error);
545
+ });
546
+ },
547
+ hidden: data.previewCurrent !== 'main'
548
+ },
549
+ {
550
+ label: "提货码详情样式配置",
551
+ ele: 'title',
552
+ size: 'small',
553
+ groupKey:'style',
554
+ hidden: data.previewCurrent !== 'pickup'
555
+ },
556
+ {
557
+ label: "提货码详情外边距",
558
+ groupKey:'style',
559
+ ele: 'xd-margin-padding',
560
+ valueKey: 'codeDetailMargin',
561
+ value: data.codeDetailMargin || {
562
+ top: 30,
563
+ left: 20,
564
+ right: 20,
565
+ bottom: 30
566
+ },
567
+ setting: {
568
+ type: 'margin',
569
+ },
570
+ placeholder: '请设置外边距',
571
+ inline: false,
572
+ notice: '设置外边距,<span style="color: red">单位:像素</span>',
573
+ hidden: data.previewCurrent !== 'pickup'
49
574
  },
50
575
  {
51
- label: '', //label
52
- ele: 'slot', //package 名称
53
- slot: 'is_reference',
576
+ label: "提货码详情内边距",
577
+ groupKey:'style',
578
+ ele: 'xd-margin-padding',
579
+ valueKey: 'codeDetailPadding',
580
+ value: data.codeDetailPadding || {
581
+ top: 20,
582
+ left: 20,
583
+ right: 20,
584
+ bottom: 20
585
+ },
586
+ setting: {
587
+ type: 'padding',
588
+ },
589
+ placeholder: '请设置内边距',
590
+ inline: false,
591
+ notice: '设置外边距,<span style="color: red">单位:像素</span>',
592
+ hidden: data.previewCurrent !== 'pickup'
54
593
  },
594
+ {
595
+ label: "提货码详情背景色",
596
+ groupKey:'style',
597
+ ele: 'xd-color',
598
+ valueKey: 'codeDetailBgColor',
599
+ value: data.codeDetailBgColor || '#ffffff',
600
+ hidden: data.previewCurrent !== 'pickup'
601
+ },
602
+ {
603
+ label: "提货码详情圆角",
604
+ ele: 'xd-site-select-list',
605
+ valueKey: 'codeDetailRadius',
606
+ value: data['codeDetailRadius'] || 16,
607
+ groupKey:'style',
608
+ placeholder: '请选择内容圆角设置',
609
+ multiple: false,
610
+ className: 'input80',
611
+ handleCustom({ action, data }) {
612
+ XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
613
+ .then(res => {
614
+ data.cb(res.list)
615
+ })
616
+ .catch(error => {
617
+ console.error(error);
618
+ });
619
+ },
620
+ hidden: data.previewCurrent !== 'pickup'
621
+ },
622
+ {
623
+ label: "提货码详情边框",
624
+ ele: "xd-border",
625
+ valueKey: 'codeDetailBorder',
626
+ value: data.codeDetailBorder || null,
627
+ groupKey:'style',
628
+ hidden: data.previewCurrent !== 'pickup'
629
+ },
630
+ {
631
+ label: "提货码详情边框阴影",
632
+ ele: "xd-shadow",
633
+ valueKey: 'codeDetailShadow',
634
+ value: data.codeDetailShadow || null,
635
+ groupKey:'style',
636
+ handleCustom({action, data}) {
637
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
638
+ .then(res => {
639
+ data.cb(res.list)
640
+ })
641
+ .catch(error => {
642
+ console.error(error);
643
+ data.cb([])
644
+ });
645
+ },
646
+ hidden: data.previewCurrent !== 'pickup'
647
+ },
648
+ {
649
+ label: "二维码长宽设置",
650
+ ele: "el-input",
651
+ valueKey: 'qrcodeWidth',
652
+ value: data.qrcodeWidth || 300,
653
+ groupKey: 'style',
654
+ type: "number",
655
+ className: 'input70',
656
+ placeholder: "请输入二维码长宽",
657
+ hidden: data.previewCurrent !== 'pickup'
658
+ },
659
+ {
660
+ label: "向商家付款前置图标配置",
661
+ ele: 'el-input',
662
+ valueKey: 'payPreIcon',
663
+ value: data.payPreIcon || '',
664
+ groupKey: 'style',
665
+ type: "text",
666
+ className: 'input70',
667
+ placeholder: "请输入图标代码",
668
+ hidden: data.previewCurrent !== 'pickup'
669
+ },
670
+ {
671
+ label: "刷新二维码图标配置",
672
+ ele: 'el-input',
673
+ valueKey: 'refreshIcon',
674
+ value: data.refreshIcon || '',
675
+ groupKey: 'style',
676
+ type: "text",
677
+ className: 'input70',
678
+ placeholder: "请输入图标代码",
679
+ hidden: data.previewCurrent !== 'pickup'
680
+ },
681
+ {
682
+ label: "规则详情样式配置",
683
+ ele: 'title',
684
+ size: 'small',
685
+ groupKey:'style',
686
+ hidden: data.previewCurrent !== 'rule'
687
+ },
688
+ {
689
+ label: "规则详情外边距",
690
+ groupKey:'style',
691
+ ele: 'xd-margin-padding',
692
+ valueKey: 'ruleDetailMargin',
693
+ value: data.ruleDetailMargin || {
694
+ top: 0,
695
+ left: 20,
696
+ right: 20,
697
+ bottom: 15
698
+ },
699
+ setting: {
700
+ type: 'margin',
701
+ },
702
+ placeholder: '请设置外边距',
703
+ inline: false,
704
+ notice: '设置外边距,<span style="color: red">单位:像素</span>',
705
+ hidden: data.previewCurrent !== 'rule'
706
+ },
707
+ {
708
+ label: "规则详情内边距",
709
+ groupKey:'style',
710
+ ele: 'xd-margin-padding',
711
+ valueKey: 'ruleDetailPadding',
712
+ value: data.ruleDetailPadding || {
713
+ top: 20,
714
+ left: 15,
715
+ right: 15,
716
+ bottom: 20
717
+ },
718
+ setting: {
719
+ type: 'padding',
720
+ },
721
+ placeholder: '请设置内边距',
722
+ inline: false,
723
+ notice: '设置外边距,<span style="color: red">单位:像素</span>',
724
+ hidden: data.previewCurrent !== 'rule'
725
+ },
726
+ {
727
+ label: "规则详情背景色",
728
+ groupKey:'style',
729
+ ele: 'xd-color',
730
+ valueKey: 'ruleDetailBgColor',
731
+ value: data.ruleDetailBgColor || '#ffffff',
732
+ hidden: data.previewCurrent !== 'rule'
733
+ },
734
+ {
735
+ label: "规则字体颜色",
736
+ groupKey:'style',
737
+ ele: 'xd-color',
738
+ valueKey: 'ruleDetailFontColor',
739
+ value: data.ruleDetailFontColor || '#303133',
740
+ hidden: data.previewCurrent !== 'rule'
741
+ },
742
+ {
743
+ label: "规则信息边框圆角",
744
+ ele: 'xd-site-select-list',
745
+ valueKey: 'ruleDetailRadius',
746
+ value: data.ruleDetailRadius || '0',
747
+ groupKey:'style',
748
+ placeholder: '请选择内容圆角设置',
749
+ multiple: false,
750
+ className: 'input80',
751
+ handleCustom({ action, data }) {
752
+ XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
753
+ .then(res => {
754
+ data.cb(res.list)
755
+ })
756
+ .catch(error => {
757
+ console.error(error);
758
+ });
759
+ },
760
+ hidden: data.previewCurrent !== 'rule'
761
+ }
55
762
  ].filter(i=>i)
56
763
  },
57
764
  advanced: [],