jufubao-base 1.0.129 → 1.0.130-beta2

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 (194) hide show
  1. package/package.json +4 -3
  2. package/src/components/JfbBaseAddress/Attr.js +11 -5
  3. package/src/components/JfbBaseAddress/JfbBaseAddress.vue +3 -3
  4. package/src/components/JfbBaseAddress/JfbBaseAddressLess.less +18 -19
  5. package/src/components/JfbBaseAfterOrderDetail/Attr.js +19 -7
  6. package/src/components/JfbBaseAfterOrderDetail/JfbBaseAfterOrderDetail.vue +6 -4
  7. package/src/components/JfbBaseAfterOrderDetail/JfbBaseAfterOrderDetailLess.less +18 -19
  8. package/src/components/JfbBaseAfterOrderList/Attr.js +25 -16
  9. package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderList.vue +6 -9
  10. package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderListLess.less +18 -19
  11. package/src/components/JfbBaseBack/JfbBaseBackLess.less +18 -19
  12. package/src/components/JfbBaseBackground/Attr.js +9 -8
  13. package/src/components/JfbBaseBackground/JfbBaseBackground.vue +0 -3
  14. package/src/components/JfbBaseBackground/JfbBaseBackgroundLess.less +18 -19
  15. package/src/components/JfbBaseBlock/Attr.js +12 -2
  16. package/src/components/JfbBaseBlock/JfbBaseBlock.vue +1 -8
  17. package/src/components/JfbBaseBlock/JfbBaseBlockLess.less +18 -19
  18. package/src/components/JfbBaseBottomNotice/JfbBaseBottomNoticeLess.less +18 -19
  19. package/src/components/JfbBaseCard/Attr.js +76 -34
  20. package/src/components/JfbBaseCard/JfbBaseCardLess.less +18 -19
  21. package/src/components/JfbBaseCardBind/JfbBaseCardBindLess.less +18 -19
  22. package/src/components/JfbBaseCardBindV2/Attr.js +5 -4
  23. package/src/components/JfbBaseCardBindV2/JfbBaseCardBindV2Less.less +18 -19
  24. package/src/components/JfbBaseCardDetail/Attr.js +4 -3
  25. package/src/components/JfbBaseCardDetail/JfbBaseCardDetailLess.less +18 -19
  26. package/src/components/JfbBaseCardDetailEntry/Attr.js +10 -8
  27. package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntryLess.less +18 -19
  28. package/src/components/JfbBaseCardDisabled/Attr.js +1 -3
  29. package/src/components/JfbBaseCardDisabled/JfbBaseCardDisabledLess.less +18 -19
  30. package/src/components/JfbBaseCardDisabledEntry/JfbBaseCardDisabledEntryLess.less +18 -19
  31. package/src/components/JfbBaseCardEntry/Attr.js +86 -67
  32. package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +3 -2
  33. package/src/components/JfbBaseCardEntry/JfbBaseCardEntryLess.less +18 -19
  34. package/src/components/JfbBaseCardInfo/Attr.js +22 -16
  35. package/src/components/JfbBaseCardInfo/JfbBaseCardInfoLess.less +18 -19
  36. package/src/components/JfbBaseCardInfoEntry/Attr.js +16 -11
  37. package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntryLess.less +18 -19
  38. package/src/components/JfbBaseCardMerge/Attr.js +21 -8
  39. package/src/components/JfbBaseCardMerge/JfbBaseCardMerge.vue +15 -30
  40. package/src/components/JfbBaseCardMerge/JfbBaseCardMergeLess.less +18 -19
  41. package/src/components/JfbBaseCardMergeEntry/Attr.js +20 -6
  42. package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntry.vue +28 -25
  43. package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntryLess.less +18 -19
  44. package/src/components/JfbBaseCardShift/Attr.js +18 -4
  45. package/src/components/JfbBaseCardShift/JfbBaseCardShift.vue +26 -11
  46. package/src/components/JfbBaseCardShift/JfbBaseCardShiftLess.less +18 -19
  47. package/src/components/JfbBaseCardShift/Mock.js +21 -0
  48. package/src/components/JfbBaseCardShiftEntry/Attr.js +34 -26
  49. package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntry.vue +294 -257
  50. package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntryLess.less +18 -19
  51. package/src/components/JfbBaseCardShiftEntry/Mock.js +2 -1
  52. package/src/components/JfbBaseCardSweepInfo/Attr.js +5 -3
  53. package/src/components/JfbBaseCardSweepInfo/JfbBaseCardSweepInfoLess.less +18 -19
  54. package/src/components/JfbBaseCardV2/Attr.js +19 -15
  55. package/src/components/JfbBaseCardV2/JfbBaseCardV2.vue +3 -5
  56. package/src/components/JfbBaseCardV2/JfbBaseCardV2Less.less +18 -19
  57. package/src/components/JfbBaseCardV3/Attr.js +16 -12
  58. package/src/components/JfbBaseCardV3/JfbBaseCardV3.vue +1 -1
  59. package/src/components/JfbBaseCardV3/JfbBaseCardV3Less.less +18 -19
  60. package/src/components/JfbBaseCity/Attr.js +2 -4
  61. package/src/components/JfbBaseCity/JfbBaseCityLess.less +18 -19
  62. package/src/components/{JfbBaseWalletDetail → JfbBaseClear}/Attr.js +1 -0
  63. package/src/components/JfbBaseClear/JfbBaseClearLess.less +18 -19
  64. package/src/components/JfbBaseClear/JfbBaseClearMixin.js +12 -0
  65. package/src/components/JfbBaseConDialog/Api.js +1 -1
  66. package/src/components/JfbBaseConDialog/Attr.js +30 -20
  67. package/src/components/JfbBaseConDialog/JfbBaseConDialog.vue +45 -26
  68. package/src/components/JfbBaseConDialog/JfbBaseConDialogLess.less +18 -19
  69. package/src/components/JfbBaseConDialog/Mock.js +20 -1
  70. package/src/components/JfbBaseConDialog/XdCouCardBind.vue +15 -9
  71. package/src/components/JfbBaseConList/Attr.js +149 -224
  72. package/src/components/JfbBaseConList/JfbBaseConList.vue +150 -133
  73. package/src/components/JfbBaseConList/JfbBaseConListLess.less +18 -19
  74. package/src/components/JfbBaseConPhone/JfbBaseConPhoneLess.less +18 -19
  75. package/src/components/JfbBaseEntry/Attr.js +33 -21
  76. package/src/components/JfbBaseEntry/JfbBaseEntry.vue +34 -23
  77. package/src/components/JfbBaseEntry/JfbBaseEntryLess.less +18 -19
  78. package/src/components/JfbBaseExpressDetail/JfbBaseExpressDetailLess.less +18 -19
  79. package/src/components/JfbBaseFastLink/Api.js +1 -54
  80. package/src/components/JfbBaseFastLink/Attr.js +168 -116
  81. package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +12 -16
  82. package/src/components/JfbBaseFastLink/JfbBaseFastLinkLess.less +18 -19
  83. package/src/components/JfbBaseFooter/Attr.js +28 -22
  84. package/src/components/JfbBaseFooter/JfbBaseFooter.vue +19 -15
  85. package/src/components/JfbBaseFooter/JfbBaseFooterLess.less +18 -19
  86. package/src/components/JfbBaseHeader/Attr.js +89 -91
  87. package/src/components/JfbBaseHeader/JfbBaseHeader.vue +28 -29
  88. package/src/components/JfbBaseHeader/JfbBaseHeaderLess.less +18 -19
  89. package/src/components/JfbBaseLogin/Attr.js +111 -88
  90. package/src/components/JfbBaseLogin/JfbBaseLogin.vue +0 -1
  91. package/src/components/JfbBaseLogin/JfbBaseLoginLess.less +18 -19
  92. package/src/components/JfbBaseLoginForgetPwd/Attr.js +52 -45
  93. package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwd.vue +14 -14
  94. package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwdLess.less +18 -19
  95. package/src/components/JfbBaseLoginSetPwd/Attr.js +6 -4
  96. package/src/components/JfbBaseLoginSetPwd/JfbBaseLoginSetPwdLess.less +18 -19
  97. package/src/components/JfbBaseMapOverlay/JfbBaseMapOverlayLess.less +18 -19
  98. package/src/components/JfbBaseMapSearch/Attr.js +0 -15
  99. package/src/components/JfbBaseMapSearch/JfbBaseMapSearch.vue +1 -25
  100. package/src/components/JfbBaseMapSearch/JfbBaseMapSearchLess.less +18 -19
  101. package/src/components/JfbBaseMergeUserCard/Attr.js +4 -3
  102. package/src/components/JfbBaseMergeUserCard/JfbBaseMergeUserCardLess.less +18 -19
  103. package/src/components/JfbBaseMultipleExpress/Attr.js +4 -3
  104. package/src/components/JfbBaseMultipleExpress/JfbBaseMultipleExpressLess.less +18 -19
  105. package/src/components/JfbBaseMy/JfbBaseMyLess.less +18 -19
  106. package/src/components/JfbBaseMySetting/Attr.js +1 -1
  107. package/src/components/JfbBaseMySetting/JfbBaseMySettingLess.less +18 -19
  108. package/src/components/JfbBaseNotice/Attr.js +97 -56
  109. package/src/components/JfbBaseNotice/JfbBaseNotice.vue +70 -52
  110. package/src/components/JfbBaseNotice/JfbBaseNoticeLess.less +18 -19
  111. package/src/components/JfbBaseNoticeBottom/JfbBaseNoticeBottomLess.less +18 -19
  112. package/src/components/JfbBaseNoticeTop/JfbBaseNoticeTopLess.less +18 -19
  113. package/src/components/JfbBaseOrderDetail/Attr.js +210 -193
  114. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +5 -3
  115. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetailLess.less +18 -19
  116. package/src/components/JfbBaseOrderList/Attr.js +55 -43
  117. package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +5 -3
  118. package/src/components/JfbBaseOrderList/JfbBaseOrderListLess.less +18 -19
  119. package/src/components/JfbBasePay/Attr.js +2 -13
  120. package/src/components/JfbBasePay/JfbBasePay.vue +7 -6
  121. package/src/components/JfbBasePay/JfbBasePayLess.less +18 -19
  122. package/src/components/JfbBasePay/Mock.js +2 -1
  123. package/src/components/JfbBasePhoneCollect/Attr.js +27 -2
  124. package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +1 -1
  125. package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollectLess.less +18 -19
  126. package/src/components/JfbBasePhoneLogin/Attr.js +27 -2
  127. package/src/components/JfbBasePhoneLogin/JfbBasePhoneLoginLess.less +18 -19
  128. package/src/components/JfbBasePoster/Attr.js +103 -83
  129. package/src/components/JfbBasePoster/JfbBasePoster.vue +134 -141
  130. package/src/components/JfbBasePoster/JfbBasePosterLess.less +18 -19
  131. package/src/components/JfbBasePosterBigSmall/Attr.js +93 -76
  132. package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmall.vue +3 -7
  133. package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmallLess.less +18 -19
  134. package/src/components/JfbBasePosterBigSmall/getWidthHeight.js +2 -2
  135. package/src/components/JfbBasePosterEntry/Attr.js +44 -33
  136. package/src/components/JfbBasePosterEntry/JfbBasePosterEntry.vue +44 -49
  137. package/src/components/JfbBasePosterEntry/JfbBasePosterEntryLess.less +18 -19
  138. package/src/components/JfbBasePosterType/Attr.js +82 -48
  139. package/src/components/JfbBasePosterType/FourScreen.vue +39 -34
  140. package/src/components/JfbBasePosterType/JfbBasePosterType.vue +51 -73
  141. package/src/components/JfbBasePosterType/JfbBasePosterTypeLess.less +18 -19
  142. package/src/components/JfbBaseRecharge/Attr.js +35 -23
  143. package/src/components/JfbBaseRecharge/JfbBaseRecharge.vue +54 -8
  144. package/src/components/JfbBaseRecharge/JfbBaseRechargeLess.less +18 -19
  145. package/src/components/JfbBaseRechargeOrder/Attr.js +32 -22
  146. package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrder.vue +12 -7
  147. package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrderLess.less +18 -19
  148. package/src/components/JfbBaseRechargeOrderDetail/JfbBaseRechargeOrderDetailLess.less +18 -19
  149. package/src/components/JfbBaseRechargeSuccess/Attr.js +10 -8
  150. package/src/components/JfbBaseRechargeSuccess/JfbBaseRechargeSuccessLess.less +18 -19
  151. package/src/components/JfbBaseSearch/Attr.js +6 -148
  152. package/src/components/JfbBaseSearch/JfbBaseSearch.vue +8 -37
  153. package/src/components/JfbBaseSearch/JfbBaseSearchLess.less +18 -19
  154. package/src/components/JfbBaseSetPwd/Attr.js +6 -147
  155. package/src/components/JfbBaseSetPwd/JfbBaseSetPwdLess.less +18 -19
  156. package/src/components/JfbBaseSuccess/Attr.js +78 -17
  157. package/src/components/JfbBaseSuccess/JfbBaseSuccessLess.less +18 -19
  158. package/src/components/JfbBaseTestApi/JfbBaseTestApiLess.less +18 -19
  159. package/src/components/JfbBaseTestBody/JfbBaseTestBodyLess.less +18 -19
  160. package/src/components/JfbBaseTestBottom/JfbBaseTestBottomLess.less +18 -19
  161. package/src/components/JfbBaseTestNotice/JfbBaseTestNoticeLess.less +18 -19
  162. package/src/components/JfbBaseTestTop/JfbBaseTestTopLess.less +18 -19
  163. package/src/components/JfbBaseUserCenter/Attr.js +72 -53
  164. package/src/components/JfbBaseUserCenter/JfbBaseUserCenter.vue +40 -27
  165. package/src/components/JfbBaseUserCenter/JfbBaseUserCenterLess.less +18 -19
  166. package/src/components/JfbBaseUserInfo/Attr.js +54 -45
  167. package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +21 -21
  168. package/src/components/JfbBaseUserInfo/JfbBaseUserInfoLess.less +18 -19
  169. package/src/components/JfbBaseUserOrder/Attr.js +118 -92
  170. package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +21 -7
  171. package/src/components/JfbBaseUserOrder/JfbBaseUserOrderLess.less +18 -19
  172. package/src/components/JfbBaseVideo/Attr.js +72 -19
  173. package/src/components/JfbBaseVideo/JfbBaseVideo.vue +69 -28
  174. package/src/components/JfbBaseVideo/JfbBaseVideoLess.less +18 -19
  175. package/src/components/JfbBaseVideo/XdVideo.vue +6 -44
  176. package/src/components/JfbBaseWallet/JfbBaseWalletLess.less +18 -19
  177. package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetailLess.less +18 -19
  178. package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetailMixin.js +0 -12
  179. package/src/components/JfbBaseWalletEffective/JfbBaseWalletEffectiveLess.less +18 -19
  180. package/src/components/JfbBaseWalletIndex/JfbBaseWalletIndexLess.less +18 -19
  181. package/src/components/JfbBaseWalletItem/JfbBaseWalletItemLess.less +18 -19
  182. package/src/components/JfbBaseWebview/JfbBaseWebviewLess.less +18 -19
  183. package/src/components/JfbBaseWxAuthorize/Attr.js +31 -3
  184. package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorize.vue +32 -26
  185. package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorizeLess.less +18 -19
  186. package/src/components/JfbBaseWxAuthorizeError/Attr.js +21 -17
  187. package/src/components/JfbBaseWxAuthorizeError/JfbBaseWxAuthorizeErrorLess.less +18 -19
  188. package/src/components/JfbBaseLine/Attr.js +0 -59
  189. package/src/components/JfbBaseLine/JfbBaseLine.vue +0 -105
  190. package/src/components/JfbBaseLine/JfbBaseLineLess.less +0 -80
  191. package/src/components/JfbBaseLine/JfbBaseLineMixin.js +0 -30
  192. package/src/components/JfbBasePosterType/Screen.vue +0 -284
  193. package/src/components/JfbBaseSearch/Api.js +0 -60
  194. package/src/components/JfbBaseSearch/Mock.js +0 -5
@@ -6,7 +6,8 @@ import getWidthHeight from './getWidthHeight'
6
6
  export default {
7
7
  style: [],
8
8
  content: (params) => {
9
- console.log(params,'apapapap');
9
+ if(!params.margin) params.margin = {};
10
+ if(params.msMargin !== 0 && !params.msMargin) params.msMargin = 0;
10
11
  if(!params['isCarousel']) params['isCarousel'] = 1;
11
12
  if(params.poster) {
12
13
  let bigWidth = getWidthHeight(params.height,params.margin,params.msMargin).bigWidth
@@ -15,101 +16,107 @@ export default {
15
16
  width: bigWidth,
16
17
  height: bigHeight,
17
18
  }
18
- params.poster.type=1
19
- console.log(params.poster,'params.posterparams.poster');
19
+ params.poster.type='1'
20
20
  }
21
- if(params.topPoster) {
21
+ if(params['topPoster']) {
22
22
  let bigWidth = getWidthHeight(params.height,params.margin,params.msMargin).bigWidth
23
23
  let smallHeight = getWidthHeight(params.height,params.margin,params.msMargin).smallHeight
24
24
  params.topPoster.size={
25
25
  width: bigWidth,
26
26
  height: smallHeight,
27
27
  }
28
- params.topPoster.type=1
28
+ params.topPoster.type='1'
29
29
  }
30
- if(params.bottomPoster) {
30
+ if(params['bottomPoster']) {
31
31
  let bigWidth = getWidthHeight(params.height,params.margin,params.msMargin).bigWidth
32
32
  let smallHeight = getWidthHeight(params.height,params.margin,params.msMargin).smallHeight
33
33
  params.bottomPoster.size={
34
34
  width: bigWidth,
35
35
  height: smallHeight,
36
36
  }
37
- params.bottomPoster.type=1
37
+ params.bottomPoster.type='1'
38
38
  }
39
+ let xiugai = false;
40
+ if(params.poster && params.poster.position && params.poster.position.position_id) xiugai = true;
41
+ if(params['topPoster'] && params['topPoster'].position && params['topPoster'].position.position_id) xiugai = true;
42
+ if(params['bottomPoster'] && params['bottomPoster'].position && params['bottomPoster'].position.position_id) xiugai = true;
39
43
  return [
40
44
  {
41
45
  label: '广告位高度:',
42
46
  ele: 'el-input',
43
47
  type: 'number',
44
48
  valueKey: 'height',
49
+ groupKey:'style',
45
50
  value: params.height || 500,
46
51
  className: 'input40',
47
52
  placeholder: '请广告位内容间距设置',
48
- notice: '单位:像素(px)',
53
+ disabled:xiugai,
54
+ notice: '广告位选取内容后,将无法修改,单位:像素,默认: <span style="color:red">500</span>像素',
49
55
  inline: false,
50
56
  },
51
- {
52
- label: '样式:',
53
- ele: 'xd-radio',
54
- valueKey: 'position',
55
- value: params['position'] || 1,
56
- rules: [
57
- {required: true, message: '请选择广告位显示方式', trigger: ['blur', 'change']}
58
- ],
59
- list: [
60
- {"label": "大图靠左", "value": 1},
61
- {"label": "大图靠右", "value": 2},
62
- ]
63
- },
64
57
  {
65
58
  label: '广告位边距设置:',
66
59
  ele: 'xd-margin-padding',
60
+ groupKey:'style',
67
61
  valueKey: 'margin',
68
- value: params.margin || {
69
- top: 0,
70
- bottom: 0,
71
- left: 0,
72
- right: 0,
73
- },
74
- disabled: false,
75
- setting: {
76
- type: 'margin',
77
- },
62
+ value: params.margin || null,
63
+ disabled: xiugai,
64
+ setting: { type: 'margin'},
78
65
  placeholder: '请设置广告位边距设置',
79
-
66
+ notice: '广告位选取内容后,将无法修改,单位:像素',
67
+ inline: false,
80
68
  },
81
69
  {
82
70
  label: '图片间距:',
83
71
  ele: 'el-input',
84
72
  type: 'number',
85
73
  valueKey: 'msMargin',
74
+ groupKey:'style',
86
75
  value: params.msMargin || 10,
87
76
  className: 'input40',
88
77
  placeholder: '请广告位内容间距设置',
89
- notice: '单位:像素(px)',
78
+ disabled: xiugai,
79
+ notice: '广告位选取内容后,将无法修改,单位:像素,默认: <span style="color:red">10</span>像素',
90
80
  inline: false,
91
81
  },
82
+ {
83
+ label: '样式:',
84
+ ele: 'xd-radio',
85
+ valueKey: 'position',
86
+ groupKey:'content',
87
+ value: params['position'] || 1,
88
+ rules: [
89
+ {required: true, message: '请选择广告位显示方式', trigger: ['blur', 'change']}
90
+ ],
91
+ list: [
92
+ {"label": "大图靠左", "value": 1},
93
+ {"label": "大图靠右", "value": 2},
94
+ ]
95
+ },
96
+
97
+
92
98
  {
93
99
  ele: 'title',
94
100
  label: '大图设置',
95
- size: 'small', //default/mini/small
101
+ size: 'small',
102
+ groupKey:'content',
96
103
  },
97
104
  {
98
- label: '大图广告位置配置:', //label
99
- ele: 'xd-site-poster', //package 名称
100
- valueKey: 'poster', //form[valueKey]
105
+ label: '大图广告位置配置:',
106
+ ele: 'xd-site-poster',
107
+ valueKey: 'poster',
108
+ groupKey:'content',
101
109
  className: 'input80',
102
110
  isKey: true,
103
111
  key: new Date().getTime(),
104
112
  value: params.poster || {},
105
113
  setting: {
106
- count: 1,
114
+ count: '1',
107
115
  scene: {label: '广告', value: 'normal'},
108
- partDisabled: true
116
+ partDisabled: true,
117
+ disabled: true,
109
118
  },
110
119
  handleCustom({action, data}) {
111
- console.log(params.poster,'posteryyyy');
112
- console.log(getWidthHeight(params.height,params.margin,params.msMargin),'getWidthHeight');
113
120
  if (data && data.params) {
114
121
  //当一个插件中出现多个内容分类时候需要设置code值,在页面引用时候(容器id + code)进行拼接获取数据列表
115
122
  data.params = Object.assign({}, data.params, {code: 'big'});
@@ -314,21 +321,11 @@ export default {
314
321
  {required: true, message: '请选择广告位置', trigger: 'change'},
315
322
  ],
316
323
  },
317
- params.poster && params.poster['type']&& params.poster['type'] !== '1' && {
318
- label: '广告位内容间距设置:',
319
- ele: 'el-input',
320
- type: 'number',
321
- valueKey: 'padding',
322
- value: params.padding || 0,
323
- className: 'input40',
324
- placeholder: '请广告位内容间距设置',
325
- notice: '在使用通屏显示类型广告位之外的样式时,该属性生效,单位:像素(px)',
326
- inline: false,
327
- },
328
324
  {
329
325
  label: '大图广告圆角设置:',
330
326
  ele: 'xd-site-select-list',
331
327
  valueKey: 'radius',
328
+ groupKey:'content',
332
329
  value: params['radius'] || '20',
333
330
  placeholder: '请选择广告圆角设置',
334
331
  multiple: false,
@@ -348,6 +345,7 @@ export default {
348
345
  ele: 'el-input',
349
346
  type: 'number',
350
347
  valueKey: 'number',
348
+ groupKey:'content',
351
349
  value: params.number || 1,
352
350
  placeholder: '请输入广告位置使用张数',
353
351
  className: 'input40',
@@ -364,6 +362,7 @@ export default {
364
362
  label: '大图广告位显示方式:',
365
363
  ele: 'xd-radio',
366
364
  valueKey: 'isCarousel',
365
+ groupKey:'content',
367
366
  value: params['isCarousel'] || 1,
368
367
  rules: [
369
368
  {required: true, message: '请选择广告位显示方式', trigger: ['blur', 'change']}
@@ -377,6 +376,7 @@ export default {
377
376
  label: '大图广告位轮播周期:',
378
377
  ele: 'el-input',
379
378
  type: 'number',
379
+ groupKey:'content',
380
380
  isKey: true,
381
381
  valueKey: 'carouselTime',
382
382
  value: params.carouselTime || 5,
@@ -392,10 +392,11 @@ export default {
392
392
  ]
393
393
  },
394
394
  params['isCarousel'] === 2 && {
395
- label: '大图广告显示dot类型:', //label
396
- ele: 'xd-select-list', //package 名称
397
- valueKey: 'dot_type', //form[valueKey]
398
- value: params['dot_type'] || 'dot', //v-model
395
+ label: '大图广告显示dot类型:',
396
+ ele: 'xd-select-list',
397
+ valueKey: 'dot_type',
398
+ groupKey:'content',
399
+ value: params['dot_type'] || 'dot',
399
400
  placeholder: '请选择广告显示dot类型',
400
401
  multiple: false,
401
402
  className: 'input80',
@@ -413,20 +414,23 @@ export default {
413
414
  {
414
415
  ele: 'title',
415
416
  label: '小图上设置',
416
- size: 'small', //default/mini/small
417
+ size: 'small',
418
+ groupKey:'content',
417
419
  },
418
420
  {
419
- label: '小图上广告位置配置:', //label
420
- ele: 'xd-site-poster', //package 名称
421
- valueKey: 'topPoster', //form[valueKey]
421
+ label: '小图上广告位置配置:',
422
+ ele: 'xd-site-poster',
423
+ valueKey: 'topPoster',
424
+ groupKey:'content',
422
425
  className: 'input80',
423
- value: params.topPoster || {},
426
+ value: params['topPoster'] || {},
424
427
  isKey: true,
425
428
  key: new Date().getTime(),
426
429
  setting: {
427
430
  count: 1,
428
431
  scene: {label: '广告', value: 'normal'},
429
- partDisabled: true
432
+ partDisabled: true,
433
+ disabled: true,
430
434
  },
431
435
  handleCustom({action, data}) {
432
436
  if (data && data.params) {
@@ -636,6 +640,7 @@ export default {
636
640
  label: '小图上广告圆角设置:',
637
641
  ele: 'xd-site-select-list',
638
642
  valueKey: 'topRadius',
643
+ groupKey:'content',
639
644
  value: params['topRadius'] || '20',
640
645
  placeholder: '请选择广告圆角设置',
641
646
  multiple: false,
@@ -655,6 +660,7 @@ export default {
655
660
  ele: 'el-input',
656
661
  type: 'topNumber',
657
662
  valueKey: 'topNumber',
663
+ groupKey:'content',
658
664
  value: params.topNumber || 1,
659
665
  placeholder: '请输入广告位置使用张数',
660
666
  className: 'input40',
@@ -671,6 +677,7 @@ export default {
671
677
  label: '小图上广告位显示方式:',
672
678
  ele: 'xd-radio',
673
679
  valueKey: 'topIsCarousel',
680
+ groupKey:'content',
674
681
  value: params['topIsCarousel'] || 1,
675
682
  rules: [
676
683
  {required: true, message: '请选择广告位显示方式', trigger: ['blur', 'change']}
@@ -684,6 +691,7 @@ export default {
684
691
  label: '小图上广告位轮播周期:',
685
692
  ele: 'el-input',
686
693
  type: 'number',
694
+ groupKey:'content',
687
695
  isKey: true,
688
696
  valueKey: 'topCarouselTime',
689
697
  value: params.topCarouselTime || 5,
@@ -699,10 +707,11 @@ export default {
699
707
  ]
700
708
  },
701
709
  params['topIsCarousel'] === 2 && {
702
- label: '小图上广告显示dot类型:', //label
703
- ele: 'xd-select-list', //package 名称
704
- valueKey: 'top_dot_type', //form[valueKey]
705
- value: params['top_dot_type'] || 'dot', //v-model
710
+ label: '小图上广告显示dot类型:',
711
+ ele: 'xd-select-list',
712
+ groupKey:'content',
713
+ valueKey: 'top_dot_type',
714
+ value: params['top_dot_type'] || 'dot',
706
715
  placeholder: '请选择广告显示dot类型',
707
716
  multiple: false,
708
717
  className: 'input80',
@@ -720,20 +729,23 @@ export default {
720
729
  {
721
730
  ele: 'title',
722
731
  label: '小图下设置',
723
- size: 'small', //default/mini/small
732
+ size: 'small',
733
+ groupKey:'content',
724
734
  },
725
735
  {
726
- label: '小图下广告位置配置:', //label
727
- ele: 'xd-site-poster', //package 名称
728
- valueKey: 'bottomPoster', //form[valueKey]
736
+ label: '小图下广告位置配置:',
737
+ ele: 'xd-site-poster',
738
+ valueKey: 'bottomPoster',
729
739
  className: 'input80',
730
- value: params.bottomPoster || {},
740
+ groupKey:'content',
741
+ value: params['bottomPoster'] || {},
731
742
  isKey: true,
732
743
  key: new Date().getTime(),
733
744
  setting: {
734
745
  count: 1,
735
746
  scene: {label: '广告', value: 'normal'},
736
- partDisabled: true
747
+ partDisabled: true,
748
+ disabled: true,
737
749
  },
738
750
  handleCustom({action, data}) {
739
751
  if (data && data.params) {
@@ -943,6 +955,7 @@ export default {
943
955
  label: '小图下广告圆角设置:',
944
956
  ele: 'xd-site-select-list',
945
957
  valueKey: 'bottomRadius',
958
+ groupKey:'content',
946
959
  value: params['bottomRadius'] || '20',
947
960
  placeholder: '请选择广告圆角设置',
948
961
  multiple: false,
@@ -961,6 +974,7 @@ export default {
961
974
  label: '小图下广告位置使用张数:',
962
975
  ele: 'el-input',
963
976
  type: 'number',
977
+ groupKey:'content',
964
978
  valueKey: 'bottomNumber',
965
979
  value: params.bottomNumber || 1,
966
980
  placeholder: '请输入广告位置使用张数',
@@ -977,6 +991,7 @@ export default {
977
991
  {
978
992
  label: '小图下广告位显示方式:',
979
993
  ele: 'xd-radio',
994
+ groupKey:'content',
980
995
  valueKey: 'bottomIsCarousel',
981
996
  value: params['bottomIsCarousel'] || 1,
982
997
  rules: [
@@ -992,6 +1007,7 @@ export default {
992
1007
  ele: 'el-input',
993
1008
  type: 'number',
994
1009
  isKey: true,
1010
+ groupKey:'content',
995
1011
  valueKey: 'bottomCarouselTime',
996
1012
  value: params.bottomCarouselTime || 5,
997
1013
  placeholder: '请输入广告位轮播周期,单位秒',
@@ -1006,10 +1022,11 @@ export default {
1006
1022
  ]
1007
1023
  },
1008
1024
  params['bottomIsCarousel'] === 2 && {
1009
- label: '小图下广告显示dot类型:', //label
1010
- ele: 'xd-select-list', //package 名称
1011
- valueKey: 'bottom_dot_type', //form[valueKey]
1012
- value: params['bottom_dot_type'] || 'dot', //v-model
1025
+ label: '小图下广告显示dot类型:',
1026
+ ele: 'xd-select-list',
1027
+ valueKey: 'bottom_dot_type',
1028
+ groupKey:'content',
1029
+ value: params['bottom_dot_type'] || 'dot',
1013
1030
  placeholder: '请选择广告显示dot类型',
1014
1031
  multiple: false,
1015
1032
  className: 'input80',
@@ -468,7 +468,8 @@ export default {
468
468
  },
469
469
  },
470
470
  watch: {
471
- container(value) {
471
+ container(value,oloValue) {
472
+ if(JSON.stringify(value) === JSON.stringify(oloValue)) return;
472
473
  this.init(value);
473
474
  if(this.timer) clearTimeout(this.timer);
474
475
  this.timer = setTimeout(()=>{
@@ -667,12 +668,7 @@ export default {
667
668
  init(container) {
668
669
  this.height = getContainerPropsValue(container, "content.height", "500");
669
670
  // 获取最外面间距,如果没有则设置默认值
670
- this.mS = getContainerPropsValue(container, "content.margin", {
671
- top: 0,
672
- bottom: 0,
673
- left: 0,
674
- right: 0,
675
- });
671
+ this.mS = getContainerPropsValue(container, "content.margin", {top: 0, bottom: 0,left: 0, right: 0});
676
672
  this.position = getContainerPropsValue(container, "content.position", 1);
677
673
  // 获取大小图之间间距,如果没有则设置默认值
678
674
  this.msMargin = getContainerPropsValue(container, "content.msMargin", 10);
@@ -13,9 +13,8 @@
13
13
 
14
14
  //start
15
15
  .jfb-base-poster-big-small {
16
- border: 1px dashed rgba(0, 0, 0, 0);
17
16
  box-sizing: border-box;
18
- min-height: unit(50, rpx);
17
+ min-height: unit(100, rpx);
19
18
 
20
19
  &__body{
21
20
  position: relative;
@@ -23,21 +22,21 @@
23
22
  z-index: 2
24
23
  }
25
24
 
26
- &.editx {
25
+ &.editx,&:hover {
27
26
  position: relative;
28
- border: 1px dashed blue;
29
- box-sizing: border-box;
30
- z-index: 3
31
-
32
- }
33
-
34
- &:hover {
35
- border: 1px dashed blue;
36
- }
27
+ z-index: 3;
28
+ &::after {
29
+ border: 2rpx dashed blue;
30
+ content: " ";
31
+ position: absolute;
32
+ top:0;
33
+ left:0;
34
+ bottom:0;
35
+ right:0;
36
+ z-index: 4;
37
+ cursor: pointer;
38
+ }
37
39
 
38
- &.noBorder {
39
- border-color: rgba(0,0,0,0);
40
- border-width: 0;
41
40
  }
42
41
 
43
42
 
@@ -72,9 +71,9 @@
72
71
 
73
72
  /**notPreview**/
74
73
  .jfb-base-poster-big-small {
75
- &:before {
76
- content: " ";
77
- display: table;
78
- }
74
+ //&:before {
75
+ //content: " ";
76
+ //display: table;
77
+ //}
79
78
  }
80
79
  /**endNotPreview**/
@@ -1,4 +1,4 @@
1
- function getWidthHeight(height, mS, msMargin) {
1
+ function getWidthHeight(height, mS= {}, msMargin={}) {
2
2
  let bigWidth =
3
3
  uni.getSystemInfoSync().safeArea.width -
4
4
  (mS.left + mS.right + Number(msMargin)) / 2;
@@ -9,4 +9,4 @@ function getWidthHeight(height, mS, msMargin) {
9
9
  2;
10
10
  return { bigWidth, bigHeight, smallHeight };
11
11
  }
12
- export default getWidthHeight;
12
+ export default getWidthHeight;
@@ -8,15 +8,15 @@ import console from "@dcloudio/uni-h5/src/core/helpers/console";
8
8
  export default {
9
9
  style:[],
10
10
  content:(params)=>{
11
- console.log('params',params);
12
- if (!params['number']) params['number'] = 20;
13
- if (!params['radius']) params['radius'] = '20';
11
+ if (!params['number']) params['number'] = '1';
12
+ if (!params['radius']) params['radius'] = '';
14
13
  return [
15
14
  {
16
- label: '入口配置:', //label
17
- ele: 'xd-site-poster', //package 名称
18
- valueKey: 'entry', //form[valueKey]
15
+ label: '入口配置:',
16
+ ele: 'xd-site-poster',
17
+ valueKey: 'entry',
19
18
  className: 'input80',
19
+ groupKey: 'content',
20
20
  value: params.entry || {
21
21
  size: {height: null, width: null},
22
22
  type: '1'
@@ -223,21 +223,49 @@ export default {
223
223
  loading.close()
224
224
  }
225
225
  },
226
+ rules: [{
227
+ required: true,
228
+ validator: (rule, value, callback) => {
229
+ let message = '请设置综合福利入口置相关内容';
230
+ if(!value) {
231
+ callback(message);
232
+ return;
233
+ }
234
+ if(value.size && !value.size.height){
235
+ callback(message);
236
+ return
237
+ }
238
+
239
+ if(value.size && !value.size.width){
240
+ callback(message);
241
+ return
242
+ }
243
+ callback()
244
+ },trigger: ['blur', 'change']
245
+ }],
246
+ },
247
+ {
248
+ label: '导航内容置使用张数:',
249
+ ele: 'el-input',
250
+ type: 'number',
251
+ valueKey: 'number',
252
+ value: params.number,
253
+ placeholder: '请输入导航内容置使用张数',
254
+ className: 'input60',
255
+ groupKey: 'content',
226
256
  inline: false,
227
- notice: '',
228
- rules: [
229
- {required: true, message: '请选择广告位置', trigger: 'change'},
230
- ],
257
+ notice:'导航内容默认显示使用张数:5张'
231
258
  },
232
259
  {
233
260
  label: '内容间距设置:',
234
261
  ele: 'el-input',
235
262
  type: 'number',
236
263
  valueKey: 'padding',
237
- value: params.padding || 0,
238
- className: 'input40',
264
+ value: params.padding || '',
265
+ className: 'input60',
266
+ groupKey: 'style',
239
267
  placeholder: '请设置内容间距',
240
- notice: '在使用二分屏显示类型时,该属性生效,单位:像素(px',
268
+ notice: '在使用二分屏显示类型时,该属性生效,单位:像素(px)。默认值:<span style="color: red">20</span> 像素',
241
269
  inline: false,
242
270
  },
243
271
  {
@@ -245,13 +273,13 @@ export default {
245
273
  ele: 'xd-margin-padding',
246
274
  valueKey: 'margin',
247
275
  value: params.margin || null,
248
- disabled: false,
276
+ groupKey: 'style',
249
277
  setting: {
250
278
  type: 'margin',
251
279
  },
252
280
  placeholder: '请设置外边距',
253
281
  inline: false,
254
- notice: '设置外边距,<span style="color: red">单位:像素</span>。默认值:0像素',
282
+ notice: '设置外边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">0</span> 像素',
255
283
  },
256
284
  {
257
285
  label: '导航ICON圆角设置:',
@@ -260,6 +288,7 @@ export default {
260
288
  value: params['radius'],
261
289
  placeholder: '请选择导航ICON圆角设置',
262
290
  multiple: false,
291
+ groupKey: 'style',
263
292
  className: 'input80',
264
293
  handleCustom({action, data}) {
265
294
  XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
@@ -271,24 +300,6 @@ export default {
271
300
  });
272
301
  },
273
302
  },
274
- {
275
- label: '导航内容置使用张数:',
276
- ele: 'el-input',
277
- type: 'number',
278
- valueKey: 'number',
279
- value: params.number,
280
- placeholder: '请输入导航内容置使用张数',
281
- className: 'input40',
282
- unit:'张',
283
- rules: [
284
- {
285
- required: true,
286
- message: '请输入导航内容置使用张数',
287
- trigger: 'blur'
288
- },
289
- ]
290
- },
291
-
292
303
  ].filter(i=>i)
293
304
  },
294
305
  advanced: [