jufubao-base 1.0.169-beta1 → 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 (39) hide show
  1. package/package.json +1 -1
  2. package/src/components/JfbBaseLogin/Attr.js +54 -16
  3. package/src/components/JfbBaseMapSearch/MapSearchMp.vue +1 -1
  4. package/src/components/JfbBaseOrderDetail/Api.js +12 -7
  5. package/src/components/JfbBaseOrderDetail/Attr.js +28 -14
  6. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +68 -18
  7. package/src/components/JfbBaseOrderDetail/Mock.js +3 -1
  8. package/src/components/JfbBaseTfkCardBind/Api.js +49 -30
  9. package/src/components/JfbBaseTfkCardBind/Attr.js +61 -10
  10. package/src/components/JfbBaseTfkCardBind/JfbBaseTfkCardBind.vue +169 -9
  11. package/src/components/JfbBaseTfkCardBind/Mock.js +19 -9
  12. package/src/components/JfbBaseTfkCardDetail/Api.js +26 -0
  13. package/src/components/JfbBaseTfkCardDetail/Attr.js +336 -9
  14. package/src/components/JfbBaseTfkCardDetail/JfbBaseTfkCardDetail.vue +236 -30
  15. package/src/components/JfbBaseTfkCardDetail/Mock.js +2 -2
  16. package/src/components/JfbBaseTfkCardLogin/Attr.js +301 -5
  17. package/src/components/JfbBaseTfkCardLogin/JfbBaseTfkCardLogin.vue +317 -158
  18. package/src/components/JfbBaseTfkCardLogin/Mock.js +2 -46
  19. package/src/components/JfbBaseTfkCardLogin/XdCouponItem.vue +271 -0
  20. package/src/components/JfbBaseTfkSearch/AllList.vue +232 -0
  21. package/src/components/JfbBaseTfkSearch/Api.js +11 -42
  22. package/src/components/JfbBaseTfkSearch/Attr.js +225 -33
  23. package/src/components/JfbBaseTfkSearch/ContentCinema.vue +157 -0
  24. package/src/components/JfbBaseTfkSearch/ContentFilm.vue +179 -0
  25. package/src/components/JfbBaseTfkSearch/ContentProduct.vue +308 -0
  26. package/src/components/JfbBaseTfkSearch/ContentShop.vue +184 -0
  27. package/src/components/JfbBaseTfkSearch/CusAttr.js +213 -0
  28. package/src/components/JfbBaseTfkSearch/CustomList.vue +402 -0
  29. package/src/components/JfbBaseTfkSearch/JfbBaseTfkSearch.vue +230 -26
  30. package/src/components/JfbBaseTfkSearch/Mock.js +90 -11
  31. package/src/components/JfbBaseTfkSearch/SkeletonCinema.vue +45 -0
  32. package/src/components/JfbBaseTfkSearch/SkeletonFilm.vue +109 -0
  33. package/src/components/JfbBaseTfkSearch/SkeletonProduct.vue +246 -0
  34. package/src/components/JfbBaseTfkSearch/SkeletonShop.vue +81 -0
  35. package/src/components/JfbBaseTfkSearch/handleKeyword.js +24 -0
  36. package/src/components/JfbBaseTfkSearch/listMixins.js +153 -0
  37. package/src/components/JfbBaseTfkSearch/search.js +293 -0
  38. package/src/mixins/colorCardMixins.js +71 -9
  39. package/src/mixins/componentsMixins.js +346 -23
@@ -18,6 +18,34 @@ export default {
18
18
  { label: '我的优惠券', value: 'coupon' },
19
19
  ],
20
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
+ },
21
49
  {
22
50
  label: '公告内容:',
23
51
  ele: 'xd-site-news',
@@ -247,6 +275,7 @@ export default {
247
275
  label: "我的票券包内容配置",
248
276
  size: "small",
249
277
  groupKey: "content",
278
+ hidden: data.previewCurrent !== 'card'
250
279
  },
251
280
  {
252
281
  label: '票券背景图:',
@@ -259,7 +288,7 @@ export default {
259
288
  oneWidth: 350,
260
289
  oneHeight: 137,
261
290
  elinputClassName: 'input40',
262
- tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
291
+ tipsformet: '上传格式:@imageType@不超过@size@MB.建议尺寸700*274',
263
292
  type: ['jpg', 'png', 'jpeg'],
264
293
  styleType: 'one',
265
294
  uploadType: 'aliyun',
@@ -267,12 +296,27 @@ export default {
267
296
  action: 'action',
268
297
  sort: true,
269
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'
270
313
  },
271
314
  {
272
315
  ele: "title",
273
316
  label: "我的优惠券内容配置",
274
317
  size: "small",
275
318
  groupKey: "content",
319
+ hidden: data.previewCurrent !== 'coupon'
276
320
  },
277
321
  {
278
322
  label: '优惠券背景图:',
@@ -293,10 +337,26 @@ export default {
293
337
  action: 'action',
294
338
  sort: true,
295
339
  maxlen: 100,
340
+ hidden: data.previewCurrent !== 'coupon'
296
341
  },
297
342
  {
343
+ label: '顶部菜单配置 - 通用:',
298
344
  ele: "title",
299
- label: "列表容器配置",
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: "列表容器配置 - 通用",
300
360
  size: "small",
301
361
  groupKey: "style",
302
362
  },
@@ -327,7 +387,7 @@ export default {
327
387
  },
328
388
  {
329
389
  ele: "title",
330
- label: "标题菜单配置",
390
+ label: "标题菜单配置 - 通用",
331
391
  size: "small",
332
392
  groupKey: "style",
333
393
  },
@@ -362,7 +422,7 @@ export default {
362
422
  groupKey:'style',
363
423
  ele: 'el-input',
364
424
  valueKey: 'menuItemMargin',
365
- value: data.menuItemMargin || 20,
425
+ value: data.menuItemMargin || 40,
366
426
  type: "number",
367
427
  className: "input40",
368
428
  placeholder: '请输入菜单间距',
@@ -400,6 +460,67 @@ export default {
400
460
  groupKey: "style",
401
461
  type: "number",
402
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,
488
+ className: 'input80',
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
+ },
403
524
  {
404
525
  label: "右侧图标(跳转票券绑定):",
405
526
  ele: "xd-font",
@@ -425,11 +546,120 @@ export default {
425
546
  inline: false,
426
547
  notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
427
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>。',
572
+ },
573
+ {
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
+ },
428
620
  {
429
621
  ele: "title",
430
622
  label: "我的票券包样式配置",
431
623
  size: "small",
432
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'
433
663
  },
434
664
  {
435
665
  label: "单项内边距设置:",
@@ -443,6 +673,7 @@ export default {
443
673
  placeholder: '请设置边距',
444
674
  inline: false,
445
675
  notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
676
+ hidden: data.previewCurrent !== 'card'
446
677
  },
447
678
  {
448
679
  label: "圆角设置",
@@ -462,6 +693,18 @@ export default {
462
693
  console.error(error);
463
694
  });
464
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'
465
708
  },
466
709
  {
467
710
  label: "登录按钮文字背景色设置:",
@@ -485,6 +728,7 @@ export default {
485
728
  data.cb([])
486
729
  });
487
730
  },
731
+ hidden: data.previewCurrent !== 'card'
488
732
  },
489
733
  {
490
734
  label: "登录按钮圆角设置",
@@ -504,6 +748,7 @@ export default {
504
748
  console.error(error);
505
749
  });
506
750
  },
751
+ hidden: data.previewCurrent !== 'card'
507
752
  },
508
753
  {
509
754
  label: "登录按钮内边距设置:",
@@ -517,12 +762,22 @@ export default {
517
762
  placeholder: '请设置边距',
518
763
  inline: false,
519
764
  notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
765
+ hidden: data.previewCurrent !== 'card'
520
766
  },
521
767
  {
522
768
  ele: "title",
523
769
  label: "我的优惠券样式配置",
524
770
  size: "small",
525
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'
526
781
  },
527
782
  {
528
783
  label: "圆角设置",
@@ -542,6 +797,7 @@ export default {
542
797
  console.error(error);
543
798
  });
544
799
  },
800
+ hidden: data.previewCurrent !== 'coupon'
545
801
  },
546
802
  {
547
803
  label: "优惠券标题背景颜色设置:",
@@ -552,7 +808,8 @@ export default {
552
808
  setting: {
553
809
  showAlpha: true,
554
810
  isAlpha: true
555
- }
811
+ },
812
+ hidden: data.previewCurrent !== 'coupon'
556
813
  },
557
814
  {
558
815
  label: "去使用按钮文字背景色设置: ",
@@ -576,6 +833,7 @@ export default {
576
833
  data.cb([])
577
834
  });
578
835
  },
836
+ hidden: data.previewCurrent !== 'coupon'
579
837
  },
580
838
  {
581
839
  label: "按钮内边距设置:",
@@ -589,6 +847,7 @@ export default {
589
847
  placeholder: '请设置边距',
590
848
  inline: false,
591
849
  notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
850
+ hidden: data.previewCurrent !== 'coupon'
592
851
  },
593
852
  {
594
853
  label: "按钮圆角设置",
@@ -608,6 +867,7 @@ export default {
608
867
  console.error(error);
609
868
  });
610
869
  },
870
+ hidden: data.previewCurrent !== 'coupon'
611
871
  },
612
872
  {
613
873
  label: '票券绑定跳转路径:', //label
@@ -621,6 +881,42 @@ export default {
621
881
  },
622
882
  inline: false,
623
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,
919
+ },
624
920
  ].filter(i=>i)
625
921
  },
626
922
  advanced: [],