jufubao-base 1.0.169-beta9 → 1.0.169

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 (37) hide show
  1. package/package.json +1 -1
  2. package/src/components/JfbBaseLogin/Attr.js +510 -1147
  3. package/src/components/JfbBaseLogin/JfbBaseLogin.vue +63 -364
  4. package/src/components/JfbBaseMapSearch/MapSearchMp.vue +1 -1
  5. package/src/components/JfbBaseTfkCardBind/Api.js +30 -49
  6. package/src/components/JfbBaseTfkCardBind/Attr.js +38 -635
  7. package/src/components/JfbBaseTfkCardBind/JfbBaseTfkCardBind.vue +22 -589
  8. package/src/components/JfbBaseTfkCardBind/Mock.js +9 -19
  9. package/src/components/JfbBaseTfkCardDetail/Api.js +32 -19
  10. package/src/components/JfbBaseTfkCardDetail/Attr.js +33 -692
  11. package/src/components/JfbBaseTfkCardDetail/JfbBaseTfkCardDetail.vue +23 -630
  12. package/src/components/JfbBaseTfkCardDetail/Mock.js +11 -151
  13. package/src/components/JfbBaseTfkCardLogin/Api.js +34 -19
  14. package/src/components/JfbBaseTfkCardLogin/Attr.js +33 -885
  15. package/src/components/JfbBaseTfkCardLogin/JfbBaseTfkCardLogin.vue +16 -729
  16. package/src/components/JfbBaseTfkCardLogin/Mock.js +11 -721
  17. package/src/components/JfbBaseTfkSearch/Api.js +42 -11
  18. package/src/components/JfbBaseTfkSearch/Attr.js +33 -143
  19. package/src/components/JfbBaseTfkSearch/JfbBaseTfkSearch.vue +22 -171
  20. package/src/components/JfbBaseTfkSearch/Mock.js +11 -90
  21. package/src/mixins/colorCardMixins.js +9 -71
  22. package/src/mixins/componentsMixins.js +23 -346
  23. package/src/components/JfbBaseTfkCardLogin/XdCouponItem.vue +0 -271
  24. package/src/components/JfbBaseTfkSearch/AllList.vue +0 -231
  25. package/src/components/JfbBaseTfkSearch/ContentCinema.vue +0 -157
  26. package/src/components/JfbBaseTfkSearch/ContentFilm.vue +0 -179
  27. package/src/components/JfbBaseTfkSearch/ContentProduct.vue +0 -308
  28. package/src/components/JfbBaseTfkSearch/ContentShop.vue +0 -184
  29. package/src/components/JfbBaseTfkSearch/CusAttr.js +0 -203
  30. package/src/components/JfbBaseTfkSearch/CustomList.vue +0 -401
  31. package/src/components/JfbBaseTfkSearch/SkeletonCinema.vue +0 -45
  32. package/src/components/JfbBaseTfkSearch/SkeletonFilm.vue +0 -109
  33. package/src/components/JfbBaseTfkSearch/SkeletonProduct.vue +0 -246
  34. package/src/components/JfbBaseTfkSearch/SkeletonShop.vue +0 -81
  35. package/src/components/JfbBaseTfkSearch/handleKeyword.js +0 -24
  36. package/src/components/JfbBaseTfkSearch/listMixins.js +0 -151
  37. package/src/components/JfbBaseTfkSearch/search.js +0 -293
@@ -8,901 +8,49 @@ export default {
8
8
  content: (data) => {
9
9
  return [
10
10
  {
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']
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'
65
22
  },
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
- },
272
- },
273
- {
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
- },
313
- {
314
- ele: "title",
315
- label: "我的优惠券内容配置",
316
- size: "small",
317
- groupKey: "content",
318
- hidden: data.previewCurrent !== 'coupon'
319
- },
320
- {
321
- label: '优惠券背景图:',
322
- ele: 'xd-upload',
323
- valueKey: 'couponImageUrl',
324
- groupKey:'content',
325
- value: data.couponImageUrl || {},
326
- defaultValue: data.couponImageUrl || null,
327
- slot: true,
328
- oneWidth: 265,
329
- oneHeight: 150,
330
- elinputClassName: 'input40',
331
- tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
332
- type: ['jpg', 'png', 'jpeg'],
333
- styleType: 'one',
334
- uploadType: 'aliyun',
335
- size: 5,
336
- action: 'action',
337
- sort: true,
338
- maxlen: 100,
339
- hidden: data.previewCurrent !== 'coupon'
340
- },
341
- {
342
- label: '顶部菜单配置 - 通用:',
343
- ele: "title",
344
- size: "small",
345
- groupKey: "content",
346
- },
347
- {
348
- label: "顶部菜单右侧文案:",
349
- ele: "el-input",
350
- valueKey: "bindCardText",
351
- value: data.bindCardText || "",
352
- placeholder: "请输入内容",
353
- groupKey:'content',
354
- className: "input70",
355
- },
356
- {
357
- ele: "title",
358
- label: "列表容器配置 - 通用",
359
- size: "small",
360
- groupKey: "style",
361
- },
362
- {
363
- label: "列表容器内边距设置:",
364
- groupKey:'style',
365
- ele: 'xd-margin-padding',
366
- valueKey: 'cardListPadding',
367
- value: data.cardListPadding || {top: 20, left: 20, right: 20, bottom: 20},
368
- setting: {
369
- type: 'padding',
370
- },
371
- placeholder: '请设置边距',
372
- inline: false,
373
- notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
374
- },
375
- {
376
- label: "列表间距设置:",
377
- groupKey:'style',
378
- ele: 'el-input',
379
- valueKey: 'cardItemMargin',
380
- value: data.cardItemMargin || 20,
381
- type: "number",
382
- className: "input40",
383
- placeholder: '请输入列表间距',
384
- inline: false,
385
- notice: '设置列表间距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
386
- },
387
- {
388
- ele: "title",
389
- label: "标题菜单配置 - 通用",
390
- size: "small",
391
- groupKey: "style",
23
+ ]
392
24
  },
393
25
  {
394
- label: '菜单容器内边距设置:',
395
- groupKey:'style',
396
- ele: 'xd-margin-padding',
397
- valueKey: 'menuPadding',
398
- value: data.menuPadding || null,
399
- setting: {
400
- type: 'padding',
401
- },
402
- placeholder: '请设置边距',
403
- inline: false,
404
- notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
405
- },
406
- {
407
- label: '菜单单项内边距设置:',
408
- groupKey:'style',
409
- ele: 'xd-margin-padding',
410
- valueKey: 'menuBtnPadding',
411
- value: data.menuBtnPadding || null,
26
+ label: '选中路径:',
27
+ ele: 'xd-select-pages-path',
28
+ valueKey: 'select-pages-path',
29
+ value: data['select-pages-path'] || null,
412
30
  setting: {
413
- type: 'padding',
31
+ router: XdBus.getParentApi('getPagesTree')
414
32
  },
415
- placeholder: '请设置边距',
416
- inline: false,
417
- notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
418
33
  },
419
- {
420
- label: "菜单间距设置:",
421
- groupKey:'style',
34
+ data.bgcolor && {
35
+ label: '高度:',
422
36
  ele: 'el-input',
423
- valueKey: 'menuItemMargin',
424
- value: data.menuItemMargin || 40,
425
- type: "number",
426
- className: "input40",
427
- placeholder: '请输入菜单间距',
428
- inline: false,
429
- notice: '设置菜单间距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">40</span>像素',
430
- },
431
- {
432
- label: '文字背景颜色设置:',
433
- ele: 'xd-text-and-bgc',
434
- groupKey:'style',
435
- valueKey: 'menuTabColor',
436
- value: data['menuTabColor'] || null,
437
- setting: {
438
- fontSize: true, //字体大小选择
439
- color: true, //文字颜色选项
440
- bgColor: true, //背景选项
441
- weight: true, //文字粗细
442
- },
443
- handleCustom({action, data}) {
444
- XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
445
- .then(res => {
446
- data.cb(res.list)
447
- })
448
- .catch(error => {
449
- console.error(error);
450
- data.cb([])
451
- });
452
- },
453
- },
454
- {
455
- label: "菜单底部横线粗细:",
456
- ele: "el-input",
457
- valueKey: "menuBorderWidth",
458
- value: data.menuBorderWidth || 1,
459
- groupKey: "style",
460
- type: "number",
461
- },
462
- {
463
- label: "顶部菜单右侧配置 - 通用:",
464
- ele: "title",
465
- size: "small",
466
- groupKey: "style",
467
- },
468
- {
469
- label: "展示方式:",
470
- ele: "xd-radio",
471
- valueKey: "bindCardShowType",
472
- value: data.bindCardShowType || 'text',
473
- groupKey:'style',
474
- list: [
475
- {label: '文本', value: 'text'},
476
- {label: '按钮', value: 'button'}
477
- ],
478
- },
479
- {
480
- label: "按钮圆角",
481
- ele: 'xd-site-select-list',
482
- valueKey: 'bindCardBtnRadius',
483
- value: data['bindCardBtnRadius'] || 16,
484
- groupKey:'style',
485
- placeholder: '请选择内容圆角设置',
486
- multiple: false,
37
+ type: 'number',
38
+ valueKey: 'height',
39
+ value: data.height || 100,
40
+ placeholder: '请输入占位框高度,单位像素,默认:10px',
487
41
  className: 'input80',
488
- handleCustom({ action, data }) {
489
- XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
490
- .then(res => {
491
- data.cb(res.list)
492
- })
493
- .catch(error => {
494
- console.error(error);
495
- });
496
- },
497
- hidden: data.bindCardShowType !== 'button'
498
- },
499
- {
500
- label: "右侧文案字体样式:",
501
- ele: "xd-font",
502
- valueKey: "bindCardTextStyle",
503
- value: data.bindCardTextStyle || {},
504
- groupKey:'style',
505
- setting: {
506
- align: false,
507
- lineHeight: false,
508
- },
509
- handleCustom({action, data}) {
510
- XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
511
- .then(res => {
512
- data.cb(res.list)
513
- })
514
- .catch(error => {
515
- data.cb([])
516
- console.error(error);
517
- });
518
- },
519
- inline: false,
520
- notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
521
- hidden: data.bindCardText === ''
522
- },
523
- {
524
- label: "右侧图标(跳转票券绑定):",
525
- ele: "xd-font",
526
- valueKey: "bindCardIcon",
527
- value: data.bindCardIcon || {},
528
- groupKey:'style',
529
- setting: {
530
- align: false,
531
- lineHeight: false,
532
- icon: true,
533
- weight: false,
534
- },
535
- handleCustom({action, data}) {
536
- XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
537
- .then(res => {
538
- data.cb(res.list)
539
- })
540
- .catch(error => {
541
- data.cb([])
542
- console.error(error);
543
- });
544
- },
545
- inline: false,
546
- notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
547
- },
548
- {
549
- ele: "title",
550
- label: "公告样式配置 - 通用",
551
- size: "small",
552
- groupKey: "style",
553
- },
554
- {
555
- label: "外边距设置:",
556
- groupKey:'style',
557
- ele: 'xd-margin-padding',
558
- valueKey: 'noticeMargin',
559
- value: data.noticeMargin || {
560
- top: 20,
561
- right: 0,
562
- bottom: 20,
563
- left:20
564
- },
565
- setting: {
566
- type: 'margin',
567
- },
568
- placeholder: '请设置边距',
569
- inline: false,
570
- notice: '设置外边距,<span style="color: red">单位:像素</span>。',
571
- },
572
- {
573
- label: "内边距设置:",
574
- groupKey:'style',
575
- ele: 'xd-margin-padding',
576
- valueKey: 'noticePadding',
577
- value: data.noticePadding || null,
578
- setting: {
579
- type: 'padding',
580
- },
581
- placeholder: '请设置边距',
582
- inline: false,
583
- notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
584
- },
585
- {
586
- label: "背景色设置:",
587
- ele: "xd-color",
588
- groupKey:'style',
589
- valueKey: "noticeBgColor",
590
- value: data.noticeBgColor || null,
591
- setting: {
592
- showAlpha: true,
593
- isAlpha: true
594
- }
595
- },
596
- {
597
- label: "文字设置:",
598
- ele: "xd-font",
599
- valueKey: "noticeFont",
600
- value: data.noticeFont || {},
601
- groupKey:'style',
602
- setting: {
603
- align: false,
604
- lineHeight: false,
605
- },
606
- handleCustom({action, data}) {
607
- XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
608
- .then(res => {
609
- data.cb(res.list)
610
- })
611
- .catch(error => {
612
- data.cb([])
613
- console.error(error);
614
- });
615
- },
616
- inline: false,
617
- notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
618
- },
619
- {
620
- ele: "title",
621
- label: "我的票券包样式配置",
622
- size: "small",
623
- groupKey: "style",
624
- hidden: data.previewCurrent !== 'card'
625
- },
626
- {
627
- label: "边框设置:",
628
- ele: "xd-border",
629
- groupKey:'style',
630
- valueKey: "cardBorder",
631
- value: data.cardBorder || null,
632
- hidden: data.previewCurrent !== 'card'
633
- },
634
- {
635
- label: "边框阴影设置:",
636
- ele: "xd-shadow",
637
- groupKey:'style',
638
- valueKey: "cardShadow",
639
- value: data.cardShadow || null,
640
- handleCustom({action, data}) {
641
- XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
642
- .then(res => {
643
- data.cb(res.list)
644
- })
645
- .catch(error => {
646
- console.error(error);
647
- data.cb([])
648
- });
649
- },
650
- hidden: data.previewCurrent !== 'card'
651
- },
652
- {
653
- label: "票券高度设置:",
654
- ele: "el-input",
655
- valueKey: "cardHeight",
656
- value: data.cardHeight || 270,
657
- groupKey:'style',
658
- placeholder: '请输入票券高度',
659
- inline: false,
660
- notice: '设置票券高度,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">100</span> 像素',
661
- hidden: data.previewCurrent !== 'card'
662
- },
663
- {
664
- label: "单项内边距设置:",
665
- groupKey:'style',
666
- ele: 'xd-margin-padding',
667
- valueKey: 'cardPadding',
668
- value: data.cardPadding || null,
669
- setting: {
670
- type: 'padding',
671
- },
672
- placeholder: '请设置边距',
673
- inline: false,
674
- notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
675
- hidden: data.previewCurrent !== 'card'
676
- },
677
- {
678
- label: "圆角设置",
679
- ele: 'xd-site-select-list',
680
- valueKey: 'cardRadius',
681
- value: data['cardRadius'] || 16,
682
- groupKey:'style',
683
- placeholder: '请选择内容圆角设置',
684
- multiple: false,
685
- className: 'input80',
686
- handleCustom({ action, data }) {
687
- XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
688
- .then(res => {
689
- data.cb(res.list)
690
- })
691
- .catch(error => {
692
- console.error(error);
693
- });
694
- },
695
- hidden: data.previewCurrent !== 'card'
696
- },
697
- {
698
- label: "按钮最小宽度设置:",
699
- ele: "el-input",
700
- valueKey: "cardBtnMinWidth",
701
- value: data.cardBtnMinWidth || 100,
702
- groupKey:'style',
703
- placeholder: '请输入按钮最小宽度',
704
- inline: false,
705
- notice: '设置按钮最小宽度,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">100</span> 像素',
706
- hidden: data.previewCurrent !== 'card'
707
- },
708
- {
709
- label: "登录按钮文字背景色设置:",
710
- ele: "xd-text-and-bgc",
711
- groupKey:'style',
712
- valueKey: "cardBtnTextStyle",
713
- value: data.cardBtnTextStyle || null,
714
- setting: {
715
- fontSize: true, //字体大小选择
716
- color: true, //文字颜色选项
717
- bgColor: true, //背景选项
718
- weight: true, //文字粗细
719
- },
720
- handleCustom({action, data}) {
721
- XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
722
- .then(res => {
723
- data.cb(res.list)
724
- })
725
- .catch(error => {
726
- console.error(error);
727
- data.cb([])
728
- });
729
- },
730
- hidden: data.previewCurrent !== 'card'
731
- },
732
- {
733
- label: "登录按钮圆角设置",
734
- ele: 'xd-site-select-list',
735
- valueKey: 'cardBtnRadius',
736
- value: data['cardBtnRadius'] || 16,
737
- groupKey:'style',
738
- placeholder: '请选择内容圆角设置',
739
- multiple: false,
740
- className: 'input80',
741
- handleCustom({ action, data }) {
742
- XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
743
- .then(res => {
744
- data.cb(res.list)
745
- })
746
- .catch(error => {
747
- console.error(error);
748
- });
749
- },
750
- hidden: data.previewCurrent !== 'card'
751
- },
752
- {
753
- label: "登录按钮内边距设置:",
754
- groupKey:'style',
755
- ele: 'xd-margin-padding',
756
- valueKey: 'cardBtnPadding',
757
- value: data.cardBtnPadding || null,
758
- setting: {
759
- type: 'padding',
760
- },
761
- placeholder: '请设置边距',
762
- inline: false,
763
- notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
764
- hidden: data.previewCurrent !== 'card'
765
- },
766
- {
767
- ele: "title",
768
- label: "我的优惠券样式配置",
769
- size: "small",
770
- groupKey: "style",
771
- hidden: data.previewCurrent !== 'coupon'
772
- },
773
- {
774
- label: "优惠券左侧背景色设置:",
775
- ele: "xd-gradient-color",
776
- valueKey: "couponLeftBgColor",
777
- value: data.couponLeftBgColor || 'linear-gradient(180deg, #FFA852 0%, #FF5733 100%)',
778
- groupKey:'style',
779
- hidden: data.previewCurrent !== 'coupon'
780
- },
781
- {
782
- label: "圆角设置",
783
- ele: 'xd-site-select-list',
784
- valueKey: 'couponRadius',
785
- value: data['couponRadius'] || 16,
786
- groupKey:'style',
787
- placeholder: '请选择内容圆角设置',
788
- multiple: false,
789
- className: 'input80',
790
- handleCustom({ action, data }) {
791
- XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
792
- .then(res => {
793
- data.cb(res.list)
794
- })
795
- .catch(error => {
796
- console.error(error);
797
- });
798
- },
799
- hidden: data.previewCurrent !== 'coupon'
800
- },
801
- {
802
- label: "优惠券标题背景颜色设置:",
803
- ele: "xd-color",
804
- valueKey: "couponTitleBgColor",
805
- value: data.couponTitleBgColor || null,
806
- groupKey:'style',
807
- setting: {
808
- showAlpha: true,
809
- isAlpha: true
810
- },
811
- hidden: data.previewCurrent !== 'coupon'
812
- },
813
- {
814
- label: "去使用按钮文字背景色设置: ",
815
- ele: "xd-text-and-bgc",
816
- groupKey:'style',
817
- valueKey: "couponBtnTextStyle",
818
- value: data.couponBtnTextStyle || null,
819
- setting: {
820
- fontSize: true, //字体大小选择
821
- color: true, //文字颜色选项
822
- bgColor: true, //背景选项
823
- weight: true, //文字粗细
824
- },
825
- handleCustom({action, data}) {
826
- XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
827
- .then(res => {
828
- data.cb(res.list)
829
- })
830
- .catch(error => {
831
- console.error(error);
832
- data.cb([])
833
- });
834
- },
835
- hidden: data.previewCurrent !== 'coupon'
836
- },
837
- {
838
- label: "按钮内边距设置:",
839
- groupKey:'style',
840
- ele: 'xd-margin-padding',
841
- valueKey: 'couponUseBtnPadding',
842
- value: data.couponUseBtnPadding || null,
843
- setting: {
844
- type: 'padding',
845
- },
846
- placeholder: '请设置边距',
847
- inline: false,
848
- notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
849
- hidden: data.previewCurrent !== 'coupon'
850
- },
851
- {
852
- label: "按钮圆角设置",
853
- ele: 'xd-site-select-list',
854
- valueKey: 'couponBtnRadius',
855
- value: data['couponBtnRadius'] || 16,
856
- groupKey:'style',
857
- placeholder: '请选择内容圆角设置',
858
- multiple: false,
859
- className: 'input80',
860
- handleCustom({ action, data }) {
861
- XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
862
- .then(res => {
863
- data.cb(res.list)
864
- })
865
- .catch(error => {
866
- console.error(error);
867
- });
868
- },
869
- hidden: data.previewCurrent !== 'coupon'
870
- },
871
- {
872
- label: '票券绑定跳转路径:', //label
873
- ele: 'xd-select-pages-path', //package 名称
874
- valueKey: 'cardBindPath', //form[valueKey]
875
- placeholder: '请选择跳转路径',
876
- value: data.cardBindPath || null,
877
- groupKey:'advanced',
878
- setting: {
879
- router: XdBus.getParentApi('getPagesTree'),
880
- },
881
- inline: false,
882
- },
883
- {
884
- label: '票券详情地址:',
885
- ele: 'xd-select-pages-path',
886
- valueKey: 'cardDetailPath',
887
- groupKey:'advanced',
888
- placeholder: '请选择票券详情地址',
889
- value: data.cardDetailPath || null,
890
- setting: {
891
- router: XdBus.getParentApi('getPagesTree'),
892
- },
893
- inline: false,
42
+ rules: [
43
+ {
44
+ required: true,
45
+ message: '请输入占位框高度',
46
+ trigger: 'blur'
47
+ },
48
+ ]
894
49
  },
895
50
  {
896
- label: '综合福利入口页:',
897
- ele: 'xd-select-pages-path',
898
- valueKey: 'allEntryPath',
899
- groupKey: 'advanced',
900
- placeholder: '请选择综合福利入口页',
901
- value: data.allEntryPath || null,
902
- setting: {
903
- router: XdBus.getParentApi('getPagesTree'),
904
- },
905
- inline: false,
51
+ label: '', //label
52
+ ele: 'slot', //package 名称
53
+ slot: 'is_reference',
906
54
  },
907
55
  ].filter(i=>i)
908
56
  },