jufubao-base 1.0.134-beta9 → 1.0.135

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 +26 -48
  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
@@ -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,20 +209,18 @@
208
209
  num: 1, //滚动记录数量
209
210
  timer: false,
210
211
  contentList: [],
211
- scrollMargin:{},
212
212
 
213
213
  backgroundColor: '',
214
- is_hide_dailog:'N',
215
214
  }
216
215
  },
217
216
  watch: {
218
- container(value,oloValue) {
219
- if(JSON.stringify(value) === JSON.stringify(oloValue)) return;
217
+ container(value) {
220
218
  this.init(this.container);
221
219
  if (this.$configProject['isPreview']) this.onJfbLoad()
222
220
  },
223
221
  num(){
224
222
  if (this.$configProject['isPreview']) this.onJfbLoad()
223
+
225
224
  },
226
225
  style() {
227
226
  if(this.$configProject['isPreview']) this.onJfbLoad()
@@ -239,35 +238,13 @@
239
238
  },
240
239
  computed:{
241
240
  marginUi() {
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
241
+ return `${this.margin.top || 0}rpx ${this.margin.right || 0}rpx ${this.margin.bottom || 0}rpx ${this.margin.left || 0}rpx`
247
242
  },
248
243
  paddingUi() {
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
244
+ return `${this.padding.top||8}rpx ${this.padding.right || 10}rpx ${this.padding.bottom || 8}rpx ${this.padding.left || 10}rpx`
262
245
  },
263
-
264
-
265
246
  titlePadding() {
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
247
+ return `${this.padding.top*(3/5)}rpx ${this.padding.right || 10}rpx ${this.padding.bottom * (3 / 5)}rpx ${this.padding.left || 10}rpx`
271
248
  },
272
249
  contRadius(){
273
250
  if(this.isTitle) return `0rpx 0rpx ${this.radius}rpx ${this.radius}rpx`;
@@ -279,14 +256,7 @@
279
256
 
280
257
  getScrollType(){
281
258
  return this.num > 1
282
- },
283
-
284
- is_hide_dailog(value){
285
- if(value === 'N') {
286
- storage.remove(this.containerId);
287
- this.onJfbLoad();
288
- }
289
- },
259
+ }
290
260
 
291
261
  },
292
262
  created() {
@@ -300,6 +270,7 @@
300
270
  this.showUp = type;
301
271
  },
302
272
 
273
+
303
274
  /**
304
275
  * @description 监听事件变化
305
276
  * @param container {object} 业务组件对象自己
@@ -314,7 +285,6 @@
314
285
  this.borderTitleColor = color(this.bgc).lighten(.15).hex();
315
286
  this.margin = getContainerPropsValue(container, 'content.margin', {top: 0, left: 0, bottom: 0, right: 0});
316
287
  this.padding = getContainerPropsValue(container, 'content.padding', {top: 8, left: 10, bottom: 8, right: 10});
317
- this.scrollMargin = getContainerPropsValue(container, 'content.scrollMargin', {});
318
288
  this.radius = getContainerPropsValue(container, 'content.radius', 0);
319
289
  this.fontSize = Number(getContainerPropsValue(container, 'content.fontSize', '20'));
320
290
  if (this.fontSize === 20) this.titleFontSize = 28;
@@ -327,7 +297,6 @@
327
297
  this.speed = Number(getContainerPropsValue(container, 'content.speed', 30));
328
298
  }
329
299
  else this.num = 1;
330
- this.is_hide_dailog = getContainerPropsValue(container, 'content.is_hide_dailog', 'N');
331
300
  },
332
301
 
333
302
  handlePop(){
@@ -353,6 +322,8 @@
353
322
  },
354
323
  })
355
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
+
356
327
  //弹窗显示
357
328
  if (this.style === '3') {
358
329
  if (res.list.length > 0) {
@@ -387,16 +358,18 @@
387
358
  },
388
359
 
389
360
  onJfbLoad() {
361
+ let delay = 500;
362
+ if(!this.isPreview) delay = 10;
363
+
390
364
  if(this.timer){
391
365
  clearTimeout(this.timer);
392
366
  this.timer = null
393
367
  }
394
-
395
368
  this.timer = setTimeout(()=>{
396
369
  //弹窗模式
397
370
  if(this.style === '3') {
398
371
  if(this.isPreview) {
399
- if(this.is_hide_dailog === 'N') this.getContent();
372
+ this.getContent();
400
373
  }
401
374
  else {
402
375
  if(!storage.get(this.containerId)) this.getContent()
@@ -407,7 +380,7 @@
407
380
  else {
408
381
  this.getContent()
409
382
  }
410
- }, 500)
383
+ }, delay)
411
384
  },
412
385
 
413
386
  onJfbUpdate(data) {
@@ -424,7 +397,6 @@
424
397
  @import "./JfbBaseNoticeLess.less";
425
398
 
426
399
  .jfb-base-notice {
427
- min-height: 72rpx!important;
428
400
  &__body{
429
401
  .content-list {
430
402
  display: flex;
@@ -432,7 +404,7 @@
432
404
  align-items: center;
433
405
  }
434
406
  &-line {
435
- height: 1px;
407
+ height: 0px;
436
408
  overflow: hidden;
437
409
  width: 100%;
438
410
  }
@@ -474,16 +446,16 @@
474
446
  }
475
447
  }
476
448
  &-pop {
477
- min-height: 60rpx;
449
+ min-height: 30rpx;
478
450
  text-align: center;
479
- line-height: 60rpx;
451
+ line-height: 30rpx;
480
452
  color: #666;
481
453
  font-size: unit(24, rpx);
482
454
  padding:unit(20, rpx);
483
455
  }
484
456
  &-title {
485
457
  border-bottom: 1px solid #fff;
486
- line-height: 1.5rem;
458
+ line-height: 2rem;
487
459
  }
488
460
 
489
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**/