jufubao-base 1.0.63-beta5 → 1.0.63

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 (88) hide show
  1. package/package.json +1 -1
  2. package/src/components/JfbBaseAddress/JfbBaseAddressLess.less +1 -1
  3. package/src/components/JfbBaseAfterOrderDetail/JfbBaseAfterOrderDetailLess.less +1 -1
  4. package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderListLess.less +1 -1
  5. package/src/components/JfbBaseBack/JfbBaseBackLess.less +1 -1
  6. package/src/components/JfbBaseBackground/Api.js +19 -0
  7. package/src/components/JfbBaseBackground/Attr.js +224 -0
  8. package/src/components/JfbBaseBackground/JfbBaseBackground.vue +111 -0
  9. package/src/components/JfbBaseBackground/JfbBaseBackgroundLess.less +80 -0
  10. package/src/components/JfbBaseBackground/JfbBaseBackgroundMixin.js +30 -0
  11. package/src/components/JfbBaseBlock/JfbBaseBlockLess.less +1 -1
  12. package/src/components/JfbBaseBottomNotice/JfbBaseBottomNoticeLess.less +1 -1
  13. package/src/components/JfbBaseCard/JfbBaseCard.vue +9 -6
  14. package/src/components/JfbBaseCard/JfbBaseCardLess.less +1 -1
  15. package/src/components/JfbBaseCardBind/JfbBaseCardBindLess.less +1 -1
  16. package/src/components/JfbBaseCardBindV2/JfbBaseCardBindV2Less.less +1 -1
  17. package/src/components/JfbBaseCardDetail/JfbBaseCardDetailLess.less +1 -1
  18. package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntryLess.less +1 -1
  19. package/src/components/JfbBaseCardDisabled/JfbBaseCardDisabledLess.less +1 -1
  20. package/src/components/JfbBaseCardDisabledEntry/JfbBaseCardDisabledEntryLess.less +1 -1
  21. package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +9 -9
  22. package/src/components/JfbBaseCardEntry/JfbBaseCardEntryLess.less +1 -1
  23. package/src/components/JfbBaseCardInfo/JfbBaseCardInfoLess.less +1 -1
  24. package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntryLess.less +1 -1
  25. package/src/components/JfbBaseCardMerge/JfbBaseCardMergeLess.less +1 -1
  26. package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntryLess.less +1 -1
  27. package/src/components/JfbBaseCardShift/JfbBaseCardShiftLess.less +1 -1
  28. package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntryLess.less +1 -1
  29. package/src/components/JfbBaseCardSweepInfo/JfbBaseCardSweepInfoLess.less +1 -1
  30. package/src/components/JfbBaseCardV2/JfbBaseCardV2.vue +18 -9
  31. package/src/components/JfbBaseCardV2/JfbBaseCardV2Less.less +1 -1
  32. package/src/components/JfbBaseCardV3/JfbBaseCardV3.vue +10 -1
  33. package/src/components/JfbBaseCardV3/JfbBaseCardV3Less.less +1 -1
  34. package/src/components/JfbBaseCity/JfbBaseCityLess.less +1 -1
  35. package/src/components/JfbBaseClear/JfbBaseClearLess.less +1 -1
  36. package/src/components/JfbBaseEntry/JfbBaseEntryLess.less +1 -1
  37. package/src/components/JfbBaseExpressDetail/JfbBaseExpressDetailLess.less +1 -1
  38. package/src/components/JfbBaseFastLink/JfbBaseFastLinkLess.less +1 -1
  39. package/src/components/JfbBaseFooter/JfbBaseFooterLess.less +1 -1
  40. package/src/components/JfbBaseHeader/JfbBaseHeaderLess.less +1 -1
  41. package/src/components/JfbBaseLine/JfbBaseLineLess.less +1 -1
  42. package/src/components/JfbBaseLogin/JfbBaseLoginLess.less +1 -1
  43. package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwdLess.less +1 -1
  44. package/src/components/JfbBaseLoginSetPwd/JfbBaseLoginSetPwdLess.less +1 -1
  45. package/src/components/JfbBaseMapOverlay/JfbBaseMapOverlayLess.less +1 -1
  46. package/src/components/JfbBaseMapSearch/JfbBaseMapSearchLess.less +1 -1
  47. package/src/components/JfbBaseMergeUserCard/JfbBaseMergeUserCardLess.less +1 -1
  48. package/src/components/JfbBaseMultipleExpress/JfbBaseMultipleExpressLess.less +1 -1
  49. package/src/components/JfbBaseMy/JfbBaseMyLess.less +1 -1
  50. package/src/components/JfbBaseNotice/JfbBaseNotice.vue +41 -26
  51. package/src/components/JfbBaseNotice/JfbBaseNoticeLess.less +1 -1
  52. package/src/components/JfbBaseNoticeBottom/JfbBaseNoticeBottomLess.less +1 -1
  53. package/src/components/JfbBaseNoticeTop/JfbBaseNoticeTopLess.less +1 -1
  54. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +45 -29
  55. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetailLess.less +1 -1
  56. package/src/components/JfbBaseOrderList/JfbBaseOrderListLess.less +1 -1
  57. package/src/components/JfbBasePay/JfbBasePayLess.less +1 -1
  58. package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollectLess.less +1 -1
  59. package/src/components/JfbBasePhoneLogin/JfbBasePhoneLoginLess.less +1 -1
  60. package/src/components/JfbBasePoster/JfbBasePosterLess.less +1 -1
  61. package/src/components/JfbBasePosterEntry/JfbBasePosterEntryLess.less +1 -1
  62. package/src/components/JfbBasePosterType/Attr.js +1 -1
  63. package/src/components/JfbBasePosterType/JfbBasePosterTypeLess.less +1 -1
  64. package/src/components/JfbBaseRecharge/JfbBaseRechargeLess.less +1 -1
  65. package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrderLess.less +1 -1
  66. package/src/components/JfbBaseRechargeOrderDetail/JfbBaseRechargeOrderDetailLess.less +1 -1
  67. package/src/components/JfbBaseRechargeSuccess/JfbBaseRechargeSuccessLess.less +1 -1
  68. package/src/components/JfbBaseSearch/JfbBaseSearchLess.less +1 -1
  69. package/src/components/JfbBaseSetPwd/JfbBaseSetPwdLess.less +1 -1
  70. package/src/components/JfbBaseSuccess/JfbBaseSuccessLess.less +1 -1
  71. package/src/components/JfbBaseTestApi/JfbBaseTestApiLess.less +1 -1
  72. package/src/components/JfbBaseTestBody/JfbBaseTestBodyLess.less +1 -1
  73. package/src/components/JfbBaseTestBottom/JfbBaseTestBottomLess.less +1 -1
  74. package/src/components/JfbBaseTestNotice/JfbBaseTestNoticeLess.less +1 -1
  75. package/src/components/JfbBaseTestTop/JfbBaseTestTopLess.less +1 -1
  76. package/src/components/JfbBaseUserCenter/JfbBaseUserCenterLess.less +1 -1
  77. package/src/components/JfbBaseUserInfo/JfbBaseUserInfoLess.less +1 -1
  78. package/src/components/JfbBaseUserOrder/JfbBaseUserOrderLess.less +1 -1
  79. package/src/components/JfbBaseVideo/Api.js +19 -0
  80. package/src/components/JfbBaseVideo/Attr.js +259 -0
  81. package/src/components/JfbBaseVideo/JfbBaseVideo.vue +159 -0
  82. package/src/components/JfbBaseVideo/JfbBaseVideoLess.less +80 -0
  83. package/src/components/JfbBaseVideo/JfbBaseVideoMixin.js +30 -0
  84. package/src/components/JfbBaseVideo/Mock.js +3 -0
  85. package/src/components/JfbBaseVideo/XdVideo.vue +212 -0
  86. package/src/components/JfbBaseWebview/JfbBaseWebviewLess.less +1 -1
  87. package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorizeLess.less +1 -1
  88. package/src/components/JfbBaseWxAuthorizeError/JfbBaseWxAuthorizeErrorLess.less +1 -1
@@ -533,6 +533,38 @@
533
533
  >地址: {{ info.shop.shop_address }}
534
534
  </view>
535
535
  </view>
536
+ <view
537
+ :style="{
538
+ background: backgroundColor,
539
+ border: borderBox,
540
+ borderRadius: radius + 'rpx',
541
+ boxShadow: shadowBox,
542
+ marginBottom: padding + 'rpx',
543
+ }"
544
+ v-if="info.detail"
545
+ class="jfb-base-order-detail__body-card"
546
+ >
547
+ <view
548
+ v-for="(item, index) in info.detail"
549
+ :key="index"
550
+ class="jfb-base-order-detail__body-order"
551
+ >
552
+ <view :style="{ fontWeight: item.style }">
553
+ <view
554
+ ><text v-html="item.label"></text
555
+ ><text v-if="item.label">:</text></view
556
+ >
557
+ <view v-html="item.value"></view>
558
+ </view>
559
+ <view
560
+ :style="{ marginLeft: '30rpx' }"
561
+ v-if="item.type === 'copy'"
562
+ class="jfb-base-order-detail__body-order-copy"
563
+ @click="copy(item.value)"
564
+ >复制</view
565
+ >
566
+ </view>
567
+ </view>
536
568
  <view
537
569
  v-if="info.pay_info && biz_code !== 'gift'"
538
570
  class="jfb-base-order-detail__body-card"
@@ -625,35 +657,6 @@
625
657
  </view>
626
658
  </view>
627
659
  </view>
628
- <view
629
- :style="{
630
- background: backgroundColor,
631
- border: borderBox,
632
- borderRadius: radius + 'rpx',
633
- boxShadow: shadowBox,
634
- marginBottom: padding + 'rpx',
635
- }"
636
- v-if="info.detail"
637
- class="jfb-base-order-detail__body-card"
638
- >
639
- <view
640
- v-for="(item, index) in info.detail"
641
- :key="index"
642
- class="jfb-base-order-detail__body-order"
643
- >
644
- <view :style="{ fontWeight: item.style }">
645
- <view><text v-html="item.label"></text><text v-if="item.label">:</text></view>
646
- <view v-html="item.value"></view>
647
- </view>
648
- <view
649
- :style="{'marginLeft': '30rpx'}"
650
- v-if="item.type === 'copy'"
651
- class="jfb-base-order-detail__body-order-copy"
652
- @click="copy(item.value)"
653
- >复制</view
654
- >
655
- </view>
656
- </view>
657
660
  <view
658
661
  v-if="info.productDetail"
659
662
  class="jfb-base-order-detail__body-card jfb-base-order-detail__body-shop"
@@ -830,6 +833,11 @@ export default {
830
833
  this.getOrderDetail();
831
834
  }
832
835
  },
836
+ is_hot(n, o) {
837
+ if (this.isPreview) {
838
+ this.getOrderDetail();
839
+ }
840
+ },
833
841
  },
834
842
  computed: {
835
843
  prod_bottom() {
@@ -943,6 +951,14 @@ export default {
943
951
  );
944
952
  return Sitem;
945
953
  });
954
+ if (this.is_hot === "Y") {
955
+ item.info.push({
956
+ label: "客服电话",
957
+ style: "normal",
958
+ type: "text",
959
+ value: this.isPreview ? '010-66666' :this.siteInfo.mapping.customer_phone,
960
+ });
961
+ }
946
962
  return item;
947
963
  });
948
964
  res.pay_info.cards =
@@ -15,7 +15,7 @@
15
15
  .jfb-base-order-detail {
16
16
  border: 1px dashed rgba(0, 0, 0, 0);
17
17
  box-sizing: border-box;
18
- min-height: unit(100, rpx);
18
+ min-height: unit(50, rpx);
19
19
 
20
20
  &__body{
21
21
  position: relative;
@@ -15,7 +15,7 @@
15
15
  .jfb-base-order-list {
16
16
  border: 1px dashed rgba(0, 0, 0, 0);
17
17
  box-sizing: border-box;
18
- min-height: unit(100, rpx);
18
+ min-height: unit(50, rpx);
19
19
 
20
20
  &__body{
21
21
  position: relative;
@@ -15,7 +15,7 @@
15
15
  .jfb-base-pay {
16
16
  border: 1px dashed rgba(0, 0, 0, 0);
17
17
  box-sizing: border-box;
18
- min-height: unit(100, rpx);
18
+ min-height: unit(50, rpx);
19
19
 
20
20
  &__body{
21
21
  position: relative;
@@ -15,7 +15,7 @@
15
15
  .jfb-base-phone-collect {
16
16
  border: 1px dashed rgba(0, 0, 0, 0);
17
17
  box-sizing: border-box;
18
- min-height: unit(100, rpx);
18
+ min-height: unit(50, rpx);
19
19
 
20
20
  &__body{
21
21
  position: relative;
@@ -15,7 +15,7 @@
15
15
  .jfb-base-phone-login {
16
16
  border: 1px dashed rgba(0, 0, 0, 0);
17
17
  box-sizing: border-box;
18
- min-height: unit(100, rpx);
18
+ min-height: unit(50, rpx);
19
19
 
20
20
  &__body{
21
21
  position: relative;
@@ -15,7 +15,7 @@
15
15
  .jfb-base-poster {
16
16
  border: 1px dashed rgba(0, 0, 0, 0);
17
17
  box-sizing: border-box;
18
- min-height: unit(100, rpx);
18
+ min-height: unit(50, rpx);
19
19
 
20
20
  &__body{
21
21
  position: relative;
@@ -15,7 +15,7 @@
15
15
  .jfb-base-poster-entry {
16
16
  border: 1px dashed rgba(0, 0, 0, 0);
17
17
  box-sizing: border-box;
18
- min-height: unit(100, rpx);
18
+ min-height: unit(50, rpx);
19
19
 
20
20
  &__body{
21
21
  position: relative;
@@ -285,7 +285,7 @@ export default {
285
285
  list: [
286
286
  {"label": "一行", "value": 1},
287
287
  {"label": "两行", "value": 2},
288
- {"label": "两行", "value": 3},
288
+ {"label": "三行", "value": 3},
289
289
  ]
290
290
  },
291
291
  {
@@ -15,7 +15,7 @@
15
15
  .jfb-base-poster-type {
16
16
  border: 1px dashed rgba(0, 0, 0, 0);
17
17
  box-sizing: border-box;
18
- min-height: unit(100, rpx);
18
+ min-height: unit(50, rpx);
19
19
 
20
20
  &__body{
21
21
  position: relative;
@@ -15,7 +15,7 @@
15
15
  .jfb-base-recharge {
16
16
  border: 1px dashed rgba(0, 0, 0, 0);
17
17
  box-sizing: border-box;
18
- min-height: unit(100, rpx);
18
+ min-height: unit(50, rpx);
19
19
 
20
20
  &__body{
21
21
  position: relative;
@@ -15,7 +15,7 @@
15
15
  .jfb-base-recharge-order {
16
16
  border: 1px dashed rgba(0, 0, 0, 0);
17
17
  box-sizing: border-box;
18
- min-height: unit(100, rpx);
18
+ min-height: unit(50, rpx);
19
19
 
20
20
  &__body{
21
21
  position: relative;
@@ -15,7 +15,7 @@
15
15
  .jfb-base-recharge-order-detail {
16
16
  border: 1px dashed rgba(0, 0, 0, 0);
17
17
  box-sizing: border-box;
18
- min-height: unit(100, rpx);
18
+ min-height: unit(50, rpx);
19
19
 
20
20
  &__body{
21
21
  position: relative;
@@ -15,7 +15,7 @@
15
15
  .jfb-base-recharge-success {
16
16
  border: 1px dashed rgba(0, 0, 0, 0);
17
17
  box-sizing: border-box;
18
- min-height: unit(100, rpx);
18
+ min-height: unit(50, rpx);
19
19
 
20
20
  &__body{
21
21
  position: relative;
@@ -15,7 +15,7 @@
15
15
  .jfb-base-search {
16
16
  border: 1px dashed rgba(0, 0, 0, 0);
17
17
  box-sizing: border-box;
18
- min-height: unit(100, rpx);
18
+ min-height: unit(50, rpx);
19
19
 
20
20
  &__body{
21
21
  position: relative;
@@ -15,7 +15,7 @@
15
15
  .jfb-base-set-pwd {
16
16
  border: 1px dashed rgba(0, 0, 0, 0);
17
17
  box-sizing: border-box;
18
- min-height: unit(100, rpx);
18
+ min-height: unit(50, rpx);
19
19
 
20
20
  &__body{
21
21
  position: relative;
@@ -15,7 +15,7 @@
15
15
  .jfb-base-success {
16
16
  border: 1px dashed rgba(0, 0, 0, 0);
17
17
  box-sizing: border-box;
18
- min-height: unit(100, rpx);
18
+ min-height: unit(50, rpx);
19
19
 
20
20
  &__body{
21
21
  position: relative;
@@ -15,7 +15,7 @@
15
15
  .jfb-base-test-api {
16
16
  border: 1px dashed rgba(0, 0, 0, 0);
17
17
  box-sizing: border-box;
18
- min-height: unit(100, rpx);
18
+ min-height: unit(50, rpx);
19
19
 
20
20
  &__body{
21
21
  position: relative;
@@ -15,7 +15,7 @@
15
15
  .jfb-base-test-body {
16
16
  border: 1px dashed rgba(0, 0, 0, 0);
17
17
  box-sizing: border-box;
18
- min-height: unit(100, rpx);
18
+ min-height: unit(50, rpx);
19
19
 
20
20
  &__body{
21
21
  position: relative;
@@ -15,7 +15,7 @@
15
15
  .jfb-base-test-bottom {
16
16
  border: 1px dashed rgba(0, 0, 0, 0);
17
17
  box-sizing: border-box;
18
- min-height: unit(100, rpx);
18
+ min-height: unit(50, rpx);
19
19
 
20
20
  &__body{
21
21
  position: relative;
@@ -15,7 +15,7 @@
15
15
  .jfb-base-test-notice {
16
16
  border: 1px dashed rgba(0, 0, 0, 0);
17
17
  box-sizing: border-box;
18
- min-height: unit(100, rpx);
18
+ min-height: unit(50, rpx);
19
19
 
20
20
  &__body{
21
21
  position: relative;
@@ -15,7 +15,7 @@
15
15
  .jfb-base-test-top {
16
16
  border: 1px dashed rgba(0, 0, 0, 0);
17
17
  box-sizing: border-box;
18
- min-height: unit(100, rpx);
18
+ min-height: unit(50, rpx);
19
19
 
20
20
  &__body{
21
21
  position: relative;
@@ -15,7 +15,7 @@
15
15
  .jfb-base-user-center {
16
16
  border: 1px dashed rgba(0, 0, 0, 0);
17
17
  box-sizing: border-box;
18
- min-height: unit(100, rpx);
18
+ min-height: unit(50, rpx);
19
19
 
20
20
  &__body{
21
21
  position: relative;
@@ -15,7 +15,7 @@
15
15
  .jfb-base-user-info {
16
16
  border: 1px dashed rgba(0, 0, 0, 0);
17
17
  box-sizing: border-box;
18
- min-height: unit(100, rpx);
18
+ min-height: unit(50, rpx);
19
19
 
20
20
  &__body{
21
21
  position: relative;
@@ -15,7 +15,7 @@
15
15
  .jfb-base-user-order {
16
16
  border: 1px dashed rgba(0, 0, 0, 0);
17
17
  box-sizing: border-box;
18
- min-height: unit(100, rpx);
18
+ min-height: unit(50, rpx);
19
19
 
20
20
  &__body{
21
21
  position: relative;
@@ -0,0 +1,19 @@
1
+ 'use strict';
2
+
3
+ module.exports = [
4
+ {
5
+ mapFnName: 'getListVideoContent', //自定义方法名字(必选)
6
+ title: '获取内容',
7
+ path: '/cms/v1/ad-content',
8
+ isRule: false,
9
+ params: {
10
+ scene: ['使用场景', 'String', '选填'],
11
+ container_id: ['插件ID', 'String', '必填'],
12
+ page_id: ['页面ID', 'String', '必填'],
13
+ page_size: ['记录条数', 'Number', '必填'],
14
+ },
15
+ isConsole: true,
16
+ disabled: true,
17
+ },
18
+
19
+ ];
@@ -0,0 +1,259 @@
1
+ 'use strict';
2
+
3
+ import console from "@dcloudio/uni-h5/src/core/helpers/console";
4
+
5
+ /**
6
+ * @description 当表单组件中有联动操作时候,使用方法进行返回
7
+ */
8
+ export default {
9
+ style:[],
10
+ content:(params)=>{
11
+ return [
12
+ {
13
+ label: '视频位置配置:', //label
14
+ ele: 'xd-site-poster', //package 名称
15
+ valueKey: 'video', //form[valueKey]
16
+ className: 'input80',
17
+ value: params.video || {},
18
+ setting: {
19
+ count: 1,
20
+ scene: {label: '视频', value: 'video'}
21
+ },
22
+ handleCustom({action, data}) {
23
+ //设置场景参数
24
+ if(data) {
25
+ data.params = Object.assign({}, {scene: 'video'}, data.params || {})
26
+ }
27
+
28
+ //获取显示内容
29
+ if (action === 'screenList') {
30
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'editx_base_ad_split_screen'})
31
+ .then(res => {
32
+ data.cb(res['list'])
33
+ })
34
+ .catch(error => {
35
+ console.error(error);
36
+ });
37
+ return
38
+ }
39
+
40
+ //获取返回参数(广告位高度必选项)
41
+ if (action === 'getPosterInfo') {
42
+ XdBus.getParentApi('cmsGetPublishEditxContent')(data.params)
43
+ .then(res => {
44
+ data.cb({list: res.list, selectId: res.selected})
45
+ })
46
+ .catch(error => {
47
+ console.error(error);
48
+ });
49
+ return
50
+ }
51
+
52
+ //使用内容分类
53
+ if (action === 'cmsPublishEditxContent') {
54
+ XdBus.getParentApi('cmsPublishEditxContent')(data.params)
55
+ .then(res => {
56
+ data.cb(res)
57
+ })
58
+ .catch(error => {
59
+ console.error(error);
60
+ });
61
+ return
62
+ }
63
+
64
+ let loading = XdBus.getParentApi('loading')({});
65
+ //位置列表
66
+ if (action === 'getListPostion') {
67
+ XdBus.getParentApi('getListPosterPosition')(data.params)
68
+ .then(res => {
69
+ loading.close();
70
+ data.cb(res)
71
+ })
72
+ .catch(error => {
73
+ loading.close();
74
+ console.error(error);
75
+ });
76
+ }
77
+
78
+ //位置创建
79
+ if (action === 'addPostion') {
80
+ XdBus.getParentApi('addPosterPosition')(data.params)
81
+ .then(res => {
82
+ loading.close();
83
+ data.cb(true)
84
+ })
85
+ .catch(error => {
86
+ console.error(error);
87
+ loading.close();
88
+ data.cb(false)
89
+ });
90
+ }
91
+
92
+ //位置编辑
93
+ if (action === 'editPostion') {
94
+ XdBus.getParentApi('updatePosterPosition')(data.params)
95
+ .then(res => {
96
+ loading.close();
97
+ data.cb(true)
98
+ })
99
+ .catch(error => {
100
+ console.error(error);
101
+ loading.close();
102
+ data.cb(false)
103
+ });
104
+ }
105
+
106
+ //位置删除
107
+ if (action === 'deleltePostion') {
108
+ XdBus.getParentApi('deletePosterPosition')(data.params)
109
+ .then(res => {
110
+ loading.close();
111
+ data.cb(true)
112
+ })
113
+ .catch(error => {
114
+ console.error(error);
115
+ loading.close();
116
+ data.cb(false)
117
+ });
118
+ }
119
+
120
+ //获取广告位内容列表
121
+ if (action === 'getListContent') {
122
+ XdBus.getParentApi('getListPosterContent')(data.params)
123
+ .then(res => {
124
+ loading.close();
125
+ data.cb(res)
126
+ })
127
+ .catch(error => {
128
+ loading.close();
129
+ console.error(error);
130
+ });
131
+ }
132
+
133
+ //广告内容创建
134
+ if (action === 'addContent') {
135
+ XdBus.getParentApi('addPosterContent')(data.params)
136
+ .then(res => {
137
+ loading.close();
138
+ data.cb(true)
139
+ })
140
+ .catch(error => {
141
+ console.error(error);
142
+ loading.close();
143
+ data.cb(false)
144
+ });
145
+ }
146
+
147
+ //广告内容编辑
148
+ if (action === 'editContent') {
149
+ XdBus.getParentApi('updatePosterContent')(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 === 'deleteContent') {
163
+ XdBus.getParentApi('deletePosterContent')(data.params)
164
+ .then(res => {
165
+ loading.close();
166
+ data.cb(true)
167
+ })
168
+ .catch(error => {
169
+ console.error(error);
170
+ loading.close();
171
+ data.cb(false)
172
+ });
173
+ }
174
+
175
+ //获取广告内容跳转地址类型
176
+ if (action === 'jumpPosterContentType') {
177
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: "cms_setting"})
178
+ .then(res => {
179
+ loading.close();
180
+ data.cb(res['redirect_type'])
181
+ })
182
+ .catch(error => {
183
+ loading.close();
184
+ console.error(error);
185
+ });
186
+ }
187
+
188
+ //发布
189
+ if (action === 'publish') {
190
+ console.log('publish', data.params)
191
+ XdBus.getParentApi('cmsPublishContent')(data.params)
192
+ .then(res => {
193
+ loading.close();
194
+ data.cb(res)
195
+ })
196
+ .catch(error => {
197
+ loading.close();
198
+ console.error(error);
199
+ });
200
+ }
201
+
202
+ //获取站内页面地址
203
+ if (action === 'router') {
204
+ loading.close()
205
+ return XdBus.getParentApi('getPagesTree');
206
+
207
+ }
208
+
209
+ //通知页面进行刷新
210
+ if(action === 'update') {
211
+ XdBus.getParentApi('getXdBusUpdateView')('onUpdateView', {});
212
+ loading.close()
213
+ }
214
+ },
215
+ inline: false,
216
+ notice: '',
217
+ rules: [
218
+ {required: true, message: '请选择视频位置', trigger: 'change'},
219
+ ],
220
+ },
221
+ {
222
+ label: '视频位边距设置:',
223
+ ele: 'xd-margin-padding',
224
+ valueKey: 'margin',
225
+ value: params.margin || null,
226
+ disabled: false,
227
+ setting: {
228
+ type: 'margin',
229
+ },
230
+ placeholder: '请设置视频位边距设置',
231
+
232
+ },
233
+ {
234
+ label: '内容圆角设置:',
235
+ ele: 'xd-site-select-list',
236
+ valueKey: 'radius',
237
+ value: params['radius'] || '0',
238
+ placeholder: '请选择内容圆角设置',
239
+ multiple: false,
240
+ className: 'input80',
241
+ handleCustom({action, data}) {
242
+ XdBus.getParentApi('getOptionsSettingList')({
243
+ setting_id: 'edtix_style_radius',
244
+ key: Date.now()
245
+ })
246
+ .then(res => {
247
+ data.cb(res.list)
248
+ })
249
+ .catch(error => {
250
+ console.error(error);
251
+ });
252
+ },
253
+ },
254
+ ].filter(i=>i)
255
+ },
256
+ advanced: [
257
+
258
+ ],
259
+ };