jufubao-base 1.0.134-beta8 → 1.0.134

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