jufubao-base 1.0.128 → 1.0.130-beta2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (194) hide show
  1. package/package.json +4 -3
  2. package/src/components/JfbBaseAddress/Attr.js +11 -5
  3. package/src/components/JfbBaseAddress/JfbBaseAddress.vue +3 -3
  4. package/src/components/JfbBaseAddress/JfbBaseAddressLess.less +18 -19
  5. package/src/components/JfbBaseAfterOrderDetail/Attr.js +19 -7
  6. package/src/components/JfbBaseAfterOrderDetail/JfbBaseAfterOrderDetail.vue +6 -4
  7. package/src/components/JfbBaseAfterOrderDetail/JfbBaseAfterOrderDetailLess.less +18 -19
  8. package/src/components/JfbBaseAfterOrderList/Attr.js +25 -16
  9. package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderList.vue +6 -9
  10. package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderListLess.less +18 -19
  11. package/src/components/JfbBaseBack/JfbBaseBackLess.less +18 -19
  12. package/src/components/JfbBaseBackground/Attr.js +9 -8
  13. package/src/components/JfbBaseBackground/JfbBaseBackground.vue +0 -3
  14. package/src/components/JfbBaseBackground/JfbBaseBackgroundLess.less +18 -19
  15. package/src/components/JfbBaseBlock/Attr.js +12 -2
  16. package/src/components/JfbBaseBlock/JfbBaseBlock.vue +1 -8
  17. package/src/components/JfbBaseBlock/JfbBaseBlockLess.less +18 -19
  18. package/src/components/JfbBaseBottomNotice/JfbBaseBottomNoticeLess.less +18 -19
  19. package/src/components/JfbBaseCard/Attr.js +76 -34
  20. package/src/components/JfbBaseCard/JfbBaseCardLess.less +18 -19
  21. package/src/components/JfbBaseCardBind/JfbBaseCardBindLess.less +18 -19
  22. package/src/components/JfbBaseCardBindV2/Attr.js +5 -4
  23. package/src/components/JfbBaseCardBindV2/JfbBaseCardBindV2Less.less +18 -19
  24. package/src/components/JfbBaseCardDetail/Attr.js +4 -3
  25. package/src/components/JfbBaseCardDetail/JfbBaseCardDetailLess.less +18 -19
  26. package/src/components/JfbBaseCardDetailEntry/Attr.js +10 -8
  27. package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntryLess.less +18 -19
  28. package/src/components/JfbBaseCardDisabled/Attr.js +1 -3
  29. package/src/components/JfbBaseCardDisabled/JfbBaseCardDisabledLess.less +18 -19
  30. package/src/components/JfbBaseCardDisabledEntry/JfbBaseCardDisabledEntryLess.less +18 -19
  31. package/src/components/JfbBaseCardEntry/Attr.js +86 -67
  32. package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +3 -2
  33. package/src/components/JfbBaseCardEntry/JfbBaseCardEntryLess.less +18 -19
  34. package/src/components/JfbBaseCardInfo/Attr.js +22 -16
  35. package/src/components/JfbBaseCardInfo/JfbBaseCardInfoLess.less +18 -19
  36. package/src/components/JfbBaseCardInfoEntry/Attr.js +16 -11
  37. package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntryLess.less +18 -19
  38. package/src/components/JfbBaseCardMerge/Attr.js +21 -8
  39. package/src/components/JfbBaseCardMerge/JfbBaseCardMerge.vue +15 -30
  40. package/src/components/JfbBaseCardMerge/JfbBaseCardMergeLess.less +18 -19
  41. package/src/components/JfbBaseCardMergeEntry/Attr.js +20 -6
  42. package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntry.vue +28 -25
  43. package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntryLess.less +18 -19
  44. package/src/components/JfbBaseCardShift/Attr.js +18 -4
  45. package/src/components/JfbBaseCardShift/JfbBaseCardShift.vue +26 -11
  46. package/src/components/JfbBaseCardShift/JfbBaseCardShiftLess.less +18 -19
  47. package/src/components/JfbBaseCardShift/Mock.js +21 -0
  48. package/src/components/JfbBaseCardShiftEntry/Attr.js +34 -26
  49. package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntry.vue +294 -257
  50. package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntryLess.less +18 -19
  51. package/src/components/JfbBaseCardShiftEntry/Mock.js +2 -1
  52. package/src/components/JfbBaseCardSweepInfo/Attr.js +5 -3
  53. package/src/components/JfbBaseCardSweepInfo/JfbBaseCardSweepInfoLess.less +18 -19
  54. package/src/components/JfbBaseCardV2/Attr.js +19 -15
  55. package/src/components/JfbBaseCardV2/JfbBaseCardV2.vue +3 -5
  56. package/src/components/JfbBaseCardV2/JfbBaseCardV2Less.less +18 -19
  57. package/src/components/JfbBaseCardV3/Attr.js +16 -12
  58. package/src/components/JfbBaseCardV3/JfbBaseCardV3.vue +1 -1
  59. package/src/components/JfbBaseCardV3/JfbBaseCardV3Less.less +18 -19
  60. package/src/components/JfbBaseCity/Attr.js +2 -4
  61. package/src/components/JfbBaseCity/JfbBaseCityLess.less +18 -19
  62. package/src/components/{JfbBaseWalletDetail → JfbBaseClear}/Attr.js +1 -0
  63. package/src/components/JfbBaseClear/JfbBaseClearLess.less +18 -19
  64. package/src/components/JfbBaseClear/JfbBaseClearMixin.js +12 -0
  65. package/src/components/JfbBaseConDialog/Api.js +1 -1
  66. package/src/components/JfbBaseConDialog/Attr.js +30 -20
  67. package/src/components/JfbBaseConDialog/JfbBaseConDialog.vue +45 -26
  68. package/src/components/JfbBaseConDialog/JfbBaseConDialogLess.less +18 -19
  69. package/src/components/JfbBaseConDialog/Mock.js +20 -1
  70. package/src/components/JfbBaseConDialog/XdCouCardBind.vue +15 -9
  71. package/src/components/JfbBaseConList/Attr.js +149 -224
  72. package/src/components/JfbBaseConList/JfbBaseConList.vue +150 -133
  73. package/src/components/JfbBaseConList/JfbBaseConListLess.less +18 -19
  74. package/src/components/JfbBaseConPhone/JfbBaseConPhoneLess.less +18 -19
  75. package/src/components/JfbBaseEntry/Attr.js +33 -21
  76. package/src/components/JfbBaseEntry/JfbBaseEntry.vue +34 -23
  77. package/src/components/JfbBaseEntry/JfbBaseEntryLess.less +18 -19
  78. package/src/components/JfbBaseExpressDetail/JfbBaseExpressDetailLess.less +18 -19
  79. package/src/components/JfbBaseFastLink/Api.js +1 -54
  80. package/src/components/JfbBaseFastLink/Attr.js +168 -116
  81. package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +12 -16
  82. package/src/components/JfbBaseFastLink/JfbBaseFastLinkLess.less +18 -19
  83. package/src/components/JfbBaseFooter/Attr.js +28 -22
  84. package/src/components/JfbBaseFooter/JfbBaseFooter.vue +19 -15
  85. package/src/components/JfbBaseFooter/JfbBaseFooterLess.less +18 -19
  86. package/src/components/JfbBaseHeader/Attr.js +89 -91
  87. package/src/components/JfbBaseHeader/JfbBaseHeader.vue +28 -29
  88. package/src/components/JfbBaseHeader/JfbBaseHeaderLess.less +18 -19
  89. package/src/components/JfbBaseLogin/Attr.js +111 -88
  90. package/src/components/JfbBaseLogin/JfbBaseLogin.vue +0 -1
  91. package/src/components/JfbBaseLogin/JfbBaseLoginLess.less +18 -19
  92. package/src/components/JfbBaseLoginForgetPwd/Attr.js +52 -45
  93. package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwd.vue +14 -14
  94. package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwdLess.less +18 -19
  95. package/src/components/JfbBaseLoginSetPwd/Attr.js +6 -4
  96. package/src/components/JfbBaseLoginSetPwd/JfbBaseLoginSetPwdLess.less +18 -19
  97. package/src/components/JfbBaseMapOverlay/JfbBaseMapOverlayLess.less +18 -19
  98. package/src/components/JfbBaseMapSearch/Attr.js +0 -15
  99. package/src/components/JfbBaseMapSearch/JfbBaseMapSearch.vue +1 -25
  100. package/src/components/JfbBaseMapSearch/JfbBaseMapSearchLess.less +18 -19
  101. package/src/components/JfbBaseMergeUserCard/Attr.js +4 -3
  102. package/src/components/JfbBaseMergeUserCard/JfbBaseMergeUserCardLess.less +18 -19
  103. package/src/components/JfbBaseMultipleExpress/Attr.js +4 -3
  104. package/src/components/JfbBaseMultipleExpress/JfbBaseMultipleExpressLess.less +18 -19
  105. package/src/components/JfbBaseMy/JfbBaseMyLess.less +18 -19
  106. package/src/components/JfbBaseMySetting/Attr.js +1 -1
  107. package/src/components/JfbBaseMySetting/JfbBaseMySettingLess.less +18 -19
  108. package/src/components/JfbBaseNotice/Attr.js +97 -56
  109. package/src/components/JfbBaseNotice/JfbBaseNotice.vue +70 -52
  110. package/src/components/JfbBaseNotice/JfbBaseNoticeLess.less +18 -19
  111. package/src/components/JfbBaseNoticeBottom/JfbBaseNoticeBottomLess.less +18 -19
  112. package/src/components/JfbBaseNoticeTop/JfbBaseNoticeTopLess.less +18 -19
  113. package/src/components/JfbBaseOrderDetail/Attr.js +210 -193
  114. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +5 -3
  115. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetailLess.less +18 -19
  116. package/src/components/JfbBaseOrderList/Attr.js +55 -43
  117. package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +10 -5
  118. package/src/components/JfbBaseOrderList/JfbBaseOrderListLess.less +18 -19
  119. package/src/components/JfbBasePay/Attr.js +2 -13
  120. package/src/components/JfbBasePay/JfbBasePay.vue +7 -6
  121. package/src/components/JfbBasePay/JfbBasePayLess.less +18 -19
  122. package/src/components/JfbBasePay/Mock.js +2 -1
  123. package/src/components/JfbBasePhoneCollect/Attr.js +27 -2
  124. package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +1 -1
  125. package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollectLess.less +18 -19
  126. package/src/components/JfbBasePhoneLogin/Attr.js +27 -2
  127. package/src/components/JfbBasePhoneLogin/JfbBasePhoneLoginLess.less +18 -19
  128. package/src/components/JfbBasePoster/Attr.js +103 -83
  129. package/src/components/JfbBasePoster/JfbBasePoster.vue +134 -141
  130. package/src/components/JfbBasePoster/JfbBasePosterLess.less +18 -19
  131. package/src/components/JfbBasePosterBigSmall/Attr.js +93 -76
  132. package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmall.vue +3 -7
  133. package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmallLess.less +18 -19
  134. package/src/components/JfbBasePosterBigSmall/getWidthHeight.js +2 -2
  135. package/src/components/JfbBasePosterEntry/Attr.js +44 -33
  136. package/src/components/JfbBasePosterEntry/JfbBasePosterEntry.vue +44 -49
  137. package/src/components/JfbBasePosterEntry/JfbBasePosterEntryLess.less +18 -19
  138. package/src/components/JfbBasePosterType/Attr.js +82 -48
  139. package/src/components/JfbBasePosterType/FourScreen.vue +39 -34
  140. package/src/components/JfbBasePosterType/JfbBasePosterType.vue +51 -73
  141. package/src/components/JfbBasePosterType/JfbBasePosterTypeLess.less +18 -19
  142. package/src/components/JfbBaseRecharge/Attr.js +35 -23
  143. package/src/components/JfbBaseRecharge/JfbBaseRecharge.vue +54 -8
  144. package/src/components/JfbBaseRecharge/JfbBaseRechargeLess.less +18 -19
  145. package/src/components/JfbBaseRechargeOrder/Attr.js +32 -22
  146. package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrder.vue +12 -7
  147. package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrderLess.less +18 -19
  148. package/src/components/JfbBaseRechargeOrderDetail/JfbBaseRechargeOrderDetailLess.less +18 -19
  149. package/src/components/JfbBaseRechargeSuccess/Attr.js +10 -8
  150. package/src/components/JfbBaseRechargeSuccess/JfbBaseRechargeSuccessLess.less +18 -19
  151. package/src/components/JfbBaseSearch/Attr.js +6 -148
  152. package/src/components/JfbBaseSearch/JfbBaseSearch.vue +8 -37
  153. package/src/components/JfbBaseSearch/JfbBaseSearchLess.less +18 -19
  154. package/src/components/JfbBaseSetPwd/Attr.js +6 -147
  155. package/src/components/JfbBaseSetPwd/JfbBaseSetPwdLess.less +18 -19
  156. package/src/components/JfbBaseSuccess/Attr.js +78 -17
  157. package/src/components/JfbBaseSuccess/JfbBaseSuccessLess.less +18 -19
  158. package/src/components/JfbBaseTestApi/JfbBaseTestApiLess.less +18 -19
  159. package/src/components/JfbBaseTestBody/JfbBaseTestBodyLess.less +18 -19
  160. package/src/components/JfbBaseTestBottom/JfbBaseTestBottomLess.less +18 -19
  161. package/src/components/JfbBaseTestNotice/JfbBaseTestNoticeLess.less +18 -19
  162. package/src/components/JfbBaseTestTop/JfbBaseTestTopLess.less +18 -19
  163. package/src/components/JfbBaseUserCenter/Attr.js +72 -53
  164. package/src/components/JfbBaseUserCenter/JfbBaseUserCenter.vue +40 -27
  165. package/src/components/JfbBaseUserCenter/JfbBaseUserCenterLess.less +18 -19
  166. package/src/components/JfbBaseUserInfo/Attr.js +54 -45
  167. package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +21 -21
  168. package/src/components/JfbBaseUserInfo/JfbBaseUserInfoLess.less +18 -19
  169. package/src/components/JfbBaseUserOrder/Attr.js +118 -92
  170. package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +21 -7
  171. package/src/components/JfbBaseUserOrder/JfbBaseUserOrderLess.less +18 -19
  172. package/src/components/JfbBaseVideo/Attr.js +72 -19
  173. package/src/components/JfbBaseVideo/JfbBaseVideo.vue +69 -28
  174. package/src/components/JfbBaseVideo/JfbBaseVideoLess.less +18 -19
  175. package/src/components/JfbBaseVideo/XdVideo.vue +6 -44
  176. package/src/components/JfbBaseWallet/JfbBaseWalletLess.less +18 -19
  177. package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetailLess.less +18 -19
  178. package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetailMixin.js +0 -12
  179. package/src/components/JfbBaseWalletEffective/JfbBaseWalletEffectiveLess.less +18 -19
  180. package/src/components/JfbBaseWalletIndex/JfbBaseWalletIndexLess.less +18 -19
  181. package/src/components/JfbBaseWalletItem/JfbBaseWalletItemLess.less +18 -19
  182. package/src/components/JfbBaseWebview/JfbBaseWebviewLess.less +18 -19
  183. package/src/components/JfbBaseWxAuthorize/Attr.js +31 -3
  184. package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorize.vue +32 -26
  185. package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorizeLess.less +18 -19
  186. package/src/components/JfbBaseWxAuthorizeError/Attr.js +21 -17
  187. package/src/components/JfbBaseWxAuthorizeError/JfbBaseWxAuthorizeErrorLess.less +18 -19
  188. package/src/components/JfbBaseLine/Attr.js +0 -59
  189. package/src/components/JfbBaseLine/JfbBaseLine.vue +0 -105
  190. package/src/components/JfbBaseLine/JfbBaseLineLess.less +0 -80
  191. package/src/components/JfbBaseLine/JfbBaseLineMixin.js +0 -30
  192. package/src/components/JfbBasePosterType/Screen.vue +0 -284
  193. package/src/components/JfbBaseSearch/Api.js +0 -60
  194. package/src/components/JfbBaseSearch/Mock.js +0 -5
@@ -18,11 +18,11 @@
18
18
  height: (height + rpxText) + 'px'
19
19
  }"
20
20
  >
21
-
21
+
22
22
  <view :style="{ height: height + 'px', width:width}">
23
23
  <view :style="{
24
24
  borderRadius: config.radius + 'rpx',
25
- boxShadow: config.shadow === 1? `0 0 8rpx rgba(0, 0, 0, .3)` : '',
25
+ boxShadow: config.shadow === 1? `0 0 8rpx ${config.shadowColor}` : '',
26
26
  }">
27
27
  <image :src="item.image_url"></image>
28
28
  </view>
@@ -64,7 +64,7 @@
64
64
  v-for="it in item"
65
65
  :key="it['content_id']"
66
66
  :style="{
67
- height: (height) + 'px'
67
+ height: boxHeight + 'px'
68
68
  }"
69
69
  @click="handleClick(it)"
70
70
  >
@@ -89,7 +89,7 @@
89
89
  <script>
90
90
  import XdSwiperDot from "./XdSwiperDot";
91
91
  import XdSwiper from "@/components/XdSwiper/XdSwiper";
92
-
92
+
93
93
  export default {
94
94
  components:{
95
95
  XdSwiperDot,
@@ -126,6 +126,9 @@
126
126
  rpxText(){
127
127
  return this.$rpxNum * this.text
128
128
  },
129
+ boxHeight(){
130
+ return this.height + this.$rpxNum * this.text;
131
+ }
129
132
  },
130
133
  watch: {
131
134
  config() {
@@ -134,7 +137,7 @@
134
137
  content() {
135
138
  this.init();
136
139
  },
137
-
140
+
138
141
  },
139
142
  created() {
140
143
  this.isPreview = this.$configProject.isPreview;
@@ -150,7 +153,7 @@
150
153
  this.width = this.config.width;
151
154
  this.height = this.config.height;
152
155
  this.padding = 0;
153
-
156
+
154
157
  //静态图显示
155
158
  if(this.config.isCarousel === false) {
156
159
  this.list = this.content.filter((item,index)=>{
@@ -167,8 +170,8 @@
167
170
  }
168
171
  this.list = arr;
169
172
  }
170
-
171
-
173
+
174
+
172
175
  }, 100)
173
176
  },
174
177
  handleClick(item) {
@@ -228,7 +231,7 @@
228
231
  .sreen {
229
232
  width: calc(100% + 2px); /**防止宽度不够问**/
230
233
  position: relative;
231
-
234
+
232
235
  & .carousel-mask {
233
236
  position: absolute;
234
237
  left: 0;
@@ -236,24 +239,25 @@
236
239
  top: 0;
237
240
  bottom: 0;
238
241
  background: rgba(0, 0, 0, 0);
239
-
242
+
240
243
  }
241
-
244
+
242
245
  &__box.notCarousel {
243
246
  width: 100%;
244
247
  display: flex;
245
248
  justify-content: flex-start;
246
249
  align-items: flex-start;
250
+ align-content: flex-start;
247
251
  flex-wrap: wrap;
248
252
  overflow: hidden;
249
-
253
+
250
254
  //行
251
255
  &.cell4 {
252
256
  //图片+文字外框
253
257
  & > view {
254
258
  width: calc(100% / 4);
255
259
  flex-shrink: 0;
256
-
260
+
257
261
  //图片
258
262
  & > view:first-child {
259
263
  overflow: hidden;
@@ -275,7 +279,7 @@
275
279
  }
276
280
  }
277
281
  }
278
-
282
+
279
283
  & > view:last-child {
280
284
  text-align: center;
281
285
  line-height: unit(36, rpx);
@@ -284,16 +288,16 @@
284
288
  overflow: hidden;
285
289
  font-size: unit(24, rpx);
286
290
  .uni-max-cut(1, 36);
287
-
291
+
288
292
  }
289
293
  }
290
294
  }
291
-
295
+
292
296
  &.cell5 {
293
297
  & > view {
294
298
  width: calc(100% / 5);
295
299
  flex-shrink: 0;
296
-
300
+
297
301
  //图片
298
302
  & > view:first-child {
299
303
  overflow: hidden;
@@ -301,7 +305,7 @@
301
305
  justify-content: center;
302
306
  align-items: center;
303
307
  width: 100%;
304
-
308
+
305
309
  & > view {
306
310
  width: 80%;
307
311
  height: 80%;
@@ -310,14 +314,14 @@
310
314
  justify-content: center;
311
315
  align-items: center;
312
316
  overflow: hidden;
313
-
317
+
314
318
  & > image {
315
319
  width: 100%;
316
320
  height: 100%;
317
321
  }
318
322
  }
319
323
  }
320
-
324
+
321
325
  & > view:last-child {
322
326
  text-align: center;
323
327
  line-height: unit(36, rpx);
@@ -330,7 +334,7 @@
330
334
  }
331
335
  }
332
336
  }
333
-
337
+
334
338
  &__box.carousel {
335
339
  display: flex;
336
340
  justify-content: flex-start;
@@ -338,21 +342,22 @@
338
342
  flex-wrap: wrap;
339
343
  overflow: hidden;
340
344
  }
341
-
345
+
342
346
  & .sreen__box-list {
343
347
  display: flex;
344
348
  justify-content: flex-start;
345
349
  align-items: flex-start;
350
+ align-content: flex-start;
346
351
  flex-wrap: wrap;
347
352
  overflow: hidden;
348
-
353
+
349
354
  //行
350
355
  &.cell4 {
351
356
  //图片+文字外框
352
357
  & > view {
353
358
  width: calc(100% / 4);
354
359
  flex-shrink: 0;
355
-
360
+
356
361
  //图片
357
362
  & > view:first-child {
358
363
  overflow: hidden;
@@ -360,7 +365,7 @@
360
365
  justify-content: center;
361
366
  align-items: center;
362
367
  width: 100%;
363
-
368
+
364
369
  & > view {
365
370
  width: 75%;
366
371
  height: 75%;
@@ -369,26 +374,26 @@
369
374
  justify-content: center;
370
375
  align-items: center;
371
376
  overflow: hidden;
372
-
377
+
373
378
  & > image {
374
379
  width: 100%;
375
380
  height: 100%;
376
381
  }
377
382
  }
378
383
  }
379
-
384
+
380
385
  & > view:last-child {
381
386
  text-align: center;
382
387
  line-height: 15px;
383
388
  }
384
389
  }
385
390
  }
386
-
391
+
387
392
  &.cell5 {
388
393
  & > view {
389
394
  width: calc(100% / 5);
390
395
  flex-shrink: 0;
391
-
396
+
392
397
  //图片
393
398
  & > view:first-child {
394
399
  overflow: hidden;
@@ -396,7 +401,7 @@
396
401
  justify-content: center;
397
402
  align-items: center;
398
403
  width: 100%;
399
-
404
+
400
405
  & > view {
401
406
  width: 80%;
402
407
  height: 80%;
@@ -405,14 +410,14 @@
405
410
  justify-content: center;
406
411
  align-items: center;
407
412
  overflow: hidden;
408
-
413
+
409
414
  & > image {
410
415
  width: 100%;
411
416
  height: 100%;
412
417
  }
413
418
  }
414
419
  }
415
-
420
+
416
421
  & > view:last-child {
417
422
  text-align: center;
418
423
  line-height: unit(36, rpx);
@@ -425,6 +430,6 @@
425
430
  }
426
431
  }
427
432
  }
428
-
429
-
433
+
434
+
430
435
  </style>
@@ -13,19 +13,19 @@
13
13
  <view class="jfb-base-poster-type__edit-icon" @click="delEdit">删除</view>
14
14
  </view>
15
15
  <!-- #endif -->
16
- <view
17
- class="jfb-base-poster-type__body"
18
- v-if="noData"
19
- :style="{
20
- margin: margin,
21
- backgroundColor: bgColor,
22
- borderRadius: bgRadius + 'rpx'
23
- }
24
- ">
25
- <four-screen
26
- :config="getConfig"
27
- :content="info"
28
- ></four-screen>
16
+ <view class="jfb-base-poster-type__body" v-if="noData">
17
+ <view class="x-line"></view>
18
+ <view
19
+ class="jfb-base-poster-cont"
20
+ :style="{
21
+ margin: margin,
22
+ backgroundColor: bgColor,
23
+ borderRadius: bgRadius + 'rpx'
24
+ }"
25
+ >
26
+ <four-screen :config="getConfig" :content="info"></four-screen>
27
+ </view>
28
+
29
29
  </view>
30
30
  </view>
31
31
  </template>
@@ -41,7 +41,6 @@
41
41
  import getServiceUrl from '@/common/getServiceUrl'
42
42
  import XdImage from "@/components/XdImage/XdImage";
43
43
  import XdSwiper from "@/components/XdSwiper/XdSwiper";
44
- import Screen from "./Screen";
45
44
  import FourScreen from "./FourScreen";
46
45
  import XdSwiperDot from "./XdSwiperDot";
47
46
  export default {
@@ -50,7 +49,6 @@
50
49
  XdFontIcon,
51
50
  XdImage,
52
51
  XdSwiper,
53
- Screen,
54
52
  FourScreen,
55
53
  XdSwiperDot
56
54
  },
@@ -69,42 +67,18 @@
69
67
  jdRows: 1, //行
70
68
  cells: 4, //列
71
69
  shadow: false, //是否设置阴影
70
+ shadowColor:'rgba(0,0,0,.3)',
72
71
  radius: '20', //10/20/40 , 小/中/大
73
72
  timer: null,
74
73
  info: [],
75
- mS: {
76
- top: 0,
77
- bottom: 0,
78
- left: 0,
79
- right: 0
80
- },
74
+ mS: {},
81
75
  isPreview: false,
82
76
  noData:false,
83
-
77
+
84
78
  //颜色设置
85
79
  textColor: '#333',
86
80
  bgColor:'rgba(0,0,0,0)',
87
81
  bgRadius: 0,
88
-
89
- test: {
90
- "content_id": "KpBbUKdj4aBejwe7Fh1ki",
91
- "position_id": "QCk3PmoyQmOWRP1SxnYR3",
92
- "partner_id": 0,
93
- "site_id": "",
94
- "content_name": "测试.",
95
- "image_url": "//dummyimage.com/200x200",
96
- "redirect_type": "EMP",
97
- "redirect_type_name": "无链接",
98
- "redirect_data": "",
99
- "sort": "",
100
- "status": "",
101
- "start_time": "",
102
- "end_time": "",
103
- "op_user_id": "",
104
- "created_time": 0,
105
- "updated_time": 0
106
- }
107
-
108
82
  }
109
83
  },
110
84
  computed: {
@@ -124,18 +98,24 @@
124
98
  jdRows: this.jdRows,
125
99
  cells: this.cells,
126
100
  shadow: this.shadow,
101
+ shadowColor: this.shadowColor,
127
102
  textColor: this.textColor,
128
103
  }
129
104
  },
130
105
  margin(){
131
- return `${this.mS.top||0}rpx ${this.mS.right||0}rpx ${this.mS.bottom||0}rpx ${this.mS.left||0}rpx`
106
+ let str = `${this.checkValue(this.mS.top, 0)}rpx`;
107
+ str = `${str} ${this.checkValue(this.mS.right, 0)}rpx`;
108
+ str = `${str} ${this.checkValue(this.mS.bottom, 0)}rpx`;
109
+ str = `${str} ${this.checkValue(this.mS.left, 0)}rpx`;
110
+ return str
132
111
  },
133
112
  dotStyleData() {
134
113
  return {}
135
114
  }
136
115
  },
137
116
  watch: {
138
- container(value) {
117
+ container(value,oloValue) {
118
+ if(JSON.stringify(value) === JSON.stringify(oloValue)) return;
139
119
  this.init(value);
140
120
  if(this.timer) clearTimeout(this.timer);
141
121
  this.timer = setTimeout(()=>{
@@ -180,7 +160,7 @@
180
160
  if (url === '') {
181
161
  return;
182
162
  }
183
-
163
+
184
164
  if(url.indexOf('?') === -1) url = `${url}?vs=${new Date().getTime()}`;
185
165
  else url = `${url}&vs=${new Date().getTime()}`;
186
166
  this.$xdUniHelper.navigateTo({url})
@@ -196,41 +176,36 @@
196
176
  },
197
177
  handleOne(list){
198
178
  this.info = this.handleImage(list);
199
- console.log('this.info',this.info)
200
- },
201
- getDefualtValue(key){
202
- if (key === 'margin') {
203
- return {top: 0, bottom: 0, left: 0, right: 0}
204
- }
205
179
  },
206
-
180
+
207
181
  /**
208
182
  * @description 监听事件变化
209
183
  * @param container {object} 业务组件对象自己
210
184
  */
211
185
  init(container) {
212
186
  this.radius = getContainerPropsValue(container, 'content.radius', '20');
213
- this.padding = 0;
214
187
  this.poster = getContainerPropsValue(container, 'content.nav', {});
215
188
  if (this.poster.position) {
216
189
  this.posterPosition = this.poster.position
217
190
  }
218
191
  this.jdRows = getContainerPropsValue(container, 'content.jdRows', 1);
219
192
  this.cells = getContainerPropsValue(container, 'content.cells', 4);
220
-
193
+
221
194
  //content
222
195
  this.mode = getContainerPropsValue(container, 'content.dot_type', 'dot');
223
196
  this.isCarousel = getContainerPropsValue(container, 'content.isCarousel', 1) === 2;
224
197
  this.carouselTime = Number(getContainerPropsValue(container, 'content.carouselTime', 5)) * 1000;
225
198
  this.useNumber = getContainerPropsValue(container, 'content.number', 1);
226
199
  this.shadow = getContainerPropsValue(container, 'content.shadow', 2);
227
- this.mS = getContainerPropsValue(container, 'content.margin', {top: 0, left: 0, bottom:0, right: 0});
228
-
200
+ this.shadowColor = getContainerPropsValue(container, 'content.shadowColor', 'rgba(0,0,0,.3)');
201
+ this.mS = getContainerPropsValue(container, 'content.margin', {});
202
+
229
203
  //样式设置
230
204
  this.textColor = getContainerPropsValue(container, 'content.textColor', '#333');
231
205
  this.bgColor = getContainerPropsValue(container, 'content.bgColor','rgba(0,0,0,0)');
232
206
  this.bgRadius = getContainerPropsValue(container, 'content.bgRadius', '0');
233
-
207
+
208
+
234
209
  },
235
210
 
236
211
  onJfbLoad(options) {
@@ -246,9 +221,10 @@
246
221
  })
247
222
  .then(res => {
248
223
  if (res.list.length === 0 && this.isPreview) {
224
+ let testData = this.$xdUniHelper.cloneDeep(this['posterTest']);
249
225
  let temp = [];
250
226
  for (let i = 0; i < this.useNumber; i++) {
251
- temp.push({...this.test, content_id: i, content_name: `${this.test.content_name}(${i})`})
227
+ temp.push({...testData, content_id: i, content_name: `${testData.content_name}(${i})`})
252
228
  }
253
229
  res.list = temp
254
230
  }
@@ -259,12 +235,11 @@
259
235
  console.error(error)
260
236
  })
261
237
  },
262
-
263
-
238
+
264
239
  onJfbUpdate(data){
265
240
  this.onJfbLoad(this.params);
266
241
  }
267
-
242
+
268
243
  }
269
244
  }
270
245
 
@@ -275,11 +250,14 @@
275
250
 
276
251
  .jfb-base-poster-type {
277
252
  &__body{
278
- box-sizing: border-box;
279
- overflow: hidden;
280
- justify-content: center;
281
- align-items: center;
282
- display: flex;
253
+ & > view.jfb-base-poster-cont {
254
+ box-sizing: border-box;
255
+ overflow: hidden;
256
+ justify-content: center;
257
+ align-items: center;
258
+ display: flex;
259
+ }
260
+
283
261
  }
284
262
  &__one.notCarousel {
285
263
  position: relative;
@@ -288,19 +266,19 @@
288
266
  justify-content: center;
289
267
  align-items: center;
290
268
  overflow: hidden;
291
-
292
-
269
+
270
+
293
271
  & > view {
294
272
  width: 100%;
295
273
  height: 100%;
296
274
  box-sizing: border-box;
297
-
275
+
298
276
  & > image {
299
-
277
+
300
278
  }
301
279
  }
302
280
  }
303
-
281
+
304
282
  &__one.carousel {
305
283
  position: relative;
306
284
  box-sizing: border-box;
@@ -308,7 +286,7 @@
308
286
  justify-content: center;
309
287
  align-items: center;
310
288
  overflow: hidden;
311
-
289
+
312
290
  & .carousel-mask {
313
291
  position: absolute;
314
292
  left: 0;
@@ -318,6 +296,6 @@
318
296
  background: rgba(0,0,0,0);
319
297
  }
320
298
  }
321
-
299
+
322
300
  }
323
301
  </style>
@@ -13,9 +13,8 @@
13
13
 
14
14
  //start
15
15
  .jfb-base-poster-type {
16
- border: 1px dashed rgba(0, 0, 0, 0);
17
16
  box-sizing: border-box;
18
- min-height: unit(50, rpx);
17
+ min-height: unit(100, rpx);
19
18
 
20
19
  &__body{
21
20
  position: relative;
@@ -23,21 +22,21 @@
23
22
  z-index: 2
24
23
  }
25
24
 
26
- &.editx {
25
+ &.editx,&:hover {
27
26
  position: relative;
28
- border: 1px dashed blue;
29
- box-sizing: border-box;
30
- z-index: 3
31
-
32
- }
33
-
34
- &:hover {
35
- border: 1px dashed blue;
36
- }
27
+ z-index: 3;
28
+ &::after {
29
+ border: 2rpx dashed blue;
30
+ content: " ";
31
+ position: absolute;
32
+ top:0;
33
+ left:0;
34
+ bottom:0;
35
+ right:0;
36
+ z-index: 4;
37
+ cursor: pointer;
38
+ }
37
39
 
38
- &.noBorder {
39
- border-color: rgba(0,0,0,0);
40
- border-width: 0;
41
40
  }
42
41
 
43
42
 
@@ -72,9 +71,9 @@
72
71
 
73
72
  /**notPreview**/
74
73
  .jfb-base-poster-type {
75
- &:before {
76
- content: " ";
77
- display: table;
78
- }
74
+ //&:before {
75
+ //content: " ";
76
+ //display: table;
77
+ //}
79
78
  }
80
79
  /**endNotPreview**/