jufubao-base 1.0.134 → 1.0.136

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 (209) 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 +78 -41
  20. package/src/components/JfbBaseCard/JfbBaseCard.vue +12 -23
  21. package/src/components/JfbBaseCard/JfbBaseCardLess.less +18 -19
  22. package/src/components/JfbBaseCardBind/JfbBaseCardBindLess.less +18 -19
  23. package/src/components/JfbBaseCardBindV2/Attr.js +5 -4
  24. package/src/components/JfbBaseCardBindV2/JfbBaseCardBindV2.vue +3 -1
  25. package/src/components/JfbBaseCardBindV2/JfbBaseCardBindV2Less.less +18 -19
  26. package/src/components/JfbBaseCardDetail/Attr.js +4 -3
  27. package/src/components/JfbBaseCardDetail/JfbBaseCardDetailLess.less +18 -19
  28. package/src/components/JfbBaseCardDetailEntry/Attr.js +10 -8
  29. package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +4 -13
  30. package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntryLess.less +18 -19
  31. package/src/components/JfbBaseCardDisabled/Attr.js +1 -3
  32. package/src/components/JfbBaseCardDisabled/JfbBaseCardDisabledLess.less +18 -19
  33. package/src/components/JfbBaseCardDisabledEntry/JfbBaseCardDisabledEntryLess.less +18 -19
  34. package/src/components/JfbBaseCardEntry/Api.js +1 -1
  35. package/src/components/JfbBaseCardEntry/Attr.js +86 -67
  36. package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +6 -5
  37. package/src/components/JfbBaseCardEntry/JfbBaseCardEntryLess.less +18 -19
  38. package/src/components/JfbBaseCardInfo/Attr.js +22 -16
  39. package/src/components/JfbBaseCardInfo/JfbBaseCardInfoLess.less +18 -19
  40. package/src/components/JfbBaseCardInfoEntry/Attr.js +16 -11
  41. package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntryLess.less +18 -19
  42. package/src/components/JfbBaseCardMerge/Attr.js +21 -8
  43. package/src/components/JfbBaseCardMerge/JfbBaseCardMerge.vue +15 -30
  44. package/src/components/JfbBaseCardMerge/JfbBaseCardMergeLess.less +18 -19
  45. package/src/components/JfbBaseCardMergeEntry/Attr.js +20 -6
  46. package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntry.vue +28 -25
  47. package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntryLess.less +18 -19
  48. package/src/components/JfbBaseCardShift/Attr.js +18 -4
  49. package/src/components/JfbBaseCardShift/JfbBaseCardShift.vue +26 -11
  50. package/src/components/JfbBaseCardShift/JfbBaseCardShiftLess.less +18 -19
  51. package/src/components/JfbBaseCardShift/Mock.js +21 -0
  52. package/src/components/JfbBaseCardShiftEntry/Attr.js +34 -26
  53. package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntry.vue +294 -257
  54. package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntryLess.less +18 -19
  55. package/src/components/JfbBaseCardShiftEntry/Mock.js +2 -1
  56. package/src/components/JfbBaseCardSweepInfo/Attr.js +5 -3
  57. package/src/components/JfbBaseCardSweepInfo/JfbBaseCardSweepInfoLess.less +18 -19
  58. package/src/components/JfbBaseCardV2/Attr.js +21 -17
  59. package/src/components/JfbBaseCardV2/JfbBaseCardV2.vue +3 -5
  60. package/src/components/JfbBaseCardV2/JfbBaseCardV2Less.less +18 -19
  61. package/src/components/JfbBaseCardV3/Attr.js +18 -14
  62. package/src/components/JfbBaseCardV3/JfbBaseCardV3.vue +1 -1
  63. package/src/components/JfbBaseCardV3/JfbBaseCardV3Less.less +18 -19
  64. package/src/components/JfbBaseCity/Attr.js +2 -4
  65. package/src/components/JfbBaseCity/JfbBaseCityLess.less +18 -19
  66. package/src/components/JfbBaseClear/Attr.js +17 -0
  67. package/src/components/JfbBaseClear/JfbBaseClear.vue +9 -9
  68. package/src/components/JfbBaseClear/JfbBaseClearLess.less +18 -19
  69. package/src/components/JfbBaseClear/JfbBaseClearMixin.js +12 -0
  70. package/src/components/JfbBaseConDialog/Api.js +2 -2
  71. package/src/components/JfbBaseConDialog/Attr.js +23 -14
  72. package/src/components/JfbBaseConDialog/JfbBaseConDialog.vue +63 -35
  73. package/src/components/JfbBaseConDialog/JfbBaseConDialogLess.less +18 -19
  74. package/src/components/JfbBaseConDialog/Mock.js +20 -1
  75. package/src/components/JfbBaseConDialog/XdCouCardBind.vue +15 -9
  76. package/src/components/JfbBaseConList/Api.js +1 -1
  77. package/src/components/JfbBaseConList/Attr.js +149 -224
  78. package/src/components/JfbBaseConList/JfbBaseConList.vue +150 -133
  79. package/src/components/JfbBaseConList/JfbBaseConListLess.less +18 -19
  80. package/src/components/JfbBaseConPhone/JfbBaseConPhoneLess.less +18 -19
  81. package/src/components/JfbBaseEntry/Attr.js +33 -21
  82. package/src/components/JfbBaseEntry/JfbBaseEntry.vue +34 -23
  83. package/src/components/JfbBaseEntry/JfbBaseEntryLess.less +18 -19
  84. package/src/components/JfbBaseExpressDetail/JfbBaseExpressDetailLess.less +18 -19
  85. package/src/components/JfbBaseFastLink/Api.js +1 -54
  86. package/src/components/JfbBaseFastLink/Attr.js +168 -116
  87. package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +12 -16
  88. package/src/components/JfbBaseFastLink/JfbBaseFastLinkLess.less +18 -19
  89. package/src/components/JfbBaseFooter/Attr.js +28 -22
  90. package/src/components/JfbBaseFooter/JfbBaseFooter.vue +19 -15
  91. package/src/components/JfbBaseFooter/JfbBaseFooterLess.less +18 -19
  92. package/src/components/JfbBaseHeader/Attr.js +89 -91
  93. package/src/components/JfbBaseHeader/JfbBaseHeader.vue +28 -29
  94. package/src/components/JfbBaseHeader/JfbBaseHeaderLess.less +18 -19
  95. package/src/components/JfbBaseLogin/Api.js +1 -1
  96. package/src/components/JfbBaseLogin/Attr.js +111 -88
  97. package/src/components/JfbBaseLogin/JfbBaseLogin.vue +4 -5
  98. package/src/components/JfbBaseLogin/JfbBaseLoginLess.less +18 -19
  99. package/src/components/JfbBaseLoginForgetPwd/Attr.js +52 -45
  100. package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwd.vue +14 -14
  101. package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwdLess.less +18 -19
  102. package/src/components/JfbBaseLoginSetPwd/Attr.js +6 -4
  103. package/src/components/JfbBaseLoginSetPwd/JfbBaseLoginSetPwdLess.less +18 -19
  104. package/src/components/JfbBaseMapOverlay/JfbBaseMapOverlayLess.less +18 -19
  105. package/src/components/JfbBaseMapSearch/Attr.js +0 -15
  106. package/src/components/JfbBaseMapSearch/JfbBaseMapSearch.vue +1 -25
  107. package/src/components/JfbBaseMapSearch/JfbBaseMapSearchLess.less +18 -19
  108. package/src/components/JfbBaseMergeUserCard/Attr.js +4 -3
  109. package/src/components/JfbBaseMergeUserCard/JfbBaseMergeUserCardLess.less +18 -19
  110. package/src/components/JfbBaseMultipleExpress/Attr.js +4 -3
  111. package/src/components/JfbBaseMultipleExpress/JfbBaseMultipleExpressLess.less +18 -19
  112. package/src/components/JfbBaseMy/JfbBaseMyLess.less +18 -19
  113. package/src/components/JfbBaseMySetting/Attr.js +1 -1
  114. package/src/components/JfbBaseMySetting/JfbBaseMySettingLess.less +18 -19
  115. package/src/components/JfbBaseNotice/Attr.js +109 -58
  116. package/src/components/JfbBaseNotice/JfbBaseNotice.vue +81 -54
  117. package/src/components/JfbBaseNotice/JfbBaseNoticeLess.less +18 -19
  118. package/src/components/JfbBaseNoticeBottom/JfbBaseNoticeBottomLess.less +18 -19
  119. package/src/components/JfbBaseNoticeTop/JfbBaseNoticeTopLess.less +18 -19
  120. package/src/components/JfbBaseOrderDetail/Attr.js +210 -193
  121. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +14 -7
  122. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetailLess.less +18 -19
  123. package/src/components/JfbBaseOrderList/Attr.js +56 -44
  124. package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +43 -8
  125. package/src/components/JfbBaseOrderList/JfbBaseOrderListLess.less +18 -19
  126. package/src/components/JfbBasePay/Attr.js +2 -13
  127. package/src/components/JfbBasePay/JfbBasePay.vue +7 -6
  128. package/src/components/JfbBasePay/JfbBasePayLess.less +18 -19
  129. package/src/components/JfbBasePay/Mock.js +2 -1
  130. package/src/components/JfbBasePhoneCollect/Attr.js +27 -2
  131. package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +1 -1
  132. package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollectLess.less +18 -19
  133. package/src/components/JfbBasePhoneLogin/Attr.js +27 -2
  134. package/src/components/JfbBasePhoneLogin/JfbBasePhoneLoginLess.less +18 -19
  135. package/src/components/JfbBasePoster/Attr.js +103 -83
  136. package/src/components/JfbBasePoster/JfbBasePoster.vue +134 -141
  137. package/src/components/JfbBasePoster/JfbBasePosterLess.less +18 -19
  138. package/src/components/JfbBasePosterBigSmall/Attr.js +93 -76
  139. package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmall.vue +3 -7
  140. package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmallLess.less +18 -19
  141. package/src/components/JfbBasePosterBigSmall/getWidthHeight.js +2 -2
  142. package/src/components/JfbBasePosterEntry/Attr.js +47 -34
  143. package/src/components/JfbBasePosterEntry/JfbBasePosterEntry.vue +44 -49
  144. package/src/components/JfbBasePosterEntry/JfbBasePosterEntryLess.less +18 -19
  145. package/src/components/JfbBasePosterType/Attr.js +82 -48
  146. package/src/components/JfbBasePosterType/FourScreen.vue +8 -2
  147. package/src/components/JfbBasePosterType/JfbBasePosterType.vue +36 -59
  148. package/src/components/JfbBasePosterType/JfbBasePosterTypeLess.less +18 -19
  149. package/src/components/JfbBaseRecharge/Attr.js +35 -23
  150. package/src/components/JfbBaseRecharge/JfbBaseRecharge.vue +54 -8
  151. package/src/components/JfbBaseRecharge/JfbBaseRechargeLess.less +18 -19
  152. package/src/components/JfbBaseRechargeOrder/Attr.js +32 -22
  153. package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrder.vue +12 -7
  154. package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrderLess.less +18 -19
  155. package/src/components/JfbBaseRechargeOrderDetail/JfbBaseRechargeOrderDetailLess.less +18 -19
  156. package/src/components/JfbBaseRechargeSuccess/Attr.js +10 -8
  157. package/src/components/JfbBaseRechargeSuccess/JfbBaseRechargeSuccessLess.less +18 -19
  158. package/src/components/JfbBaseSearch/Attr.js +6 -148
  159. package/src/components/JfbBaseSearch/JfbBaseSearch.vue +8 -37
  160. package/src/components/JfbBaseSearch/JfbBaseSearchLess.less +18 -19
  161. package/src/components/JfbBaseSetPwd/Attr.js +6 -147
  162. package/src/components/JfbBaseSetPwd/JfbBaseSetPwdLess.less +18 -19
  163. package/src/components/JfbBaseSuccess/Attr.js +89 -19
  164. package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +48 -26
  165. package/src/components/JfbBaseSuccess/JfbBaseSuccessLess.less +18 -19
  166. package/src/components/JfbBaseSuccess/Mock.js +8 -0
  167. package/src/components/JfbBaseTestApi/JfbBaseTestApi.vue +9 -9
  168. package/src/components/JfbBaseTestApi/JfbBaseTestApiLess.less +18 -19
  169. package/src/components/JfbBaseTestBody/JfbBaseTestBodyLess.less +18 -19
  170. package/src/components/JfbBaseTestBottom/JfbBaseTestBottomLess.less +18 -19
  171. package/src/components/JfbBaseTestNotice/JfbBaseTestNoticeLess.less +18 -19
  172. package/src/components/JfbBaseTestTop/JfbBaseTestTopLess.less +18 -19
  173. package/src/components/JfbBaseUserCenter/Attr.js +72 -53
  174. package/src/components/JfbBaseUserCenter/JfbBaseUserCenter.vue +40 -27
  175. package/src/components/JfbBaseUserCenter/JfbBaseUserCenterLess.less +18 -19
  176. package/src/components/JfbBaseUserInfo/Attr.js +54 -45
  177. package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +21 -21
  178. package/src/components/JfbBaseUserInfo/JfbBaseUserInfoLess.less +18 -19
  179. package/src/components/JfbBaseUserOrder/Attr.js +119 -94
  180. package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +21 -7
  181. package/src/components/JfbBaseUserOrder/JfbBaseUserOrderLess.less +18 -19
  182. package/src/components/JfbBaseVideo/Attr.js +72 -19
  183. package/src/components/JfbBaseVideo/JfbBaseVideo.vue +69 -28
  184. package/src/components/JfbBaseVideo/JfbBaseVideoLess.less +18 -19
  185. package/src/components/JfbBaseVideo/XdVideo.vue +6 -44
  186. package/src/components/JfbBaseWallet/Attr.js +27 -19
  187. package/src/components/JfbBaseWallet/JfbBaseWalletLess.less +18 -19
  188. package/src/components/JfbBaseWalletDetail/Attr.js +2 -6
  189. package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetailLess.less +18 -19
  190. package/src/components/JfbBaseWalletEffective/JfbBaseWalletEffectiveLess.less +18 -19
  191. package/src/components/JfbBaseWalletIndex/Attr.js +3 -1
  192. package/src/components/JfbBaseWalletIndex/JfbBaseWalletIndexLess.less +18 -19
  193. package/src/components/JfbBaseWalletItem/Attr.js +3 -1
  194. package/src/components/JfbBaseWalletItem/JfbBaseWalletItemLess.less +18 -19
  195. package/src/components/JfbBaseWebview/JfbBaseWebviewLess.less +18 -19
  196. package/src/components/JfbBaseWxAuthorize/Api.js +3 -3
  197. package/src/components/JfbBaseWxAuthorize/Attr.js +31 -3
  198. package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorize.vue +34 -28
  199. package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorizeLess.less +18 -19
  200. package/src/components/JfbBaseWxAuthorizeError/Attr.js +21 -17
  201. package/src/components/JfbBaseWxAuthorizeError/JfbBaseWxAuthorizeError.vue +4 -4
  202. package/src/components/JfbBaseWxAuthorizeError/JfbBaseWxAuthorizeErrorLess.less +18 -19
  203. package/src/components/JfbBaseLine/Attr.js +0 -59
  204. package/src/components/JfbBaseLine/JfbBaseLine.vue +0 -105
  205. package/src/components/JfbBaseLine/JfbBaseLineLess.less +0 -80
  206. package/src/components/JfbBaseLine/JfbBaseLineMixin.js +0 -30
  207. package/src/components/JfbBasePosterType/Screen.vue +0 -284
  208. package/src/components/JfbBaseSearch/Api.js +0 -60
  209. package/src/components/JfbBaseSearch/Mock.js +0 -5
@@ -6,7 +6,7 @@
6
6
  */
7
7
  export default {
8
8
  style: [],
9
- content: (data) => {
9
+ content: (data={}) => {
10
10
  if (!data.style) data.style = '1';
11
11
  const checkNotice = ()=>{
12
12
  let temp = false;
@@ -21,13 +21,13 @@ export default {
21
21
  const checkScroll = ()=>{
22
22
  return data.style !== '2'
23
23
  }
24
-
25
24
  return [
26
25
  {
27
26
  label: '内容配置:',
28
27
  ele: 'xd-site-news',
29
28
  valueKey: 'notice',
30
29
  value: data.notice || null,
30
+ groupKey:'content',
31
31
  className: 'input70',
32
32
  setting: {
33
33
  config: {
@@ -47,7 +47,7 @@ export default {
47
47
  }
48
48
 
49
49
  //获取返回参数(场景类型名称为必填)
50
- let loading = XdBus.getParentApi('loading')({});
50
+ let loading = { close(){}}
51
51
 
52
52
  //获取显示内容
53
53
  if (action === 'screen') {
@@ -91,6 +91,7 @@ export default {
91
91
 
92
92
  //使用内容分类
93
93
  if (action === 'cmsPublishEditxContent') {
94
+ loading = XdBus.getParentApi('loading')({});
94
95
  XdBus.getParentApi('cmsPublishEditxContent')(data.params)
95
96
  .then(res => {
96
97
  console.log('cmsPublishEditxContent', res)
@@ -105,6 +106,7 @@ export default {
105
106
 
106
107
  //位置列表
107
108
  if (action === 'getListPostion') {
109
+ loading = XdBus.getParentApi('loading')({});
108
110
  XdBus.getParentApi('getListNewsPosition')(data.params)
109
111
  .then(res => {
110
112
  loading.close();
@@ -118,6 +120,7 @@ export default {
118
120
 
119
121
  //位置创建
120
122
  if (action === 'addPostion') {
123
+ loading = XdBus.getParentApi('loading')({});
121
124
  XdBus.getParentApi('addNewsPosition')(data.params)
122
125
  .then(res => {
123
126
  loading.close();
@@ -132,6 +135,7 @@ export default {
132
135
 
133
136
  //位置编辑
134
137
  if (action === 'editPostion') {
138
+ loading = XdBus.getParentApi('loading')({});
135
139
  XdBus.getParentApi('updateNewsPosition')(data.params)
136
140
  .then(res => {
137
141
  loading.close();
@@ -146,6 +150,7 @@ export default {
146
150
 
147
151
  //位置删除
148
152
  if (action === 'deleltePostion') {
153
+ loading = XdBus.getParentApi('loading')({});
149
154
  XdBus.getParentApi('deleteNewsPosition')(data.params)
150
155
  .then(res => {
151
156
  loading.close();
@@ -160,6 +165,7 @@ export default {
160
165
 
161
166
  //获取广告位内容列表
162
167
  if (action === 'getListContent') {
168
+ loading = XdBus.getParentApi('loading')({});
163
169
  XdBus.getParentApi('getListNewsContent')(data.params)
164
170
  .then(res => {
165
171
  loading.close();
@@ -173,6 +179,7 @@ export default {
173
179
 
174
180
  //广告内容创建
175
181
  if (action === 'addContent') {
182
+ loading = XdBus.getParentApi('loading')({});
176
183
  XdBus.getParentApi('addNewsContent')(data.params)
177
184
  .then(res => {
178
185
  loading.close();
@@ -187,6 +194,7 @@ export default {
187
194
 
188
195
  //广告内容编辑
189
196
  if (action === 'editContent') {
197
+ loading = XdBus.getParentApi('loading')({});
190
198
  XdBus.getParentApi('updateNewsContent')(data.params)
191
199
  .then(res => {
192
200
  loading.close();
@@ -201,6 +209,7 @@ export default {
201
209
 
202
210
  //广告内容删除
203
211
  if (action === 'deleteContent') {
212
+ loading = XdBus.getParentApi('loading')({});
204
213
  XdBus.getParentApi('deleteNewsContent')(data.params)
205
214
  .then(res => {
206
215
  loading.close();
@@ -215,6 +224,7 @@ export default {
215
224
 
216
225
  //内容发布
217
226
  if (action === 'publish') {
227
+ loading = XdBus.getParentApi('loading')({});
218
228
  console.log('publish', data.params)
219
229
  XdBus.getParentApi('cmsPublishContent')(data.params)
220
230
  .then(res => {
@@ -229,6 +239,7 @@ export default {
229
239
 
230
240
  //通知页面进行刷新
231
241
  if (action === 'update') {
242
+ loading = XdBus.getParentApi('loading')({});
232
243
  XdBus.getParentApi('getXdBusUpdateView')('onUpdateView', {});
233
244
  loading.close()
234
245
  }
@@ -244,25 +255,48 @@ export default {
244
255
  ele: 'xd-radio',
245
256
  valueKey: 'style',
246
257
  value: data['style'] || '1',
258
+ groupKey:'content',
247
259
  list: [
248
260
  {"label": "静态显示", "value": '1'},
249
261
  {"label": "滚动显示", "value": '2'},
250
262
  {"label": "弹窗显示", "value": '3'},
263
+ ],
264
+ inline:false,
265
+ notice:'预览模式点击使用“<span style="color:red">弹窗显示</span>”会重新触发页面刷新,可点击弹出遮罩层进行关闭功能'
266
+ },
267
+ {
268
+ label: '是否隐藏弹框(仅预览模式生效):',
269
+ ele: 'xd-radio',
270
+ valueKey: 'is_hide_dailog',
271
+ groupKey:'content',
272
+ value: data['is_hide_dailog'] || 'N',
273
+ placeholder: '请选择是否隐藏弹框',
274
+ className: 'input60',
275
+ list: [
276
+ { label: '是', value: 'Y' },
277
+ { label: '否', value: 'N' },
251
278
  ]
252
279
  },
253
-
254
- checkNotice() && checkPop() && checkScroll() && data.style === '1' && {
280
+ {
281
+ ele: 'title',
282
+ label: '静态显示',
283
+ size: 'small',
284
+ groupKey:'style',
285
+ },
286
+ data.style === '1' && {
255
287
  label: '是否显示标题:',
256
288
  ele: 'xd-switch',
257
289
  valueKey: 'isTitle',
258
290
  value: data['isTitle'],
291
+ groupKey:'style',
259
292
  list: ['否', '是'],
260
293
  backValueType: 2,
261
294
  },
262
- checkNotice() && checkPop() && checkScroll() && data.style === '1' && data['isTitle'] && {
295
+ data.style === '1' && data['isTitle'] && {
263
296
  label: '标题对其方式:',
264
297
  ele: 'xd-select-list',
265
298
  valueKey: 'textAlign',
299
+ groupKey:'style',
266
300
  className: 'input80',
267
301
  value: data['textAlign'] || '',
268
302
  list: [
@@ -271,29 +305,12 @@ export default {
271
305
  {"label": "右", "value": 'right'},
272
306
  ]
273
307
  },
274
- checkNotice() && checkPop() && checkScroll() && {
275
- label: '内容背景颜色:',
276
- ele: 'xd-color',
277
- valueKey: 'bgc',
278
- value: data.bgc || '',
279
- placeholder: '请选择内容背景颜色',
280
- classNmae: 'input80',
281
- },
282
- checkNotice() && checkPop() && checkScroll() && {
283
- label: '内文字颜色:',
284
- ele: 'xd-color',
285
- valueKey: 'textColor',
286
- value: data.textColor || '',
287
- placeholder: '请选择内文字颜色',
288
- classNmae: 'input80',
289
- },
290
-
291
-
292
- checkNotice() && checkPop() && checkScroll() && data.style === '1' && {
308
+ data.style === '1' && {
293
309
  label: '内容圆角设置:',
294
310
  ele: 'xd-site-select-list',
295
311
  valueKey: 'radius',
296
312
  value: data['radius'],
313
+ groupKey:'style',
297
314
  placeholder: '请选择内容圆角设置',
298
315
  multiple: false,
299
316
  className: 'input80',
@@ -307,11 +324,30 @@ export default {
307
324
  });
308
325
  },
309
326
  },
310
- checkNotice() && checkPop() && checkScroll() && {
327
+ {
328
+ label: '内容背景颜色:',
329
+ ele: 'xd-color',
330
+ valueKey: 'bgc',
331
+ groupKey:'style',
332
+ value: data.bgc || '',
333
+ placeholder: '请选择内容背景颜色',
334
+ classNmae: 'input80',
335
+ },
336
+ {
337
+ label: '内文字颜色:',
338
+ ele: 'xd-color',
339
+ groupKey:'style',
340
+ valueKey: 'textColor',
341
+ value: data.textColor || '',
342
+ placeholder: '请选择内文字颜色',
343
+ classNmae: 'input80',
344
+ },
345
+ {
311
346
  label: '内容文字大小:',
312
347
  ele: 'xd-site-select-list',
313
348
  valueKey: 'fontSize',
314
349
  value: data['fontSize'],
350
+ groupKey:'style',
315
351
  placeholder: '请选择内容文字大小',
316
352
  multiple: false,
317
353
  className: 'input80',
@@ -325,45 +361,42 @@ export default {
325
361
  });
326
362
  },
327
363
  },
328
- checkNotice() && checkPop() && checkScroll() && {
329
- label: '内容边距设置:',
330
- ele: 'xd-margin-padding',
331
- valueKey: 'margin',
332
- value: data.margin || null,
333
- disabled: false,
334
- setting: {
335
- type: 'margin',
336
- },
337
- placeholder: '请设置内容边距设置',
338
- inline: false,
339
- notice: '内容边距设置,<span style="color: red">单位:像素</span>。默认值:0像素',
340
- },
341
- checkNotice() && checkPop() && checkScroll() && {
364
+ {
342
365
  label: '内容填充设置:',
343
366
  ele: 'xd-margin-padding',
344
367
  valueKey: 'padding',
368
+ groupKey:'style',
345
369
  value: data.padding || null,
346
- disabled: false,
347
370
  setting: {
348
371
  type: 'padding',
349
372
  },
350
373
  placeholder: '请内容填充设置',
351
374
  inline: false,
352
- notice: '内容填充设置,<span style="color: red">单位:像素</span>。默认值:0像素',
375
+ notice: '内容填充设置,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
353
376
  },
354
- checkNotice() && !checkPop() && checkScroll() && {
355
- label: '弹窗间隔:',
356
- ele: 'el-input',
357
- type: 'text',
358
- valueKey: 'time',
359
- value: data.time || '',
360
- placeholder: '请输入弹窗间隔,默认值:3小时',
361
- className: 'input80',
362
- unit: '小时'
377
+ {
378
+ label: '边距设置:',
379
+ ele: 'xd-margin-padding',
380
+ groupKey:'style',
381
+ valueKey: 'margin',
382
+ value: data.margin || null,
383
+ setting: {
384
+ type: 'margin',
385
+ },
386
+ placeholder: '请设置内容边距设置',
387
+ inline: false,
388
+ notice: '内容边距设置,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
363
389
  },
364
- checkNotice() && checkPop() && !checkScroll() && {
390
+ {
391
+ ele: 'title',
392
+ label: '滚动显示',
393
+ size: 'small',
394
+ groupKey:'style',
395
+ },
396
+ {
365
397
  label: '滚动显示条数:',
366
398
  ele: 'el-input',
399
+ groupKey:'style',
367
400
  type: 'number',
368
401
  valueKey: 'num',
369
402
  value: data.num,
@@ -371,10 +404,11 @@ export default {
371
404
  className: 'input80',
372
405
  unit: '条'
373
406
  },
374
- checkNotice() && checkPop() && !checkScroll() && {
407
+ {
375
408
  label: '滚动速度值:',
376
409
  ele: 'el-input',
377
410
  type: 'number',
411
+ groupKey:'style',
378
412
  valueKey: 'speed',
379
413
  value: data.speed,
380
414
  placeholder: '请输入滚动速度值,默认:20',
@@ -382,12 +416,12 @@ export default {
382
416
  inline: false,
383
417
  notice: '滚动速度值,建议取值:20-60, 值越大越快',
384
418
  },
385
- checkNotice() && checkPop() && !checkScroll() && {
386
- label: '内容边距设置:',
419
+ {
420
+ label: '边距设置:',
387
421
  ele: 'xd-margin-padding',
388
- valueKey: 'margin',
389
- value: data.margin || null,
390
- disabled: false,
422
+ groupKey:'style',
423
+ valueKey: 'scrollMargin',
424
+ value: data.scrollMargin || null,
391
425
  setting: {
392
426
  type: 'margin',
393
427
  },
@@ -395,6 +429,23 @@ export default {
395
429
  inline: false,
396
430
  notice: '内容边距设置,<span style="color: red">单位:像素</span>。默认值:0像素',
397
431
  },
432
+ {
433
+ ele: 'title',
434
+ label: '弹窗显示',
435
+ size: 'small',
436
+ groupKey:'style',
437
+ },
438
+ {
439
+ label: '弹窗间隔:',
440
+ ele: 'el-input',
441
+ type: 'text',
442
+ groupKey:'style',
443
+ valueKey: 'time',
444
+ value: data.time || '',
445
+ className: 'input80',
446
+ inline: false,
447
+ notice: '弹窗间隔,单位:小时。默认值:<span style="color: red">3</span>小时',
448
+ },
398
449
  ].filter(i=>i)
399
450
  },
400
451
  advanced: [
@@ -15,12 +15,9 @@
15
15
  <!-- #endif -->
16
16
  <view class="jfb-base-notice__body">
17
17
  <view class="jfb-base-notice__body-line"></view>
18
- <view :style="{margin: marginUi}">
18
+ <view>
19
19
  <template v-if="style === '3' && isPreview">
20
- <view
21
- class="jfb-base-notice__body-pop"
22
- :style="{backgroundColor:backgroundColor, color:warningColor}"
23
- >弹窗模式方便编辑(占位),在线上此模块不显</view>
20
+ <view class="jfb-base-notice__body-pop" :style="{backgroundColor:backgroundColor, color:warningColor}">弹窗模式方便编辑(占位),在线上此模块不显</view>
24
21
  </template>
25
22
  <template v-if="style === '2'">
26
23
  <template v-if="contentList.length === 0 && isPreview">
@@ -31,7 +28,8 @@
31
28
  class="upAndDown"
32
29
  :style="{
33
30
  backgroundColor:backgroundColor,
34
- color:warningColor
31
+ color:warningColor,
32
+ margin:scrollMarginUi,
35
33
  }"
36
34
  >
37
35
  <view>
@@ -77,36 +75,37 @@
77
75
  >接口无数返回,请检查是否配置成功!</view>
78
76
  </template>
79
77
  <template v-else>
80
- <view
81
- class="jfb-base-notice__body-title"
82
- :style="{
83
- fontSize: titleFontSize + 'rpx',
84
- background: bgc,
85
- color:textColor,
86
- borderRadius: titleRadius,
87
- padding: titlePadding,
88
- paddingBottom:0,
89
- borderBottomColor: borderTitleColor,
90
- textAlign: textAlign
91
- }"
92
- v-if="isTitle"
93
- >{{title}}</view>
94
- <view
95
- class="jfb-base-notice__body-content"
96
- :style="{
97
- background: bgc,
98
- color:textColor,
99
- borderRadius: contRadius,
100
- padding: paddingUi,
101
- lineHeight: '50rpx'
102
- }"
103
- v-if="content"
104
- >
105
- <xd-content-xss
106
- :key="contentKey"
107
- :html="content"
108
- :font-sizes="fontSize"
109
- ></xd-content-xss>
78
+ <view :style="{margin:marginUi}">
79
+ <view
80
+ class="jfb-base-notice__body-title"
81
+ :style="{
82
+ fontSize: titleFontSize + 'rpx',
83
+ background: bgc,
84
+ color:textColor,
85
+ borderRadius: titleRadius,
86
+ padding: titlePadding,
87
+ borderBottomColor: borderTitleColor,
88
+ textAlign: textAlign,
89
+ }"
90
+ v-if="isTitle"
91
+ >{{title}}</view>
92
+ <view
93
+ class="jfb-base-notice__body-content"
94
+ :style="{
95
+ background: bgc,
96
+ color:textColor,
97
+ borderRadius: contRadius,
98
+ padding: paddingUi,
99
+ lineHeight: '50rpx'
100
+ }"
101
+ v-if="content"
102
+ >
103
+ <xd-content-xss
104
+ :key="contentKey"
105
+ :html="content"
106
+ :font-sizes="fontSize"
107
+ ></xd-content-xss>
108
+ </view>
110
109
  </view>
111
110
  </template>
112
111
  </template>
@@ -209,18 +208,20 @@
209
208
  num: 1, //滚动记录数量
210
209
  timer: false,
211
210
  contentList: [],
211
+ scrollMargin:{},
212
212
 
213
213
  backgroundColor: '',
214
+ is_hide_dailog:'N',
214
215
  }
215
216
  },
216
217
  watch: {
217
- container(value) {
218
+ container(value,oloValue) {
219
+ if(JSON.stringify(value) === JSON.stringify(oloValue)) return;
218
220
  this.init(this.container);
219
221
  if (this.$configProject['isPreview']) this.onJfbLoad()
220
222
  },
221
223
  num(){
222
224
  if (this.$configProject['isPreview']) this.onJfbLoad()
223
-
224
225
  },
225
226
  style() {
226
227
  if(this.$configProject['isPreview']) this.onJfbLoad()
@@ -238,13 +239,35 @@
238
239
  },
239
240
  computed:{
240
241
  marginUi() {
241
- return `${this.margin.top || 0}rpx ${this.margin.right || 0}rpx ${this.margin.bottom || 0}rpx ${this.margin.left || 0}rpx`
242
+ let str = `${this.checkValue(this.margin.top, 20)}rpx`;
243
+ str = `${str} ${this.checkValue(this.margin.right, 20)}rpx`;
244
+ str = `${str} ${this.checkValue(this.margin.bottom, 20)}rpx`;
245
+ str = `${str} ${this.checkValue(this.margin.left, 20)}rpx`;
246
+ return str
242
247
  },
243
248
  paddingUi() {
244
- return `${this.padding.top||8}rpx ${this.padding.right || 10}rpx ${this.padding.bottom || 8}rpx ${this.padding.left || 10}rpx`
249
+ let str = `${this.checkValue(this.padding.top, 20)}rpx`;
250
+ str = `${str} ${this.checkValue(this.padding.right, 20)}rpx`;
251
+ str = `${str} ${this.checkValue(this.padding.bottom, 20)}rpx`;
252
+ str = `${str} ${this.checkValue(this.padding.left, 20)}rpx`;
253
+ return str
254
+ },
255
+
256
+ scrollMarginUi(){
257
+ let str = `${this.checkValue(this.scrollMargin.top, 0)}rpx`;
258
+ str = `${str} ${this.checkValue(this.scrollMargin.right, 0)}rpx`;
259
+ str = `${str} ${this.checkValue(this.scrollMargin.bottom, 0)}rpx`;
260
+ str = `${str} ${this.checkValue(this.scrollMargin.left, 0)}rpx`;
261
+ return str
245
262
  },
263
+
264
+
246
265
  titlePadding() {
247
- return `${this.padding.top*(3/5)}rpx ${this.padding.right || 10}rpx ${this.padding.bottom * (3 / 5)}rpx ${this.padding.left || 10}rpx`
266
+ let str = `${this.checkValue(this.padding.top, 20)}rpx`;
267
+ str = `${str} ${this.checkValue(this.padding.right, 20)}rpx`;
268
+ str = `${str} ${this.checkValue(this.padding.bottom, 20)}rpx`;
269
+ str = `${str} ${this.checkValue(this.padding.left, 20)}rpx`;
270
+ return str
248
271
  },
249
272
  contRadius(){
250
273
  if(this.isTitle) return `0rpx 0rpx ${this.radius}rpx ${this.radius}rpx`;
@@ -256,7 +279,14 @@
256
279
 
257
280
  getScrollType(){
258
281
  return this.num > 1
259
- }
282
+ },
283
+
284
+ is_hide_dailog(value){
285
+ if(value === 'N') {
286
+ storage.remove(this.containerId);
287
+ this.onJfbLoad();
288
+ }
289
+ },
260
290
 
261
291
  },
262
292
  created() {
@@ -270,7 +300,6 @@
270
300
  this.showUp = type;
271
301
  },
272
302
 
273
-
274
303
  /**
275
304
  * @description 监听事件变化
276
305
  * @param container {object} 业务组件对象自己
@@ -285,6 +314,7 @@
285
314
  this.borderTitleColor = color(this.bgc).lighten(.15).hex();
286
315
  this.margin = getContainerPropsValue(container, 'content.margin', {top: 0, left: 0, bottom: 0, right: 0});
287
316
  this.padding = getContainerPropsValue(container, 'content.padding', {top: 8, left: 10, bottom: 8, right: 10});
317
+ this.scrollMargin = getContainerPropsValue(container, 'content.scrollMargin', {});
288
318
  this.radius = getContainerPropsValue(container, 'content.radius', 0);
289
319
  this.fontSize = Number(getContainerPropsValue(container, 'content.fontSize', '20'));
290
320
  if (this.fontSize === 20) this.titleFontSize = 28;
@@ -297,6 +327,7 @@
297
327
  this.speed = Number(getContainerPropsValue(container, 'content.speed', 30));
298
328
  }
299
329
  else this.num = 1;
330
+ this.is_hide_dailog = getContainerPropsValue(container, 'content.is_hide_dailog', 'N');
300
331
  },
301
332
 
302
333
  handlePop(){
@@ -322,8 +353,6 @@
322
353
  },
323
354
  })
324
355
  .then(res => {
325
- //res = {"list":[{"content_id":"YSjVvl2X6f5qYW5G7NNNr","category_id":"KNCYuDPWmmb4jUaBEOvbz","partner_id":0,"site_id":"","title":"东北地区暴雪影响","content":"<p>尊敬的用户您好!因受东北地区暴雪影响,部分订单暂停发货或包裹运输会有延迟,我们将在预警恢复后尽快安排发货,请您耐心等待,给您带来不便敬请谅解!<\/p>","sort":1,"status":"","start_time":1699200000,"end_time":1699804800,"op_user_id":"","created_time":0,"updated_time":0,"code":"","code_name":""},{"content_id":"YSjVvl2X6f5qYW5G7NNNr1","category_id":"KNCYuDPWmmb4jUaBEOvbz","partner_id":0,"site_id":"","title":"东北地区暴雪影响","content":"<p>尊敬的用户您好!因受东北地区暴雪影响,部分订单暂停发货或包裹运输会有延迟,我们将在预警恢复后尽快安排发货,请您耐心等待,给您带来不便敬请谅解!<\/p>","sort":1,"status":"","start_time":1699200000,"end_time":1699804800,"op_user_id":"","created_time":0,"updated_time":0,"code":"","code_name":""}],"request_id":"2d3b6e0f1cb184c5"};
326
-
327
356
  //弹窗显示
328
357
  if (this.style === '3') {
329
358
  if (res.list.length > 0) {
@@ -358,18 +387,16 @@
358
387
  },
359
388
 
360
389
  onJfbLoad() {
361
- let delay = 500;
362
- if(!this.isPreview) delay = 10;
363
-
364
390
  if(this.timer){
365
391
  clearTimeout(this.timer);
366
392
  this.timer = null
367
393
  }
394
+
368
395
  this.timer = setTimeout(()=>{
369
396
  //弹窗模式
370
397
  if(this.style === '3') {
371
398
  if(this.isPreview) {
372
- this.getContent();
399
+ if(this.is_hide_dailog === 'N') this.getContent();
373
400
  }
374
401
  else {
375
402
  if(!storage.get(this.containerId)) this.getContent()
@@ -380,7 +407,7 @@
380
407
  else {
381
408
  this.getContent()
382
409
  }
383
- }, delay)
410
+ }, 500)
384
411
  },
385
412
 
386
413
  onJfbUpdate(data) {
@@ -404,7 +431,7 @@
404
431
  align-items: center;
405
432
  }
406
433
  &-line {
407
- height: 0px;
434
+ height: 1px;
408
435
  overflow: hidden;
409
436
  width: 100%;
410
437
  }
@@ -446,16 +473,16 @@
446
473
  }
447
474
  }
448
475
  &-pop {
449
- min-height: 30rpx;
476
+ min-height: 60rpx;
450
477
  text-align: center;
451
- line-height: 30rpx;
478
+ line-height: 60rpx;
452
479
  color: #666;
453
480
  font-size: unit(24, rpx);
454
481
  padding:unit(20, rpx);
455
482
  }
456
483
  &-title {
457
484
  border-bottom: 1px solid #fff;
458
- line-height: 2rem;
485
+ line-height: 1.5rem;
459
486
  }
460
487
 
461
488
  &-content {
@@ -13,9 +13,7 @@
13
13
 
14
14
  //start
15
15
  .jfb-base-notice {
16
- border: 1px dashed rgba(0, 0, 0, 0);
17
16
  box-sizing: border-box;
18
- min-height: unit(50, rpx);
19
17
 
20
18
  &__body{
21
19
  position: relative;
@@ -23,21 +21,22 @@
23
21
  z-index: 2
24
22
  }
25
23
 
26
- &.editx {
24
+ &.editx,&.editx:hover {
27
25
  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
- }
26
+ min-height: unit(100, rpx);
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-notice {
75
- &:before {
76
- content: " ";
77
- display: table;
78
- }
74
+ //&:before {
75
+ //content: " ";
76
+ //display: table;
77
+ //}
79
78
  }
80
79
  /**endNotPreview**/