jufubao-base 1.0.169 → 1.0.171

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 +1133 -491
  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,49 +8,1111 @@ 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
  },
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
+ label: "显示样式:",
275
+ ele: 'xd-radio',
276
+ valueKey: 'noticeStyle',
277
+ value: data['noticeStyle'] || '1',
278
+ groupKey:'content',
279
+ list: [
280
+ {"label": "静态显示", "value": '1'},
281
+ {"label": "滚动显示", "value": '2'},
282
+ {"label": "弹窗显示", "value": '3'},
283
+ ],
284
+ },
285
+ data.noticeStyle == 3 &&{
286
+ label: '是否隐藏弹框(仅预览模式生效):',
287
+ ele: 'xd-radio',
288
+ valueKey: 'notice_is_hide_dailog',
289
+ groupKey: 'content',
290
+ value: data['notice_is_hide_dailog'] || 'N',
291
+ placeholder: '请选择是否隐藏弹框',
292
+ className: 'input60',
293
+ list: [
294
+ { label: '是', value: 'Y' },
295
+ { label: '否', value: 'N' },
23
296
  ]
24
297
  },
25
298
  {
26
- label: '选中路径:',
27
- ele: 'xd-select-pages-path',
28
- valueKey: 'select-pages-path',
29
- value: data['select-pages-path'] || null,
299
+ ele: "title",
300
+ label: "我的票券包内容配置",
301
+ size: "small",
302
+ groupKey: "content",
303
+ hidden: data.previewCurrent !== 'card'
304
+ },
305
+ {
306
+ label: '票券背景图:',
307
+ ele: 'xd-upload',
308
+ valueKey: 'cardImageUrl',
309
+ groupKey:'content',
310
+ value: data.cardImageUrl || {},
311
+ defaultValue: data.cardImageUrl || null,
312
+ slot: true,
313
+ oneWidth: 350,
314
+ oneHeight: 137,
315
+ elinputClassName: 'input40',
316
+ tipsformet: '上传格式:@imageType@不超过@size@MB.建议尺寸700*274',
317
+ type: ['jpg', 'png', 'jpeg'],
318
+ styleType: 'one',
319
+ uploadType: 'aliyun',
320
+ size: 5,
321
+ action: 'action',
322
+ sort: true,
323
+ maxlen: 100,
324
+ hidden: data.previewCurrent !== 'card'
325
+ },
326
+ {
327
+ label: "背景图裁剪、缩放模式:",
328
+ ele: "xd-select-list",
329
+ valueKey: "cardImageMode",
330
+ groupKey:'content',
331
+ value: data.cardImageMode || '',
332
+ className: "input70",
333
+ list: [
334
+ {label: '铺满背景,裁剪掉多余', value: 'cover'},
335
+ {label: '图像缩放成适合背景区域的最大大小', value: 'contain'}
336
+ ],
337
+ hidden: data.previewCurrent !== 'card'
338
+ },
339
+ {
340
+ ele: "title",
341
+ label: "我的优惠券内容配置",
342
+ size: "small",
343
+ groupKey: "content",
344
+ hidden: data.previewCurrent !== 'coupon'
345
+ },
346
+ {
347
+ label: '优惠券背景图:',
348
+ ele: 'xd-upload',
349
+ valueKey: 'couponImageUrl',
350
+ groupKey:'content',
351
+ value: data.couponImageUrl || {},
352
+ defaultValue: data.couponImageUrl || null,
353
+ slot: true,
354
+ oneWidth: 265,
355
+ oneHeight: 150,
356
+ elinputClassName: 'input40',
357
+ tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
358
+ type: ['jpg', 'png', 'jpeg'],
359
+ styleType: 'one',
360
+ uploadType: 'aliyun',
361
+ size: 5,
362
+ action: 'action',
363
+ sort: true,
364
+ maxlen: 100,
365
+ hidden: data.previewCurrent !== 'coupon'
366
+ },
367
+ {
368
+ label: '顶部菜单配置 - 通用',
369
+ ele: "title",
370
+ size: "small",
371
+ groupKey: "content",
372
+ },
373
+ {
374
+ label: "顶部菜单右侧文案:",
375
+ ele: "el-input",
376
+ valueKey: "bindCardText",
377
+ value: data.bindCardText || "",
378
+ placeholder: "请输入内容",
379
+ groupKey:'content',
380
+ className: "input70",
381
+ },
382
+ {
383
+ ele: "title",
384
+ label: "列表容器配置 - 通用",
385
+ size: "small",
386
+ groupKey: "style",
387
+ },
388
+ {
389
+ label: "列表容器内边距设置:",
390
+ groupKey:'style',
391
+ ele: 'xd-margin-padding',
392
+ valueKey: 'cardListPadding',
393
+ value: data.cardListPadding || {top: 20, left: 20, right: 20, bottom: 20},
30
394
  setting: {
31
- router: XdBus.getParentApi('getPagesTree')
395
+ type: 'padding',
32
396
  },
397
+ placeholder: '请设置边距',
398
+ inline: false,
399
+ notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
33
400
  },
34
- data.bgcolor && {
35
- label: '高度:',
401
+ {
402
+ label: "列表间距设置:",
403
+ groupKey:'style',
36
404
  ele: 'el-input',
405
+ valueKey: 'cardItemMargin',
406
+ value: data.cardItemMargin || 20,
407
+ type: "number",
408
+ className: "input40",
409
+ placeholder: '请输入列表间距',
410
+ inline: false,
411
+ notice: '设置列表间距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
412
+ },
413
+ {
414
+ ele: "title",
415
+ label: "标题菜单配置 - 通用",
416
+ size: "small",
417
+ groupKey: "style",
418
+ },
419
+ {
420
+ label: "展示方式设置:",
421
+ ele: "xd-radio",
422
+ valueKey: "menuShowType",
423
+ groupKey:'style',
424
+ value: data.menuShowType || 'text',
425
+ className: "input70",
426
+ list: [
427
+ {label: '文本', value: 'text'},
428
+ {label: '按钮', value: 'button'}
429
+ ],
430
+ },
431
+ {
432
+ label: '菜单容器内边距设置:',
433
+ groupKey:'style',
434
+ ele: 'xd-margin-padding',
435
+ valueKey: 'menuPadding',
436
+ value: data.menuPadding || null,
437
+ setting: {
438
+ type: 'padding',
439
+ },
440
+ placeholder: '请设置边距',
441
+ inline: false,
442
+ notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
443
+ },
444
+ {
445
+ label: '菜单单项内边距设置:',
446
+ groupKey:'style',
447
+ ele: 'xd-margin-padding',
448
+ valueKey: 'menuBtnPadding',
449
+ value: data.menuBtnPadding || null,
450
+ setting: {
451
+ type: 'padding',
452
+ },
453
+ placeholder: '请设置边距',
454
+ inline: false,
455
+ notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
456
+ },
457
+ {
458
+ label: "菜单间距设置:",
459
+ groupKey:'style',
460
+ ele: 'el-input',
461
+ valueKey: 'menuItemMargin',
462
+ value: data.menuItemMargin || 40,
463
+ type: "number",
464
+ className: "input40",
465
+ placeholder: '请输入菜单间距',
466
+ inline: false,
467
+ notice: '设置菜单间距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">40</span>像素',
468
+ },
469
+ {
470
+ label: '文字背景颜色设置:',
471
+ ele: 'xd-text-and-bgc',
472
+ groupKey:'style',
473
+ valueKey: 'menuTabColor',
474
+ value: data['menuTabColor'] || null,
475
+ setting: {
476
+ fontSize: true, //字体大小选择
477
+ color: true, //文字颜色选项
478
+ bgColor: true, //背景选项
479
+ weight: true, //文字粗细
480
+ },
481
+ handleCustom({action, data}) {
482
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
483
+ .then(res => {
484
+ data.cb(res.list)
485
+ })
486
+ .catch(error => {
487
+ console.error(error);
488
+ data.cb([])
489
+ });
490
+ },
491
+ },
492
+ {
493
+ label: "菜单底部横线粗细:",
494
+ ele: "el-input",
495
+ valueKey: "menuBorderWidth",
496
+ value: data.menuBorderWidth || 1,
497
+ groupKey: "style",
498
+ type: "number",
499
+ },
500
+ {
501
+ label: "顶部菜单右侧配置 - 通用",
502
+ ele: "title",
503
+ size: "small",
504
+ groupKey: "style",
505
+ },
506
+ {
507
+ label: "展示方式:",
508
+ ele: "xd-radio",
509
+ valueKey: "bindCardShowType",
510
+ value: data.bindCardShowType || 'text',
511
+ groupKey:'style',
512
+ list: [
513
+ {label: '文本', value: 'text'},
514
+ {label: '按钮', value: 'button'}
515
+ ],
516
+ },
517
+ {
518
+ label: "按钮圆角",
519
+ ele: 'xd-site-select-list',
520
+ valueKey: 'bindCardBtnRadius',
521
+ value: data['bindCardBtnRadius'] || 16,
522
+ groupKey:'style',
523
+ placeholder: '请选择内容圆角设置',
524
+ multiple: false,
525
+ className: 'input80',
526
+ handleCustom({ action, data }) {
527
+ XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
528
+ .then(res => {
529
+ data.cb(res.list)
530
+ })
531
+ .catch(error => {
532
+ console.error(error);
533
+ });
534
+ },
535
+ hidden: data.bindCardShowType !== 'button'
536
+ },
537
+ {
538
+ label: "右侧文案字体样式:",
539
+ ele: "xd-font",
540
+ valueKey: "bindCardTextStyle",
541
+ value: data.bindCardTextStyle || {},
542
+ groupKey:'style',
543
+ setting: {
544
+ align: false,
545
+ lineHeight: false,
546
+ },
547
+ handleCustom({action, data}) {
548
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
549
+ .then(res => {
550
+ data.cb(res.list)
551
+ })
552
+ .catch(error => {
553
+ data.cb([])
554
+ console.error(error);
555
+ });
556
+ },
557
+ inline: false,
558
+ notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
559
+ hidden: data.bindCardText === ''
560
+ },
561
+ {
562
+ label: "右侧图标(跳转票券绑定):",
563
+ ele: "xd-font",
564
+ valueKey: "bindCardIcon",
565
+ value: data.bindCardIcon || {},
566
+ groupKey:'style',
567
+ setting: {
568
+ align: false,
569
+ lineHeight: false,
570
+ icon: true,
571
+ weight: false,
572
+ },
573
+ handleCustom({action, data}) {
574
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
575
+ .then(res => {
576
+ data.cb(res.list)
577
+ })
578
+ .catch(error => {
579
+ data.cb([])
580
+ console.error(error);
581
+ });
582
+ },
583
+ inline: false,
584
+ notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
585
+ },
586
+ {
587
+ ele: "title",
588
+ label: "公告样式配置 - 通用",
589
+ size: "small",
590
+ groupKey: "style",
591
+ },
592
+ // data.noticeStyle === '1' && {
593
+ // label: '是否显示标题:',
594
+ // ele: 'xd-switch',
595
+ // valueKey: 'noticeIsTitle',
596
+ // value: data['noticeIsTitle'],
597
+ // groupKey:'style',
598
+ // list: ['否', '是'],
599
+ // backValueType: 2,
600
+ // },
601
+ // data.noticeStyle === '1' && data['noticeIsTitle'] && {
602
+ // label: '标题对齐方式:',
603
+ // ele: 'xd-select-list',
604
+ // valueKey: 'noticeTextAlign',
605
+ // groupKey:'style',
606
+ // className: 'input80',
607
+ // value: data['noticeTextAlign'] || '',
608
+ // list: [
609
+ // {"label": "左", "value": 'left'},
610
+ // {"label": "中", "value": 'center'},
611
+ // {"label": "右", "value": 'right'},
612
+ // ]
613
+ // },
614
+ {
615
+ label: '内容圆角设置:',
616
+ ele: 'xd-site-select-list',
617
+ valueKey: 'noticeRadius',
618
+ value: data['noticeRadius'],
619
+ groupKey:'style',
620
+ placeholder: '请选择内容圆角设置',
621
+ multiple: false,
622
+ className: 'input80',
623
+ handleCustom({action, data}) {
624
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
625
+ .then(res => {
626
+ data.cb(res.list)
627
+ })
628
+ .catch(error => {
629
+ console.error(error);
630
+ });
631
+ },
632
+ },
633
+ {
634
+ label: '内容背景颜色:',
635
+ ele: 'xd-color',
636
+ valueKey: 'noticeBgc',
637
+ groupKey:'style',
638
+ value: data.noticeBgc || '',
639
+ placeholder: '请选择内容背景颜色',
640
+ className: 'input80',
641
+ },
642
+ // {
643
+ // label: '内文字颜色:',
644
+ // ele: 'xd-color',
645
+ // groupKey:'style',
646
+ // valueKey: 'noticeTextColor',
647
+ // value: data.noticeTextColor || '',
648
+ // placeholder: '请选择内文字颜色',
649
+ // className: 'input80',
650
+ // },
651
+ // {
652
+ // label: '内容文字大小:',
653
+ // ele: 'xd-site-select-list',
654
+ // valueKey: 'noticeFontSize',
655
+ // value: data['noticeFontSize'],
656
+ // groupKey:'style',
657
+ // placeholder: '请选择内容文字大小',
658
+ // multiple: false,
659
+ // className: 'input80',
660
+ // handleCustom({action, data}) {
661
+ // XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
662
+ // .then(res => {
663
+ // data.cb(res.list)
664
+ // })
665
+ // .catch(error => {
666
+ // console.error(error);
667
+ // });
668
+ // },
669
+ // },
670
+ {
671
+ label: "外边距设置:",
672
+ groupKey:'style',
673
+ ele: 'xd-margin-padding',
674
+ valueKey: 'noticeMargin',
675
+ value: data.noticeMargin || {
676
+ top: 20,
677
+ right: 0,
678
+ bottom: 20,
679
+ left:20
680
+ },
681
+ setting: {
682
+ type: 'margin',
683
+ },
684
+ placeholder: '请设置边距',
685
+ inline: false,
686
+ notice: '设置外边距,<span style="color: red">单位:像素</span>。',
687
+ },
688
+ {
689
+ label: "内边距设置:",
690
+ groupKey:'style',
691
+ ele: 'xd-margin-padding',
692
+ valueKey: 'noticePadding',
693
+ value: data.noticePadding || null,
694
+ setting: {
695
+ type: 'padding',
696
+ },
697
+ placeholder: '请设置边距',
698
+ inline: false,
699
+ notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
700
+ },
701
+ // {
702
+ // label: "背景色设置:",
703
+ // ele: "xd-color",
704
+ // groupKey:'style',
705
+ // valueKey: "noticeBgColor",
706
+ // value: data.noticeBgColor || null,
707
+ // setting: {
708
+ // showAlpha: true,
709
+ // isAlpha: false
710
+ // }
711
+ // },
712
+ {
713
+ label: "内容字体设置:",
714
+ ele: "xd-font",
715
+ valueKey: "noticeFont",
716
+ value: data.noticeFont || {},
717
+ groupKey:'style',
718
+ setting: {
719
+ align: false,
720
+ lineHeight: false,
721
+ weight: false,
722
+ },
723
+ handleCustom({action, data}) {
724
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
725
+ .then(res => {
726
+ data.cb(res.list)
727
+ })
728
+ .catch(error => {
729
+ data.cb([])
730
+ console.error(error);
731
+ });
732
+ },
733
+ inline: false,
734
+ notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
735
+ },
736
+ {
737
+ label: "【更多】字体设置:",
738
+ ele: "xd-font",
739
+ valueKey: "noticeMoreFont",
740
+ value: data.noticeMoreFont || {},
741
+ groupKey:'style',
742
+ setting: {
743
+ align: false,
744
+ lineHeight: false,
745
+ weight: false,
746
+ },
747
+ handleCustom({action, data}) {
748
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
749
+ .then(res => {
750
+ data.cb(res.list)
751
+ })
752
+ .catch(error => {
753
+ data.cb([])
754
+ console.error(error);
755
+ });
756
+ },
757
+ inline: false,
758
+ notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
759
+ },
760
+ {
761
+ label: '显示条数:',
762
+ ele: 'el-input',
763
+ groupKey:'style',
37
764
  type: 'number',
38
- valueKey: 'height',
39
- value: data.height || 100,
40
- placeholder: '请输入占位框高度,单位像素,默认:10px',
41
- className: 'input80',
42
- rules: [
43
- {
44
- required: true,
45
- message: '请输入占位框高度',
46
- trigger: 'blur'
47
- },
48
- ]
765
+ valueKey: 'noticeNum',
766
+ value: data.noticeNum,
767
+ placeholder: '请输入滚动显示条数,默认:1',
768
+ className: 'input80',
769
+ unit: '条'
770
+ },
771
+ data.noticeStyle == 2 && {
772
+ label: '滚动速度值:',
773
+ ele: 'el-input',
774
+ type: 'number',
775
+ groupKey:'style',
776
+ valueKey: 'noticeSpeed',
777
+ value: data.noticeSpeed,
778
+ placeholder: '请输入滚动速度值,默认:20',
779
+ className: 'input80',
780
+ inline: false,
781
+ notice: '滚动速度值,建议取值:20-60, 值越大越快',
782
+ },
783
+ // {
784
+ // label: '边距设置:',
785
+ // ele: 'xd-margin-padding',
786
+ // groupKey:'style',
787
+ // valueKey: 'noticeScrollMargin',
788
+ // value: data.noticeScrollMargin || null,
789
+ // setting: {
790
+ // type: 'margin',
791
+ // },
792
+ // placeholder: '请设置内容边距设置',
793
+ // inline: false,
794
+ // notice: '内容边距设置,<span style="color: red">单位:像素</span>。默认值:0像素',
795
+ // },
796
+ data.noticeStyle == 3 && {
797
+ label: '弹窗间隔:',
798
+ ele: 'el-input',
799
+ type: 'text',
800
+ groupKey:'style',
801
+ valueKey: 'noticeTime',
802
+ value: data.noticeTime || '',
803
+ className: 'input80',
804
+ inline: false,
805
+ notice: '弹窗间隔,单位:小时。默认值:<span style="color: red">3</span>小时',
806
+ },
807
+
808
+
809
+ {
810
+ ele: "title",
811
+ label: "我的票券包样式配置",
812
+ size: "small",
813
+ groupKey: "style",
814
+ hidden: data.previewCurrent !== 'card'
815
+ },
816
+ {
817
+ label: "边框设置:",
818
+ ele: "xd-border",
819
+ groupKey:'style',
820
+ valueKey: "cardBorder",
821
+ value: data.cardBorder || null,
822
+ hidden: data.previewCurrent !== 'card'
823
+ },
824
+ {
825
+ label: "边框阴影设置:",
826
+ ele: "xd-shadow",
827
+ groupKey:'style',
828
+ valueKey: "cardShadow",
829
+ value: data.cardShadow || null,
830
+ handleCustom({action, data}) {
831
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
832
+ .then(res => {
833
+ data.cb(res.list)
834
+ })
835
+ .catch(error => {
836
+ console.error(error);
837
+ data.cb([])
838
+ });
839
+ },
840
+ hidden: data.previewCurrent !== 'card'
841
+ },
842
+ {
843
+ label: "票券高度设置:",
844
+ ele: "el-input",
845
+ valueKey: "cardHeight",
846
+ value: data.cardHeight || 270,
847
+ groupKey:'style',
848
+ placeholder: '请输入票券高度',
849
+ inline: false,
850
+ notice: '设置票券高度,<span style="color: red">单位:像素</span>。',
851
+ hidden: data.previewCurrent !== 'card'
852
+ },
853
+ {
854
+ label: "票券字体颜色设置:",
855
+ ele: "xd-color",
856
+ groupKey:'style',
857
+ valueKey: "cardFontColor",
858
+ value: data.cardFontColor || "#333",
859
+ hidden: data.previewCurrent !== 'card'
860
+ },
861
+ {
862
+ label: "单项内边距设置:",
863
+ groupKey:'style',
864
+ ele: 'xd-margin-padding',
865
+ valueKey: 'cardPadding',
866
+ value: data.cardPadding || null,
867
+ setting: {
868
+ type: 'padding',
869
+ },
870
+ placeholder: '请设置边距',
871
+ inline: false,
872
+ notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
873
+ hidden: data.previewCurrent !== 'card'
874
+ },
875
+ {
876
+ label: "圆角设置",
877
+ ele: 'xd-site-select-list',
878
+ valueKey: 'cardRadius',
879
+ value: data['cardRadius'] || 16,
880
+ groupKey:'style',
881
+ placeholder: '请选择内容圆角设置',
882
+ multiple: false,
883
+ className: 'input80',
884
+ handleCustom({ action, data }) {
885
+ XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
886
+ .then(res => {
887
+ data.cb(res.list)
888
+ })
889
+ .catch(error => {
890
+ console.error(error);
891
+ });
892
+ },
893
+ hidden: data.previewCurrent !== 'card'
894
+ },
895
+ {
896
+ label: "按钮最小宽度设置:",
897
+ ele: "el-input",
898
+ valueKey: "cardBtnMinWidth",
899
+ value: data.cardBtnMinWidth || 100,
900
+ groupKey:'style',
901
+ placeholder: '请输入按钮最小宽度',
902
+ inline: false,
903
+ notice: '设置按钮最小宽度,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">100</span> 像素',
904
+ hidden: data.previewCurrent !== 'card'
905
+ },
906
+ {
907
+ label: "登录按钮文字背景色设置:",
908
+ ele: "xd-text-and-bgc",
909
+ groupKey:'style',
910
+ valueKey: "cardBtnTextStyle",
911
+ value: data.cardBtnTextStyle || null,
912
+ setting: {
913
+ fontSize: true, //字体大小选择
914
+ color: true, //文字颜色选项
915
+ bgColor: true, //背景选项
916
+ weight: true, //文字粗细
917
+ },
918
+ handleCustom({action, data}) {
919
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
920
+ .then(res => {
921
+ data.cb(res.list)
922
+ })
923
+ .catch(error => {
924
+ console.error(error);
925
+ data.cb([])
926
+ });
927
+ },
928
+ hidden: data.previewCurrent !== 'card'
929
+ },
930
+ {
931
+ label: "登录按钮圆角设置",
932
+ ele: 'xd-site-select-list',
933
+ valueKey: 'cardBtnRadius',
934
+ value: data['cardBtnRadius'] || 16,
935
+ groupKey:'style',
936
+ placeholder: '请选择内容圆角设置',
937
+ multiple: false,
938
+ className: 'input80',
939
+ handleCustom({ action, data }) {
940
+ XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
941
+ .then(res => {
942
+ data.cb(res.list)
943
+ })
944
+ .catch(error => {
945
+ console.error(error);
946
+ });
947
+ },
948
+ hidden: data.previewCurrent !== 'card'
949
+ },
950
+ {
951
+ label: "登录按钮内边距设置:",
952
+ groupKey:'style',
953
+ ele: 'xd-margin-padding',
954
+ valueKey: 'cardBtnPadding',
955
+ value: data.cardBtnPadding || null,
956
+ setting: {
957
+ type: 'padding',
958
+ },
959
+ placeholder: '请设置边距',
960
+ inline: false,
961
+ notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
962
+ hidden: data.previewCurrent !== 'card'
963
+ },
964
+ {
965
+ ele: "title",
966
+ label: "我的优惠券样式配置",
967
+ size: "small",
968
+ groupKey: "style",
969
+ hidden: data.previewCurrent !== 'coupon'
970
+ },
971
+ {
972
+ label: "优惠券左侧背景色设置:",
973
+ ele: "xd-gradient-color",
974
+ valueKey: "couponLeftBgColor",
975
+ value: data.couponLeftBgColor || 'linear-gradient(180deg, #FFA852 0%, #FF5733 100%)',
976
+ groupKey:'style',
977
+ hidden: data.previewCurrent !== 'coupon'
978
+ },
979
+ {
980
+ label: "圆角设置",
981
+ ele: 'xd-site-select-list',
982
+ valueKey: 'couponRadius',
983
+ value: data['couponRadius'] || 16,
984
+ groupKey:'style',
985
+ placeholder: '请选择内容圆角设置',
986
+ multiple: false,
987
+ className: 'input80',
988
+ handleCustom({ action, data }) {
989
+ XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
990
+ .then(res => {
991
+ data.cb(res.list)
992
+ })
993
+ .catch(error => {
994
+ console.error(error);
995
+ });
996
+ },
997
+ hidden: data.previewCurrent !== 'coupon'
998
+ },
999
+ {
1000
+ label: "优惠券标题背景颜色设置:",
1001
+ ele: "xd-color",
1002
+ valueKey: "couponTitleBgColor",
1003
+ value: data.couponTitleBgColor || null,
1004
+ groupKey:'style',
1005
+ setting: {
1006
+ showAlpha: true,
1007
+ isAlpha: true
1008
+ },
1009
+ hidden: data.previewCurrent !== 'coupon'
1010
+ },
1011
+ {
1012
+ label: "去使用按钮文字背景色设置: ",
1013
+ ele: "xd-text-and-bgc",
1014
+ groupKey:'style',
1015
+ valueKey: "couponBtnTextStyle",
1016
+ value: data.couponBtnTextStyle || null,
1017
+ setting: {
1018
+ fontSize: true, //字体大小选择
1019
+ color: true, //文字颜色选项
1020
+ bgColor: true, //背景选项
1021
+ weight: true, //文字粗细
1022
+ },
1023
+ handleCustom({action, data}) {
1024
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
1025
+ .then(res => {
1026
+ data.cb(res.list)
1027
+ })
1028
+ .catch(error => {
1029
+ console.error(error);
1030
+ data.cb([])
1031
+ });
1032
+ },
1033
+ hidden: data.previewCurrent !== 'coupon'
49
1034
  },
50
1035
  {
51
- label: '', //label
52
- ele: 'slot', //package 名称
53
- slot: 'is_reference',
1036
+ label: "按钮内边距设置:",
1037
+ groupKey:'style',
1038
+ ele: 'xd-margin-padding',
1039
+ valueKey: 'couponUseBtnPadding',
1040
+ value: data.couponUseBtnPadding || null,
1041
+ setting: {
1042
+ type: 'padding',
1043
+ },
1044
+ placeholder: '请设置边距',
1045
+ inline: false,
1046
+ notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
1047
+ hidden: data.previewCurrent !== 'coupon'
1048
+ },
1049
+ {
1050
+ label: "按钮圆角设置",
1051
+ ele: 'xd-site-select-list',
1052
+ valueKey: 'couponBtnRadius',
1053
+ value: data['couponBtnRadius'] || 16,
1054
+ groupKey:'style',
1055
+ placeholder: '请选择内容圆角设置',
1056
+ multiple: false,
1057
+ className: 'input80',
1058
+ handleCustom({ action, data }) {
1059
+ XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
1060
+ .then(res => {
1061
+ data.cb(res.list)
1062
+ })
1063
+ .catch(error => {
1064
+ console.error(error);
1065
+ });
1066
+ },
1067
+ hidden: data.previewCurrent !== 'coupon'
1068
+ },
1069
+ {
1070
+ label: '票券绑定跳转路径:', //label
1071
+ ele: 'xd-select-pages-path', //package 名称
1072
+ valueKey: 'cardBindPath', //form[valueKey]
1073
+ placeholder: '请选择跳转路径',
1074
+ value: data.cardBindPath || null,
1075
+ groupKey:'advanced',
1076
+ setting: {
1077
+ router: XdBus.getParentApi('getPagesTree'),
1078
+ },
1079
+ inline: false,
1080
+ },
1081
+ {
1082
+ label: '票券详情地址:',
1083
+ ele: 'xd-select-pages-path',
1084
+ valueKey: 'cardDetailPath',
1085
+ groupKey:'advanced',
1086
+ placeholder: '请选择票券详情地址',
1087
+ value: data.cardDetailPath || null,
1088
+ setting: {
1089
+ router: XdBus.getParentApi('getPagesTree'),
1090
+ },
1091
+ inline: false,
1092
+ },
1093
+ {
1094
+ label: '失效卡列表地址:',
1095
+ ele: 'xd-select-pages-path',
1096
+ valueKey: 'disabledPath',
1097
+ groupKey:'advanced',
1098
+ placeholder: '请选择失效卡列表地址',
1099
+ value: data.disabledPath || null,
1100
+ setting: {
1101
+ router: XdBus.getParentApi('getPagesTree'),
1102
+ },
1103
+ inline: false,
1104
+ },
1105
+ {
1106
+ label: '综合福利入口页:',
1107
+ ele: 'xd-select-pages-path',
1108
+ valueKey: 'allEntryPath',
1109
+ groupKey: 'advanced',
1110
+ placeholder: '请选择综合福利入口页',
1111
+ value: data.allEntryPath || null,
1112
+ setting: {
1113
+ router: XdBus.getParentApi('getPagesTree'),
1114
+ },
1115
+ inline: false,
54
1116
  },
55
1117
  ].filter(i=>i)
56
1118
  },