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,49 +8,914 @@ 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 || "card",
15
+ groupKey: "content",
16
+ list: [
17
+ { label: '我的票券包', value: 'card' },
18
+ { label: '我的优惠券', value: 'coupon' },
19
+ ],
20
+ },
21
+ // {
22
+ // label: '选择综合入口类型:',
23
+ // ele: 'xd-site-select-list',
24
+ // valueKey: 'entryGroupId',
25
+ // value: data.entryGroupId || 'default',
26
+ // placeholder: '请选择综合入口类型',
27
+ // multiple: false,
28
+ // groupKey:'content',
29
+ // className: 'input50',
30
+ // rules: [
31
+ // {required: true, message: '请选择综合入口类型', trigger: ['blur', 'change']}
32
+ // ],
33
+ // handleCustom({action, data}) {
34
+ // XdBus.getParentApi('getEntryGroupOption')({key: Date.now()})
35
+ // .then(res => {
36
+ // data.cb(res.list)
37
+ // })
38
+ // .catch(error => {
39
+ // console.error(error);
40
+ // });
41
+ // },
42
+ // },
43
+ {
44
+ ele: "title",
45
+ label: "公告内容配置 - 通用",
46
+ size: "small",
47
+ groupKey: "content",
48
+ },
49
+ {
50
+ label: '公告内容:',
51
+ ele: 'xd-site-news',
52
+ valueKey: 'notice',
53
+ groupKey:'content',
54
+ value: data.notice || null,
55
+ className: 'input70',
56
+ setting: {
57
+ config: {
58
+ sort: true,
59
+ maxlen: 100,
60
+ action: 'aliyun',
61
+ size: 5,
62
+ tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
63
+ uploadType: 'aliyun',
64
+ type: ['jpg', 'png', 'jpeg']
22
65
  },
23
- ]
66
+ },
67
+ handleCustom({action, data}) {
68
+ if (data && data.params) {
69
+ //当一个插件中出现使用内容分类时候需要设置code值,在页面引用时候容器id + code进行拼接
70
+ //data.params = Object.assign({}, data.params, {code: 'g_test_id'});
71
+ }
72
+
73
+ //获取返回参数(场景类型名称为必填)
74
+ //获取返回参数(场景类型名称为必填)
75
+ let loading = { close(){}}
76
+
77
+ //获取显示内容
78
+ if (action === 'screen') {
79
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_bucket_content_tip'})
80
+ .then(res => {
81
+ loading.close();
82
+ data.cb(res['list'])
83
+ })
84
+ .catch(error => {
85
+ console.error(error);
86
+ loading.close();
87
+ });
88
+
89
+ }
90
+
91
+ //获取返回参数(广告位高度必选项)
92
+ if (action === 'getNewsInfo') {
93
+ XdBus.getParentApi('cmsGetPublishEditxContent')(data.params)
94
+ .then(res => {
95
+ loading.close()
96
+ data.cb({list: res.list, selectId: res.selected})
97
+ })
98
+ .catch(error => {
99
+ loading.close()
100
+ console.error(error);
101
+ });
102
+ }
103
+
104
+ //获取产品业务线列表
105
+ if (action === 'namespace') {
106
+ XdBus.getParentApi('getOptionsNamespaces')({})
107
+ .then(res => {
108
+ loading.close()
109
+ data.cb(res['list'])
110
+ })
111
+ .catch(error => {
112
+ loading.close()
113
+ console.error(error);
114
+ });
115
+ }
116
+
117
+ //使用内容分类
118
+ if (action === 'cmsPublishEditxContent') {
119
+ loading = XdBus.getParentApi('loading')({});
120
+ XdBus.getParentApi('cmsPublishEditxContent')(data.params)
121
+ .then(res => {
122
+ console.log('cmsPublishEditxContent', res)
123
+ loading.close();
124
+ data.cb(res)
125
+ })
126
+ .catch(error => {
127
+ loading.close();
128
+ console.error(error);
129
+ });
130
+ }
131
+
132
+ //位置列表
133
+ if (action === 'getListPostion') {
134
+ loading = XdBus.getParentApi('loading')({});
135
+ XdBus.getParentApi('getListNewsPosition')(data.params)
136
+ .then(res => {
137
+ loading.close();
138
+ data.cb(res)
139
+ })
140
+ .catch(error => {
141
+ loading.close();
142
+ console.error(error);
143
+ });
144
+ }
145
+
146
+ //位置创建
147
+ if (action === 'addPostion') {
148
+ loading = XdBus.getParentApi('loading')({});
149
+ XdBus.getParentApi('addNewsPosition')(data.params)
150
+ .then(res => {
151
+ loading.close();
152
+ data.cb(true)
153
+ })
154
+ .catch(error => {
155
+ console.error(error);
156
+ loading.close();
157
+ data.cb(false)
158
+ });
159
+ }
160
+
161
+ //位置编辑
162
+ if (action === 'editPostion') {
163
+ loading = XdBus.getParentApi('loading')({});
164
+ XdBus.getParentApi('updateNewsPosition')(data.params)
165
+ .then(res => {
166
+ loading.close();
167
+ data.cb(true)
168
+ })
169
+ .catch(error => {
170
+ console.error(error);
171
+ loading.close();
172
+ data.cb(false)
173
+ });
174
+ }
175
+
176
+ //位置删除
177
+ if (action === 'deleltePostion') {
178
+ loading = XdBus.getParentApi('loading')({});
179
+ XdBus.getParentApi('deleteNewsPosition')(data.params)
180
+ .then(res => {
181
+ loading.close();
182
+ data.cb(true)
183
+ })
184
+ .catch(error => {
185
+ console.error(error);
186
+ loading.close();
187
+ data.cb(false)
188
+ });
189
+ }
190
+
191
+ //获取广告位内容列表
192
+ if (action === 'getListContent') {
193
+ loading = XdBus.getParentApi('loading')({});
194
+ XdBus.getParentApi('getListNewsContent')(data.params)
195
+ .then(res => {
196
+ loading.close();
197
+ data.cb(res)
198
+ })
199
+ .catch(error => {
200
+ loading.close();
201
+ console.error(error);
202
+ });
203
+ }
204
+
205
+ //广告内容创建
206
+ if (action === 'addContent') {
207
+ loading = XdBus.getParentApi('loading')({});
208
+ XdBus.getParentApi('addNewsContent')(data.params)
209
+ .then(res => {
210
+ loading.close();
211
+ data.cb(true)
212
+ })
213
+ .catch(error => {
214
+ console.error(error);
215
+ loading.close();
216
+ data.cb(false)
217
+ });
218
+ }
219
+
220
+ //广告内容编辑
221
+ if (action === 'editContent') {
222
+ loading = XdBus.getParentApi('loading')({});
223
+ XdBus.getParentApi('updateNewsContent')(data.params)
224
+ .then(res => {
225
+ loading.close();
226
+ data.cb(true)
227
+ })
228
+ .catch(error => {
229
+ console.error(error);
230
+ loading.close();
231
+ data.cb(false)
232
+ });
233
+ }
234
+
235
+ //广告内容删除
236
+ if (action === 'deleteContent') {
237
+ loading = XdBus.getParentApi('loading')({});
238
+ XdBus.getParentApi('deleteNewsContent')(data.params)
239
+ .then(res => {
240
+ loading.close();
241
+ data.cb(true)
242
+ })
243
+ .catch(error => {
244
+ console.error(error);
245
+ loading.close();
246
+ data.cb(false)
247
+ });
248
+ }
249
+
250
+ //内容发布
251
+ if (action === 'publish') {
252
+ loading = XdBus.getParentApi('loading')({});
253
+ console.log('publish', data.params)
254
+ XdBus.getParentApi('cmsPublishContent')(data.params)
255
+ .then(res => {
256
+ loading.close();
257
+ data.cb(res)
258
+ })
259
+ .catch(error => {
260
+ loading.close();
261
+ console.error(error);
262
+ });
263
+ }
264
+
265
+ //通知页面进行刷新
266
+ if (action === 'update') {
267
+ loading = XdBus.getParentApi('loading')({});
268
+ XdBus.getParentApi('getXdBusUpdateView')('onUpdateView', {});
269
+ loading.close()
270
+ }
271
+ },
24
272
  },
25
273
  {
26
- label: '选中路径:',
27
- ele: 'xd-select-pages-path',
28
- valueKey: 'select-pages-path',
29
- value: data['select-pages-path'] || null,
274
+ ele: "title",
275
+ label: "我的票券包内容配置",
276
+ size: "small",
277
+ groupKey: "content",
278
+ hidden: data.previewCurrent !== 'card'
279
+ },
280
+ {
281
+ label: '票券背景图:',
282
+ ele: 'xd-upload',
283
+ valueKey: 'cardImageUrl',
284
+ groupKey:'content',
285
+ value: data.cardImageUrl || {},
286
+ defaultValue: data.cardImageUrl || null,
287
+ slot: true,
288
+ oneWidth: 350,
289
+ oneHeight: 137,
290
+ elinputClassName: 'input40',
291
+ tipsformet: '上传格式:@imageType@不超过@size@MB.建议尺寸700*274',
292
+ type: ['jpg', 'png', 'jpeg'],
293
+ styleType: 'one',
294
+ uploadType: 'aliyun',
295
+ size: 5,
296
+ action: 'action',
297
+ sort: true,
298
+ maxlen: 100,
299
+ hidden: data.previewCurrent !== 'card'
300
+ },
301
+ {
302
+ label: "背景图裁剪、缩放模式:",
303
+ ele: "xd-select-list",
304
+ valueKey: "cardImageMode",
305
+ groupKey:'content',
306
+ value: data.cardImageMode || '',
307
+ className: "input70",
308
+ list: [
309
+ {label: '铺满背景,裁剪掉多余', value: 'cover'},
310
+ {label: '图像缩放成适合背景区域的最大大小', value: 'contain'}
311
+ ],
312
+ hidden: data.previewCurrent !== 'card'
313
+ },
314
+ {
315
+ ele: "title",
316
+ label: "我的优惠券内容配置",
317
+ size: "small",
318
+ groupKey: "content",
319
+ hidden: data.previewCurrent !== 'coupon'
320
+ },
321
+ {
322
+ label: '优惠券背景图:',
323
+ ele: 'xd-upload',
324
+ valueKey: 'couponImageUrl',
325
+ groupKey:'content',
326
+ value: data.couponImageUrl || {},
327
+ defaultValue: data.couponImageUrl || null,
328
+ slot: true,
329
+ oneWidth: 265,
330
+ oneHeight: 150,
331
+ elinputClassName: 'input40',
332
+ tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
333
+ type: ['jpg', 'png', 'jpeg'],
334
+ styleType: 'one',
335
+ uploadType: 'aliyun',
336
+ size: 5,
337
+ action: 'action',
338
+ sort: true,
339
+ maxlen: 100,
340
+ hidden: data.previewCurrent !== 'coupon'
341
+ },
342
+ {
343
+ label: '顶部菜单配置 - 通用:',
344
+ ele: "title",
345
+ size: "small",
346
+ groupKey: "content",
347
+ },
348
+ {
349
+ label: "顶部菜单右侧文案:",
350
+ ele: "el-input",
351
+ valueKey: "bindCardText",
352
+ value: data.bindCardText || "",
353
+ placeholder: "请输入内容",
354
+ groupKey:'content',
355
+ className: "input70",
356
+ },
357
+ {
358
+ ele: "title",
359
+ label: "列表容器配置 - 通用",
360
+ size: "small",
361
+ groupKey: "style",
362
+ },
363
+ {
364
+ label: "列表容器内边距设置:",
365
+ groupKey:'style',
366
+ ele: 'xd-margin-padding',
367
+ valueKey: 'cardListPadding',
368
+ value: data.cardListPadding || {top: 20, left: 20, right: 20, bottom: 20},
369
+ setting: {
370
+ type: 'padding',
371
+ },
372
+ placeholder: '请设置边距',
373
+ inline: false,
374
+ notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
375
+ },
376
+ {
377
+ label: "列表间距设置:",
378
+ groupKey:'style',
379
+ ele: 'el-input',
380
+ valueKey: 'cardItemMargin',
381
+ value: data.cardItemMargin || 20,
382
+ type: "number",
383
+ className: "input40",
384
+ placeholder: '请输入列表间距',
385
+ inline: false,
386
+ notice: '设置列表间距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
387
+ },
388
+ {
389
+ ele: "title",
390
+ label: "标题菜单配置 - 通用",
391
+ size: "small",
392
+ groupKey: "style",
393
+ },
394
+ {
395
+ label: '菜单容器内边距设置:',
396
+ groupKey:'style',
397
+ ele: 'xd-margin-padding',
398
+ valueKey: 'menuPadding',
399
+ value: data.menuPadding || null,
30
400
  setting: {
31
- router: XdBus.getParentApi('getPagesTree')
401
+ type: 'padding',
32
402
  },
403
+ placeholder: '请设置边距',
404
+ inline: false,
405
+ notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
33
406
  },
34
- data.bgcolor && {
35
- label: '高度:',
407
+ {
408
+ label: '菜单单项内边距设置:',
409
+ groupKey:'style',
410
+ ele: 'xd-margin-padding',
411
+ valueKey: 'menuBtnPadding',
412
+ value: data.menuBtnPadding || null,
413
+ setting: {
414
+ type: 'padding',
415
+ },
416
+ placeholder: '请设置边距',
417
+ inline: false,
418
+ notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
419
+ },
420
+ {
421
+ label: "菜单间距设置:",
422
+ groupKey:'style',
36
423
  ele: 'el-input',
37
- type: 'number',
38
- valueKey: 'height',
39
- value: data.height || 100,
40
- placeholder: '请输入占位框高度,单位像素,默认:10px',
424
+ valueKey: 'menuItemMargin',
425
+ value: data.menuItemMargin || 40,
426
+ type: "number",
427
+ className: "input40",
428
+ placeholder: '请输入菜单间距',
429
+ inline: false,
430
+ notice: '设置菜单间距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">40</span>像素',
431
+ },
432
+ {
433
+ label: '文字背景颜色设置:',
434
+ ele: 'xd-text-and-bgc',
435
+ groupKey:'style',
436
+ valueKey: 'menuTabColor',
437
+ value: data['menuTabColor'] || null,
438
+ setting: {
439
+ fontSize: true, //字体大小选择
440
+ color: true, //文字颜色选项
441
+ bgColor: true, //背景选项
442
+ weight: true, //文字粗细
443
+ },
444
+ handleCustom({action, data}) {
445
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
446
+ .then(res => {
447
+ data.cb(res.list)
448
+ })
449
+ .catch(error => {
450
+ console.error(error);
451
+ data.cb([])
452
+ });
453
+ },
454
+ },
455
+ {
456
+ label: "菜单底部横线粗细:",
457
+ ele: "el-input",
458
+ valueKey: "menuBorderWidth",
459
+ value: data.menuBorderWidth || 1,
460
+ groupKey: "style",
461
+ type: "number",
462
+ },
463
+ {
464
+ label: "顶部菜单右侧配置 - 通用:",
465
+ ele: "title",
466
+ size: "small",
467
+ groupKey: "style",
468
+ },
469
+ {
470
+ label: "展示方式:",
471
+ ele: "xd-radio",
472
+ valueKey: "bindCardShowType",
473
+ value: data.bindCardShowType || 'text',
474
+ groupKey:'style',
475
+ list: [
476
+ {label: '文本', value: 'text'},
477
+ {label: '按钮', value: 'button'}
478
+ ],
479
+ },
480
+ {
481
+ label: "按钮圆角",
482
+ ele: 'xd-site-select-list',
483
+ valueKey: 'bindCardBtnRadius',
484
+ value: data['bindCardBtnRadius'] || 16,
485
+ groupKey:'style',
486
+ placeholder: '请选择内容圆角设置',
487
+ multiple: false,
41
488
  className: 'input80',
42
- rules: [
43
- {
44
- required: true,
45
- message: '请输入占位框高度',
46
- trigger: 'blur'
47
- },
48
- ]
489
+ handleCustom({ action, data }) {
490
+ XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
491
+ .then(res => {
492
+ data.cb(res.list)
493
+ })
494
+ .catch(error => {
495
+ console.error(error);
496
+ });
497
+ },
498
+ hidden: data.bindCardShowType !== 'button'
499
+ },
500
+ {
501
+ label: "右侧文案字体样式:",
502
+ ele: "xd-font",
503
+ valueKey: "bindCardTextStyle",
504
+ value: data.bindCardTextStyle || {},
505
+ groupKey:'style',
506
+ setting: {
507
+ align: false,
508
+ lineHeight: false,
509
+ },
510
+ handleCustom({action, data}) {
511
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
512
+ .then(res => {
513
+ data.cb(res.list)
514
+ })
515
+ .catch(error => {
516
+ data.cb([])
517
+ console.error(error);
518
+ });
519
+ },
520
+ inline: false,
521
+ notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
522
+ hidden: data.bindCardText === ''
523
+ },
524
+ {
525
+ label: "右侧图标(跳转票券绑定):",
526
+ ele: "xd-font",
527
+ valueKey: "bindCardIcon",
528
+ value: data.bindCardIcon || {},
529
+ groupKey:'style',
530
+ setting: {
531
+ align: false,
532
+ lineHeight: false,
533
+ icon: true,
534
+ weight: false,
535
+ },
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
+ data.cb([])
543
+ console.error(error);
544
+ });
545
+ },
546
+ inline: false,
547
+ notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
548
+ },
549
+ {
550
+ ele: "title",
551
+ label: "公告样式配置 - 通用",
552
+ size: "small",
553
+ groupKey: "style",
554
+ },
555
+ {
556
+ label: "外边距设置:",
557
+ groupKey:'style',
558
+ ele: 'xd-margin-padding',
559
+ valueKey: 'noticeMargin',
560
+ value: data.noticeMargin || {
561
+ top: 20,
562
+ right: 0,
563
+ bottom: 20,
564
+ left:20
565
+ },
566
+ setting: {
567
+ type: 'margin',
568
+ },
569
+ placeholder: '请设置边距',
570
+ inline: false,
571
+ notice: '设置外边距,<span style="color: red">单位:像素</span>。',
49
572
  },
50
573
  {
51
- label: '', //label
52
- ele: 'slot', //package 名称
53
- slot: 'is_reference',
574
+ label: "内边距设置:",
575
+ groupKey:'style',
576
+ ele: 'xd-margin-padding',
577
+ valueKey: 'noticePadding',
578
+ value: data.noticePadding || null,
579
+ setting: {
580
+ type: 'padding',
581
+ },
582
+ placeholder: '请设置边距',
583
+ inline: false,
584
+ notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
585
+ },
586
+ {
587
+ label: "背景色设置:",
588
+ ele: "xd-color",
589
+ groupKey:'style',
590
+ valueKey: "noticeBgColor",
591
+ value: data.noticeBgColor || null,
592
+ setting: {
593
+ showAlpha: true,
594
+ isAlpha: true
595
+ }
596
+ },
597
+ {
598
+ label: "文字设置:",
599
+ ele: "xd-font",
600
+ valueKey: "noticeFont",
601
+ value: data.noticeFont || {},
602
+ groupKey:'style',
603
+ setting: {
604
+ align: false,
605
+ lineHeight: false,
606
+ },
607
+ handleCustom({action, data}) {
608
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
609
+ .then(res => {
610
+ data.cb(res.list)
611
+ })
612
+ .catch(error => {
613
+ data.cb([])
614
+ console.error(error);
615
+ });
616
+ },
617
+ inline: false,
618
+ notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
619
+ },
620
+ {
621
+ ele: "title",
622
+ label: "我的票券包样式配置",
623
+ size: "small",
624
+ groupKey: "style",
625
+ hidden: data.previewCurrent !== 'card'
626
+ },
627
+ {
628
+ label: "边框设置:",
629
+ ele: "xd-border",
630
+ groupKey:'style',
631
+ valueKey: "cardBorder",
632
+ value: data.cardBorder || null,
633
+ hidden: data.previewCurrent !== 'card'
634
+ },
635
+ {
636
+ label: "边框阴影设置:",
637
+ ele: "xd-shadow",
638
+ groupKey:'style',
639
+ valueKey: "cardShadow",
640
+ value: data.cardShadow || null,
641
+ handleCustom({action, data}) {
642
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
643
+ .then(res => {
644
+ data.cb(res.list)
645
+ })
646
+ .catch(error => {
647
+ console.error(error);
648
+ data.cb([])
649
+ });
650
+ },
651
+ hidden: data.previewCurrent !== 'card'
652
+ },
653
+ {
654
+ label: "票券高度设置:",
655
+ ele: "el-input",
656
+ valueKey: "cardHeight",
657
+ value: data.cardHeight || 270,
658
+ groupKey:'style',
659
+ placeholder: '请输入票券高度',
660
+ inline: false,
661
+ notice: '设置票券高度,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">100</span> 像素',
662
+ hidden: data.previewCurrent !== 'card'
663
+ },
664
+ {
665
+ label: "单项内边距设置:",
666
+ groupKey:'style',
667
+ ele: 'xd-margin-padding',
668
+ valueKey: 'cardPadding',
669
+ value: data.cardPadding || null,
670
+ setting: {
671
+ type: 'padding',
672
+ },
673
+ placeholder: '请设置边距',
674
+ inline: false,
675
+ notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
676
+ hidden: data.previewCurrent !== 'card'
677
+ },
678
+ {
679
+ label: "圆角设置",
680
+ ele: 'xd-site-select-list',
681
+ valueKey: 'cardRadius',
682
+ value: data['cardRadius'] || 16,
683
+ groupKey:'style',
684
+ placeholder: '请选择内容圆角设置',
685
+ multiple: false,
686
+ className: 'input80',
687
+ handleCustom({ action, data }) {
688
+ XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
689
+ .then(res => {
690
+ data.cb(res.list)
691
+ })
692
+ .catch(error => {
693
+ console.error(error);
694
+ });
695
+ },
696
+ hidden: data.previewCurrent !== 'card'
697
+ },
698
+ {
699
+ label: "按钮最小宽度设置:",
700
+ ele: "el-input",
701
+ valueKey: "cardBtnMinWidth",
702
+ value: data.cardBtnMinWidth || 100,
703
+ groupKey:'style',
704
+ placeholder: '请输入按钮最小宽度',
705
+ inline: false,
706
+ notice: '设置按钮最小宽度,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">100</span> 像素',
707
+ hidden: data.previewCurrent !== 'card'
708
+ },
709
+ {
710
+ label: "登录按钮文字背景色设置:",
711
+ ele: "xd-text-and-bgc",
712
+ groupKey:'style',
713
+ valueKey: "cardBtnTextStyle",
714
+ value: data.cardBtnTextStyle || null,
715
+ setting: {
716
+ fontSize: true, //字体大小选择
717
+ color: true, //文字颜色选项
718
+ bgColor: true, //背景选项
719
+ weight: true, //文字粗细
720
+ },
721
+ handleCustom({action, data}) {
722
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
723
+ .then(res => {
724
+ data.cb(res.list)
725
+ })
726
+ .catch(error => {
727
+ console.error(error);
728
+ data.cb([])
729
+ });
730
+ },
731
+ hidden: data.previewCurrent !== 'card'
732
+ },
733
+ {
734
+ label: "登录按钮圆角设置",
735
+ ele: 'xd-site-select-list',
736
+ valueKey: 'cardBtnRadius',
737
+ value: data['cardBtnRadius'] || 16,
738
+ groupKey:'style',
739
+ placeholder: '请选择内容圆角设置',
740
+ multiple: false,
741
+ className: 'input80',
742
+ handleCustom({ action, data }) {
743
+ XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
744
+ .then(res => {
745
+ data.cb(res.list)
746
+ })
747
+ .catch(error => {
748
+ console.error(error);
749
+ });
750
+ },
751
+ hidden: data.previewCurrent !== 'card'
752
+ },
753
+ {
754
+ label: "登录按钮内边距设置:",
755
+ groupKey:'style',
756
+ ele: 'xd-margin-padding',
757
+ valueKey: 'cardBtnPadding',
758
+ value: data.cardBtnPadding || null,
759
+ setting: {
760
+ type: 'padding',
761
+ },
762
+ placeholder: '请设置边距',
763
+ inline: false,
764
+ notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
765
+ hidden: data.previewCurrent !== 'card'
766
+ },
767
+ {
768
+ ele: "title",
769
+ label: "我的优惠券样式配置",
770
+ size: "small",
771
+ groupKey: "style",
772
+ hidden: data.previewCurrent !== 'coupon'
773
+ },
774
+ {
775
+ label: "优惠券左侧背景色设置:",
776
+ ele: "xd-gradient-color",
777
+ valueKey: "couponLeftBgColor",
778
+ value: data.couponLeftBgColor || 'linear-gradient(180deg, #FFA852 0%, #FF5733 100%)',
779
+ groupKey:'style',
780
+ hidden: data.previewCurrent !== 'coupon'
781
+ },
782
+ {
783
+ label: "圆角设置",
784
+ ele: 'xd-site-select-list',
785
+ valueKey: 'couponRadius',
786
+ value: data['couponRadius'] || 16,
787
+ groupKey:'style',
788
+ placeholder: '请选择内容圆角设置',
789
+ multiple: false,
790
+ className: 'input80',
791
+ handleCustom({ action, data }) {
792
+ XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
793
+ .then(res => {
794
+ data.cb(res.list)
795
+ })
796
+ .catch(error => {
797
+ console.error(error);
798
+ });
799
+ },
800
+ hidden: data.previewCurrent !== 'coupon'
801
+ },
802
+ {
803
+ label: "优惠券标题背景颜色设置:",
804
+ ele: "xd-color",
805
+ valueKey: "couponTitleBgColor",
806
+ value: data.couponTitleBgColor || null,
807
+ groupKey:'style',
808
+ setting: {
809
+ showAlpha: true,
810
+ isAlpha: true
811
+ },
812
+ hidden: data.previewCurrent !== 'coupon'
813
+ },
814
+ {
815
+ label: "去使用按钮文字背景色设置: ",
816
+ ele: "xd-text-and-bgc",
817
+ groupKey:'style',
818
+ valueKey: "couponBtnTextStyle",
819
+ value: data.couponBtnTextStyle || null,
820
+ setting: {
821
+ fontSize: true, //字体大小选择
822
+ color: true, //文字颜色选项
823
+ bgColor: true, //背景选项
824
+ weight: true, //文字粗细
825
+ },
826
+ handleCustom({action, data}) {
827
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
828
+ .then(res => {
829
+ data.cb(res.list)
830
+ })
831
+ .catch(error => {
832
+ console.error(error);
833
+ data.cb([])
834
+ });
835
+ },
836
+ hidden: data.previewCurrent !== 'coupon'
837
+ },
838
+ {
839
+ label: "按钮内边距设置:",
840
+ groupKey:'style',
841
+ ele: 'xd-margin-padding',
842
+ valueKey: 'couponUseBtnPadding',
843
+ value: data.couponUseBtnPadding || null,
844
+ setting: {
845
+ type: 'padding',
846
+ },
847
+ placeholder: '请设置边距',
848
+ inline: false,
849
+ notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
850
+ hidden: data.previewCurrent !== 'coupon'
851
+ },
852
+ {
853
+ label: "按钮圆角设置",
854
+ ele: 'xd-site-select-list',
855
+ valueKey: 'couponBtnRadius',
856
+ value: data['couponBtnRadius'] || 16,
857
+ groupKey:'style',
858
+ placeholder: '请选择内容圆角设置',
859
+ multiple: false,
860
+ className: 'input80',
861
+ handleCustom({ action, data }) {
862
+ XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
863
+ .then(res => {
864
+ data.cb(res.list)
865
+ })
866
+ .catch(error => {
867
+ console.error(error);
868
+ });
869
+ },
870
+ hidden: data.previewCurrent !== 'coupon'
871
+ },
872
+ {
873
+ label: '票券绑定跳转路径:', //label
874
+ ele: 'xd-select-pages-path', //package 名称
875
+ valueKey: 'cardBindPath', //form[valueKey]
876
+ placeholder: '请选择跳转路径',
877
+ value: data.cardBindPath || null,
878
+ groupKey:'advanced',
879
+ setting: {
880
+ router: XdBus.getParentApi('getPagesTree'),
881
+ },
882
+ inline: false,
883
+ },
884
+ {
885
+ label: '票券详情地址:',
886
+ ele: 'xd-select-pages-path',
887
+ valueKey: 'cardDetailPath',
888
+ groupKey:'advanced',
889
+ placeholder: '请选择票券详情地址',
890
+ value: data.cardDetailPath || null,
891
+ setting: {
892
+ router: XdBus.getParentApi('getPagesTree'),
893
+ },
894
+ inline: false,
895
+ },
896
+ {
897
+ label: '失效卡列表地址:',
898
+ ele: 'xd-select-pages-path',
899
+ valueKey: 'disabledPath',
900
+ groupKey:'advanced',
901
+ placeholder: '请选择失效卡列表地址',
902
+ value: data.disabledPath || null,
903
+ setting: {
904
+ router: XdBus.getParentApi('getPagesTree'),
905
+ },
906
+ inline: false,
907
+ },
908
+ {
909
+ label: '综合福利入口页:',
910
+ ele: 'xd-select-pages-path',
911
+ valueKey: 'allEntryPath',
912
+ groupKey: 'advanced',
913
+ placeholder: '请选择综合福利入口页',
914
+ value: data.allEntryPath || null,
915
+ setting: {
916
+ router: XdBus.getParentApi('getPagesTree'),
917
+ },
918
+ inline: false,
54
919
  },
55
920
  ].filter(i=>i)
56
921
  },