jufubao-base 1.0.130-beta5 → 1.0.131

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 (195) 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 +34 -76
  20. package/src/components/JfbBaseCard/JfbBaseCardLess.less +19 -18
  21. package/src/components/JfbBaseCardBind/JfbBaseCardBindLess.less +19 -18
  22. package/src/components/JfbBaseCardBindV2/Attr.js +4 -5
  23. package/src/components/JfbBaseCardBindV2/JfbBaseCardBindV2Less.less +19 -18
  24. package/src/components/JfbBaseCardDetail/Attr.js +3 -4
  25. package/src/components/JfbBaseCardDetail/JfbBaseCardDetailLess.less +19 -18
  26. package/src/components/JfbBaseCardDetailEntry/Attr.js +8 -10
  27. package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntryLess.less +19 -18
  28. package/src/components/JfbBaseCardDisabled/Attr.js +3 -1
  29. package/src/components/JfbBaseCardDisabled/JfbBaseCardDisabledLess.less +19 -18
  30. package/src/components/JfbBaseCardDisabledEntry/JfbBaseCardDisabledEntryLess.less +19 -18
  31. package/src/components/JfbBaseCardEntry/Attr.js +67 -86
  32. package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +2 -3
  33. package/src/components/JfbBaseCardEntry/JfbBaseCardEntryLess.less +19 -18
  34. package/src/components/JfbBaseCardInfo/Attr.js +16 -22
  35. package/src/components/JfbBaseCardInfo/JfbBaseCardInfoLess.less +19 -18
  36. package/src/components/JfbBaseCardInfoEntry/Attr.js +11 -16
  37. package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntryLess.less +19 -18
  38. package/src/components/JfbBaseCardMerge/Attr.js +8 -21
  39. package/src/components/JfbBaseCardMerge/JfbBaseCardMerge.vue +30 -15
  40. package/src/components/JfbBaseCardMerge/JfbBaseCardMergeLess.less +19 -18
  41. package/src/components/JfbBaseCardMergeEntry/Attr.js +6 -20
  42. package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntry.vue +25 -28
  43. package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntryLess.less +19 -18
  44. package/src/components/JfbBaseCardShift/Attr.js +4 -18
  45. package/src/components/JfbBaseCardShift/JfbBaseCardShift.vue +11 -26
  46. package/src/components/JfbBaseCardShift/JfbBaseCardShiftLess.less +19 -18
  47. package/src/components/JfbBaseCardShiftEntry/Attr.js +26 -34
  48. package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntry.vue +257 -294
  49. package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntryLess.less +19 -18
  50. package/src/components/JfbBaseCardShiftEntry/Mock.js +1 -2
  51. package/src/components/JfbBaseCardSweepInfo/Attr.js +3 -5
  52. package/src/components/JfbBaseCardSweepInfo/JfbBaseCardSweepInfoLess.less +19 -18
  53. package/src/components/JfbBaseCardV2/Attr.js +15 -19
  54. package/src/components/JfbBaseCardV2/JfbBaseCardV2.vue +5 -3
  55. package/src/components/JfbBaseCardV2/JfbBaseCardV2Less.less +19 -18
  56. package/src/components/JfbBaseCardV3/Attr.js +12 -16
  57. package/src/components/JfbBaseCardV3/JfbBaseCardV3.vue +1 -1
  58. package/src/components/JfbBaseCardV3/JfbBaseCardV3Less.less +19 -18
  59. package/src/components/JfbBaseCity/Attr.js +4 -2
  60. package/src/components/JfbBaseCity/JfbBaseCityLess.less +19 -18
  61. package/src/components/JfbBaseClear/JfbBaseClearLess.less +19 -18
  62. package/src/components/JfbBaseClear/JfbBaseClearMixin.js +0 -12
  63. package/src/components/JfbBaseConDialog/Api.js +1 -1
  64. package/src/components/JfbBaseConDialog/Attr.js +20 -30
  65. package/src/components/JfbBaseConDialog/JfbBaseConDialog.vue +26 -45
  66. package/src/components/JfbBaseConDialog/JfbBaseConDialogLess.less +19 -18
  67. package/src/components/JfbBaseConDialog/Mock.js +1 -20
  68. package/src/components/JfbBaseConDialog/XdCouCardBind.vue +9 -15
  69. package/src/components/JfbBaseConList/Attr.js +224 -149
  70. package/src/components/JfbBaseConList/JfbBaseConList.vue +133 -150
  71. package/src/components/JfbBaseConList/JfbBaseConListLess.less +19 -18
  72. package/src/components/JfbBaseConPhone/JfbBaseConPhoneLess.less +19 -18
  73. package/src/components/JfbBaseEntry/Attr.js +21 -33
  74. package/src/components/JfbBaseEntry/JfbBaseEntry.vue +23 -34
  75. package/src/components/JfbBaseEntry/JfbBaseEntryLess.less +19 -18
  76. package/src/components/JfbBaseExpressDetail/JfbBaseExpressDetailLess.less +19 -18
  77. package/src/components/JfbBaseFastLink/Api.js +54 -1
  78. package/src/components/JfbBaseFastLink/Attr.js +116 -168
  79. package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +16 -12
  80. package/src/components/JfbBaseFastLink/JfbBaseFastLinkLess.less +19 -18
  81. package/src/components/JfbBaseFooter/Attr.js +22 -28
  82. package/src/components/JfbBaseFooter/JfbBaseFooter.vue +15 -19
  83. package/src/components/JfbBaseFooter/JfbBaseFooterLess.less +19 -18
  84. package/src/components/JfbBaseHeader/Attr.js +91 -89
  85. package/src/components/JfbBaseHeader/JfbBaseHeader.vue +29 -28
  86. package/src/components/JfbBaseHeader/JfbBaseHeaderLess.less +19 -18
  87. package/src/components/JfbBaseLine/Attr.js +59 -0
  88. package/src/components/JfbBaseLine/JfbBaseLine.vue +105 -0
  89. package/src/components/JfbBaseLine/JfbBaseLineLess.less +80 -0
  90. package/src/components/JfbBaseLine/JfbBaseLineMixin.js +30 -0
  91. package/src/components/JfbBaseLogin/Attr.js +88 -111
  92. package/src/components/JfbBaseLogin/JfbBaseLogin.vue +1 -0
  93. package/src/components/JfbBaseLogin/JfbBaseLoginLess.less +19 -18
  94. package/src/components/JfbBaseLoginForgetPwd/Attr.js +45 -52
  95. package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwd.vue +14 -14
  96. package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwdLess.less +19 -18
  97. package/src/components/JfbBaseLoginSetPwd/Attr.js +4 -6
  98. package/src/components/JfbBaseLoginSetPwd/JfbBaseLoginSetPwdLess.less +19 -18
  99. package/src/components/JfbBaseMapOverlay/JfbBaseMapOverlayLess.less +19 -18
  100. package/src/components/JfbBaseMapSearch/Attr.js +15 -0
  101. package/src/components/JfbBaseMapSearch/JfbBaseMapSearch.vue +25 -1
  102. package/src/components/JfbBaseMapSearch/JfbBaseMapSearchLess.less +19 -18
  103. package/src/components/JfbBaseMergeUserCard/Attr.js +3 -4
  104. package/src/components/JfbBaseMergeUserCard/JfbBaseMergeUserCardLess.less +19 -18
  105. package/src/components/JfbBaseMultipleExpress/Attr.js +3 -4
  106. package/src/components/JfbBaseMultipleExpress/JfbBaseMultipleExpressLess.less +19 -18
  107. package/src/components/JfbBaseMy/JfbBaseMyLess.less +19 -18
  108. package/src/components/JfbBaseMySetting/Attr.js +1 -1
  109. package/src/components/JfbBaseMySetting/JfbBaseMySettingLess.less +19 -18
  110. package/src/components/JfbBaseNotice/Attr.js +56 -97
  111. package/src/components/JfbBaseNotice/JfbBaseNotice.vue +52 -70
  112. package/src/components/JfbBaseNotice/JfbBaseNoticeLess.less +19 -18
  113. package/src/components/JfbBaseNoticeBottom/JfbBaseNoticeBottomLess.less +19 -18
  114. package/src/components/JfbBaseNoticeTop/JfbBaseNoticeTopLess.less +19 -18
  115. package/src/components/JfbBaseOrderDetail/Attr.js +193 -210
  116. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +6 -8
  117. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetailLess.less +19 -18
  118. package/src/components/JfbBaseOrderList/Attr.js +43 -55
  119. package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +3 -5
  120. package/src/components/JfbBaseOrderList/JfbBaseOrderListLess.less +19 -18
  121. package/src/components/JfbBasePay/Attr.js +13 -2
  122. package/src/components/JfbBasePay/JfbBasePay.vue +6 -7
  123. package/src/components/JfbBasePay/JfbBasePayLess.less +19 -18
  124. package/src/components/JfbBasePay/Mock.js +1 -2
  125. package/src/components/JfbBasePhoneCollect/Attr.js +2 -27
  126. package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +1 -1
  127. package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollectLess.less +19 -18
  128. package/src/components/JfbBasePhoneLogin/Attr.js +2 -27
  129. package/src/components/JfbBasePhoneLogin/JfbBasePhoneLoginLess.less +19 -18
  130. package/src/components/JfbBasePoster/Attr.js +83 -103
  131. package/src/components/JfbBasePoster/JfbBasePoster.vue +141 -134
  132. package/src/components/JfbBasePoster/JfbBasePosterLess.less +19 -18
  133. package/src/components/JfbBasePosterBigSmall/Attr.js +76 -93
  134. package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmall.vue +7 -3
  135. package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmallLess.less +19 -18
  136. package/src/components/JfbBasePosterBigSmall/getWidthHeight.js +2 -2
  137. package/src/components/JfbBasePosterEntry/Attr.js +33 -44
  138. package/src/components/JfbBasePosterEntry/JfbBasePosterEntry.vue +49 -44
  139. package/src/components/JfbBasePosterEntry/JfbBasePosterEntryLess.less +19 -18
  140. package/src/components/JfbBasePosterType/Attr.js +48 -82
  141. package/src/components/JfbBasePosterType/FourScreen.vue +2 -8
  142. package/src/components/JfbBasePosterType/JfbBasePosterType.vue +59 -36
  143. package/src/components/JfbBasePosterType/JfbBasePosterTypeLess.less +19 -18
  144. package/src/components/JfbBasePosterType/Screen.vue +284 -0
  145. package/src/components/JfbBaseRecharge/Attr.js +23 -35
  146. package/src/components/JfbBaseRecharge/JfbBaseRecharge.vue +8 -54
  147. package/src/components/JfbBaseRecharge/JfbBaseRechargeLess.less +19 -18
  148. package/src/components/JfbBaseRechargeOrder/Attr.js +22 -32
  149. package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrder.vue +7 -12
  150. package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrderLess.less +19 -18
  151. package/src/components/JfbBaseRechargeOrderDetail/JfbBaseRechargeOrderDetailLess.less +19 -18
  152. package/src/components/JfbBaseRechargeSuccess/Attr.js +8 -10
  153. package/src/components/JfbBaseRechargeSuccess/JfbBaseRechargeSuccessLess.less +19 -18
  154. package/src/components/JfbBaseSearch/Api.js +60 -0
  155. package/src/components/JfbBaseSearch/Attr.js +148 -6
  156. package/src/components/JfbBaseSearch/JfbBaseSearch.vue +37 -8
  157. package/src/components/JfbBaseSearch/JfbBaseSearchLess.less +19 -18
  158. package/src/components/JfbBaseSearch/Mock.js +5 -0
  159. package/src/components/JfbBaseSetPwd/Attr.js +147 -6
  160. package/src/components/JfbBaseSetPwd/JfbBaseSetPwdLess.less +19 -18
  161. package/src/components/JfbBaseSuccess/Attr.js +17 -78
  162. package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +3 -2
  163. package/src/components/JfbBaseSuccess/JfbBaseSuccessLess.less +19 -18
  164. package/src/components/JfbBaseTestApi/JfbBaseTestApiLess.less +19 -18
  165. package/src/components/JfbBaseTestBody/JfbBaseTestBodyLess.less +19 -18
  166. package/src/components/JfbBaseTestBottom/JfbBaseTestBottomLess.less +19 -18
  167. package/src/components/JfbBaseTestNotice/JfbBaseTestNoticeLess.less +19 -18
  168. package/src/components/JfbBaseTestTop/JfbBaseTestTopLess.less +19 -18
  169. package/src/components/JfbBaseUserCenter/Attr.js +53 -72
  170. package/src/components/JfbBaseUserCenter/JfbBaseUserCenter.vue +27 -40
  171. package/src/components/JfbBaseUserCenter/JfbBaseUserCenterLess.less +19 -18
  172. package/src/components/JfbBaseUserInfo/Attr.js +45 -54
  173. package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +21 -21
  174. package/src/components/JfbBaseUserInfo/JfbBaseUserInfoLess.less +19 -18
  175. package/src/components/JfbBaseUserOrder/Attr.js +92 -118
  176. package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +7 -21
  177. package/src/components/JfbBaseUserOrder/JfbBaseUserOrderLess.less +19 -18
  178. package/src/components/JfbBaseVideo/Attr.js +19 -72
  179. package/src/components/JfbBaseVideo/JfbBaseVideo.vue +28 -69
  180. package/src/components/JfbBaseVideo/JfbBaseVideoLess.less +19 -18
  181. package/src/components/JfbBaseVideo/XdVideo.vue +44 -6
  182. package/src/components/JfbBaseWallet/JfbBaseWalletLess.less +19 -18
  183. package/src/components/{JfbBaseClear → JfbBaseWalletDetail}/Attr.js +0 -1
  184. package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetailLess.less +19 -18
  185. package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetailMixin.js +12 -0
  186. package/src/components/JfbBaseWalletEffective/JfbBaseWalletEffectiveLess.less +19 -18
  187. package/src/components/JfbBaseWalletIndex/JfbBaseWalletIndexLess.less +19 -18
  188. package/src/components/JfbBaseWalletItem/JfbBaseWalletItemLess.less +19 -18
  189. package/src/components/JfbBaseWebview/JfbBaseWebviewLess.less +19 -18
  190. package/src/components/JfbBaseWxAuthorize/Attr.js +3 -31
  191. package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorize.vue +26 -32
  192. package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorizeLess.less +19 -18
  193. package/src/components/JfbBaseWxAuthorizeError/Attr.js +17 -21
  194. package/src/components/JfbBaseWxAuthorizeError/JfbBaseWxAuthorizeErrorLess.less +19 -18
  195. package/src/components/JfbBaseCardShift/Mock.js +0 -21
@@ -15,9 +15,12 @@
15
15
  <!-- #endif -->
16
16
  <view class="jfb-base-notice__body">
17
17
  <view class="jfb-base-notice__body-line"></view>
18
- <view>
18
+ <view :style="{margin: marginUi}">
19
19
  <template v-if="style === '3' && isPreview">
20
- <view class="jfb-base-notice__body-pop" :style="{backgroundColor:backgroundColor, color:warningColor}">弹窗模式方便编辑(占位),在线上此模块不显</view>
20
+ <view
21
+ class="jfb-base-notice__body-pop"
22
+ :style="{backgroundColor:backgroundColor, color:warningColor}"
23
+ >弹窗模式方便编辑(占位),在线上此模块不显</view>
21
24
  </template>
22
25
  <template v-if="style === '2'">
23
26
  <template v-if="contentList.length === 0 && isPreview">
@@ -28,8 +31,7 @@
28
31
  class="upAndDown"
29
32
  :style="{
30
33
  backgroundColor:backgroundColor,
31
- color:warningColor,
32
- margin:scrollMarginUi,
34
+ color:warningColor
33
35
  }"
34
36
  >
35
37
  <view>
@@ -75,37 +77,36 @@
75
77
  >接口无数返回,请检查是否配置成功!</view>
76
78
  </template>
77
79
  <template v-else>
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>
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>
109
110
  </view>
110
111
  </template>
111
112
  </template>
@@ -208,19 +209,18 @@
208
209
  num: 1, //滚动记录数量
209
210
  timer: false,
210
211
  contentList: [],
211
- scrollMargin:{},
212
212
 
213
213
  backgroundColor: '',
214
214
  }
215
215
  },
216
216
  watch: {
217
- container(value,oloValue) {
218
- if(JSON.stringify(value) === JSON.stringify(oloValue)) return;
217
+ container(value) {
219
218
  this.init(this.container);
220
219
  if (this.$configProject['isPreview']) this.onJfbLoad()
221
220
  },
222
221
  num(){
223
222
  if (this.$configProject['isPreview']) this.onJfbLoad()
223
+
224
224
  },
225
225
  style() {
226
226
  if(this.$configProject['isPreview']) this.onJfbLoad()
@@ -238,35 +238,13 @@
238
238
  },
239
239
  computed:{
240
240
  marginUi() {
241
- let str = `${this.checkValue(this.margin.top, 20)}rpx`;
242
- str = `${str} ${this.checkValue(this.margin.right, 20)}rpx`;
243
- str = `${str} ${this.checkValue(this.margin.bottom, 20)}rpx`;
244
- str = `${str} ${this.checkValue(this.margin.left, 20)}rpx`;
245
- return str
241
+ return `${this.margin.top || 0}rpx ${this.margin.right || 0}rpx ${this.margin.bottom || 0}rpx ${this.margin.left || 0}rpx`
246
242
  },
247
243
  paddingUi() {
248
- let str = `${this.checkValue(this.padding.top, 20)}rpx`;
249
- str = `${str} ${this.checkValue(this.padding.right, 20)}rpx`;
250
- str = `${str} ${this.checkValue(this.padding.bottom, 20)}rpx`;
251
- str = `${str} ${this.checkValue(this.padding.left, 20)}rpx`;
252
- return str
253
- },
254
-
255
- scrollMarginUi(){
256
- let str = `${this.checkValue(this.scrollMargin.top, 0)}rpx`;
257
- str = `${str} ${this.checkValue(this.scrollMargin.right, 0)}rpx`;
258
- str = `${str} ${this.checkValue(this.scrollMargin.bottom, 0)}rpx`;
259
- str = `${str} ${this.checkValue(this.scrollMargin.left, 0)}rpx`;
260
- return str
244
+ return `${this.padding.top||8}rpx ${this.padding.right || 10}rpx ${this.padding.bottom || 8}rpx ${this.padding.left || 10}rpx`
261
245
  },
262
-
263
-
264
246
  titlePadding() {
265
- let str = `${this.checkValue(this.padding.top, 20)}rpx`;
266
- str = `${str} ${this.checkValue(this.padding.right, 20)}rpx`;
267
- str = `${str} ${this.checkValue(this.padding.bottom, 20)}rpx`;
268
- str = `${str} ${this.checkValue(this.padding.left, 20)}rpx`;
269
- return str
247
+ return `${this.padding.top*(3/5)}rpx ${this.padding.right || 10}rpx ${this.padding.bottom * (3 / 5)}rpx ${this.padding.left || 10}rpx`
270
248
  },
271
249
  contRadius(){
272
250
  if(this.isTitle) return `0rpx 0rpx ${this.radius}rpx ${this.radius}rpx`;
@@ -292,6 +270,7 @@
292
270
  this.showUp = type;
293
271
  },
294
272
 
273
+
295
274
  /**
296
275
  * @description 监听事件变化
297
276
  * @param container {object} 业务组件对象自己
@@ -306,7 +285,6 @@
306
285
  this.borderTitleColor = color(this.bgc).lighten(.15).hex();
307
286
  this.margin = getContainerPropsValue(container, 'content.margin', {top: 0, left: 0, bottom: 0, right: 0});
308
287
  this.padding = getContainerPropsValue(container, 'content.padding', {top: 8, left: 10, bottom: 8, right: 10});
309
- this.scrollMargin = getContainerPropsValue(container, 'content.scrollMargin', {});
310
288
  this.radius = getContainerPropsValue(container, 'content.radius', 0);
311
289
  this.fontSize = Number(getContainerPropsValue(container, 'content.fontSize', '20'));
312
290
  if (this.fontSize === 20) this.titleFontSize = 28;
@@ -344,6 +322,8 @@
344
322
  },
345
323
  })
346
324
  .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
+
347
327
  //弹窗显示
348
328
  if (this.style === '3') {
349
329
  if (res.list.length > 0) {
@@ -378,6 +358,9 @@
378
358
  },
379
359
 
380
360
  onJfbLoad() {
361
+ let delay = 500;
362
+ if(!this.isPreview) delay = 10;
363
+
381
364
  if(this.timer){
382
365
  clearTimeout(this.timer);
383
366
  this.timer = null
@@ -397,7 +380,7 @@
397
380
  else {
398
381
  this.getContent()
399
382
  }
400
- }, 500)
383
+ }, delay)
401
384
  },
402
385
 
403
386
  onJfbUpdate(data) {
@@ -414,7 +397,6 @@
414
397
  @import "./JfbBaseNoticeLess.less";
415
398
 
416
399
  .jfb-base-notice {
417
- min-height: 72rpx!important;
418
400
  &__body{
419
401
  .content-list {
420
402
  display: flex;
@@ -422,7 +404,7 @@
422
404
  align-items: center;
423
405
  }
424
406
  &-line {
425
- height: 1px;
407
+ height: 0px;
426
408
  overflow: hidden;
427
409
  width: 100%;
428
410
  }
@@ -464,16 +446,16 @@
464
446
  }
465
447
  }
466
448
  &-pop {
467
- min-height: 60rpx;
449
+ min-height: 30rpx;
468
450
  text-align: center;
469
- line-height: 60rpx;
451
+ line-height: 30rpx;
470
452
  color: #666;
471
453
  font-size: unit(24, rpx);
472
454
  padding:unit(20, rpx);
473
455
  }
474
456
  &-title {
475
457
  border-bottom: 1px solid #fff;
476
- line-height: 1.5rem;
458
+ line-height: 2rem;
477
459
  }
478
460
 
479
461
  &-content {
@@ -13,8 +13,9 @@
13
13
 
14
14
  //start
15
15
  .jfb-base-notice {
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-notice {
74
- //&:before {
75
- //content: " ";
76
- //display: table;
77
- //}
75
+ &:before {
76
+ content: " ";
77
+ display: table;
78
+ }
78
79
  }
79
80
  /**endNotPreview**/
@@ -13,8 +13,9 @@
13
13
 
14
14
  //start
15
15
  .jfb-base-notice-bottom {
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-notice-bottom {
74
- //&:before {
75
- //content: " ";
76
- //display: table;
77
- //}
75
+ &:before {
76
+ content: " ";
77
+ display: table;
78
+ }
78
79
  }
79
80
  /**endNotPreview**/
@@ -13,8 +13,9 @@
13
13
 
14
14
  //start
15
15
  .jfb-base-notice-top {
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-notice-top {
74
- //&:before {
75
- //content: " ";
76
- //display: table;
77
- //}
75
+ &:before {
76
+ content: " ";
77
+ display: table;
78
+ }
78
79
  }
79
80
  /**endNotPreview**/