jufubao-base 1.0.132-beta1 → 1.0.132-beta3

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 +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 +9 -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 +5 -3
  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 +8 -2
  140. package/src/components/JfbBasePosterType/JfbBasePosterType.vue +36 -59
  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/JfbBaseSuccess.vue +1 -0
  158. package/src/components/JfbBaseSuccess/JfbBaseSuccessLess.less +18 -19
  159. package/src/components/JfbBaseTestApi/JfbBaseTestApiLess.less +18 -19
  160. package/src/components/JfbBaseTestBody/JfbBaseTestBodyLess.less +18 -19
  161. package/src/components/JfbBaseTestBottom/JfbBaseTestBottomLess.less +18 -19
  162. package/src/components/JfbBaseTestNotice/JfbBaseTestNoticeLess.less +18 -19
  163. package/src/components/JfbBaseTestTop/JfbBaseTestTopLess.less +18 -19
  164. package/src/components/JfbBaseUserCenter/Attr.js +72 -53
  165. package/src/components/JfbBaseUserCenter/JfbBaseUserCenter.vue +40 -27
  166. package/src/components/JfbBaseUserCenter/JfbBaseUserCenterLess.less +18 -19
  167. package/src/components/JfbBaseUserInfo/Attr.js +54 -45
  168. package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +21 -21
  169. package/src/components/JfbBaseUserInfo/JfbBaseUserInfoLess.less +18 -19
  170. package/src/components/JfbBaseUserOrder/Attr.js +118 -92
  171. package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +21 -7
  172. package/src/components/JfbBaseUserOrder/JfbBaseUserOrderLess.less +18 -19
  173. package/src/components/JfbBaseVideo/Attr.js +72 -19
  174. package/src/components/JfbBaseVideo/JfbBaseVideo.vue +69 -28
  175. package/src/components/JfbBaseVideo/JfbBaseVideoLess.less +18 -19
  176. package/src/components/JfbBaseVideo/XdVideo.vue +6 -44
  177. package/src/components/JfbBaseWallet/JfbBaseWalletLess.less +18 -19
  178. package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetailLess.less +18 -19
  179. package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetailMixin.js +0 -12
  180. package/src/components/JfbBaseWalletEffective/JfbBaseWalletEffectiveLess.less +18 -19
  181. package/src/components/JfbBaseWalletIndex/JfbBaseWalletIndexLess.less +18 -19
  182. package/src/components/JfbBaseWalletItem/JfbBaseWalletItemLess.less +18 -19
  183. package/src/components/JfbBaseWebview/JfbBaseWebviewLess.less +18 -19
  184. package/src/components/JfbBaseWxAuthorize/Attr.js +31 -3
  185. package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorize.vue +32 -26
  186. package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorizeLess.less +18 -19
  187. package/src/components/JfbBaseWxAuthorizeError/Attr.js +21 -17
  188. package/src/components/JfbBaseWxAuthorizeError/JfbBaseWxAuthorizeErrorLess.less +18 -19
  189. package/src/components/JfbBaseLine/Attr.js +0 -59
  190. package/src/components/JfbBaseLine/JfbBaseLine.vue +0 -105
  191. package/src/components/JfbBaseLine/JfbBaseLineLess.less +0 -80
  192. package/src/components/JfbBaseLine/JfbBaseLineMixin.js +0 -30
  193. package/src/components/JfbBasePosterType/Screen.vue +0 -284
  194. package/src/components/JfbBaseSearch/Api.js +0 -60
  195. package/src/components/JfbBaseSearch/Mock.js +0 -5
@@ -13,82 +13,77 @@
13
13
  <view class="jfb-base-poster__edit-icon" @click="delEdit">删除</view>
14
14
  </view>
15
15
  <!-- #endif -->
16
- <view
17
- class="jfb-base-poster__body"
18
- v-if="noData"
19
- :style="{
20
- margin: margin,
21
- backgroundImage: background?`url(${getBgImage})`:'none',
22
- backgroundSize: '100%',
23
- backgroundRepeat: 'no-repeat',
24
- padding: outPadding
25
- }
26
- ">
27
- <!--一分屏-->
28
- <template v-if="posterType === '1'">
29
- <view
30
- v-if="isCarousel === 1"
31
- class="jfb-base-poster__one notCarousel"
32
- :style="{
33
- width: width + 'rpx',
34
- height: outOneHeight + 'rpx',
35
- }"
36
- >
37
- <view
16
+ <view class="jfb-base-poster__body" v-if="noData">
17
+ <view class="x-line"></view>
18
+
19
+ <view class="jfb-base-poster-cont" :style="getBodyStyle">
20
+ <!--一分屏-->
21
+ <template v-if="posterType === '1'">
22
+ <view
23
+ v-if="isCarousel === 1"
24
+ class="jfb-base-poster__one notCarousel"
25
+ :style="{
26
+ width: getOneWidth + 'rpx',
27
+ }"
28
+ >
29
+ <view
30
+ :style="{
31
+ width: getOneWidth + 'rpx',
32
+ height: getOneHeight + 'rpx',
33
+ borderRadius: (posterType === '1' ? radius: 0) + 'rpx',
34
+ marginBottom: padding + 'rpx'
35
+ }"
36
+ @click="handleClick(item)"
37
+ v-for="(item,index) in info"
38
+ :key="index"
39
+ >
40
+ <image :src="item.image_url" mode="aspectFill"></image>
41
+ </view>
42
+ </view>
43
+ <view
44
+ v-else
45
+ class="jfb-base-poster__one carousel"
38
46
  :style="{
39
- width: width + 'rpx',
40
- height: height + 'rpx',
47
+ width: getOneWidth + 'rpx',
48
+ height: getOneHeight + 'rpx',
41
49
  borderRadius: (posterType === '1' ? radius: 0) + 'rpx',
42
- marginBottom: padding + 'rpx'
43
50
  }"
44
- @click="handleClick(item)"
45
- v-for="(item,index) in info"
46
- :key="index"
47
51
  >
48
- <image :src="item.image_url" mode="aspectFill"></image>
49
- </view>
50
- </view>
51
- <view
52
- v-else
53
- class="jfb-base-poster__one carousel"
54
- :style="{
55
- width: width + 'rpx',
56
- height: height + 'rpx',
57
- borderRadius: (posterType === '1' ? radius: 0) + 'rpx',
58
- }"
59
- >
60
- <xd-swiper-dot
61
- v-if="pageSwiperShow"
62
- :current="current"
63
- :info="info"
64
- field="content_name"
65
- :mode="mode"
66
- :dots-styles="dotStyleData"
67
- >
68
- <xd-swiper
69
- :indicator-dots="false"
70
- :list="info"
71
- :current="current"
72
- :width=" width + 'rpx'"
73
- :height="height + 'rpx'"
74
- :interval="carouselTime"
75
- @onClickItem="handleClick"
76
- @animationfinish="handleAnimationfinish"
77
- >
78
- <template slot-scope="{ item, index}">
79
- <image :src="item['image_url']" mode="aspectFill"></image>
80
- </template>
81
- </xd-swiper>
82
- </xd-swiper-dot>
83
- <view v-if="isPreview" class="carousel-mask"></view>
84
- </view>
85
- </template>
86
- <!--一分屏-->
87
- <more-screen
88
- v-if="posterType !== '1'"
89
- :config="getConfig"
90
- :content="info"
91
- ></more-screen>
52
+ <xd-swiper-dot
53
+ v-if="pageSwiperShow"
54
+ :current="current"
55
+ :info="info"
56
+ field="content_name"
57
+ :mode="mode"
58
+ :dots-styles="dotStyleData"
59
+ >
60
+ <xd-swiper
61
+ :indicator-dots="false"
62
+ :list="info"
63
+ :current="current"
64
+ :width=" getOneWidth + 'rpx'"
65
+ :height="getOneHeight + 'rpx'"
66
+ :interval="carouselTime"
67
+ @onClickItem="handleClick"
68
+ @animationfinish="handleAnimationfinish"
69
+ >
70
+ <template slot-scope="{ item, index}">
71
+ <image :src="item['image_url']" mode="aspectFill"></image>
72
+ </template>
73
+ </xd-swiper>
74
+ </xd-swiper-dot>
75
+ <view v-if="isPreview" class="carousel-mask"></view>
76
+ </view>
77
+ </template>
78
+ <!--一分屏-->
79
+ <!--多分屏-->
80
+ <more-screen
81
+ v-if="posterType !== '1'"
82
+ :config="getConfig"
83
+ :content="info"
84
+ ></more-screen>
85
+ <!--多分屏-->
86
+ </view>
92
87
  </view>
93
88
  <!--解决图片缓冲预加载问题-->
94
89
  <view v-for="(item,index) in info" :key="index" style="position: absolute; top: -19999px; left: -100000px">
@@ -145,49 +140,47 @@
145
140
  rows: 1, //四分屏起作用
146
141
  radius: 0,
147
142
  timer: null,
148
- isSupport: 'Y',
143
+ isSupport: 'N',
149
144
  currentImage: '',
150
145
  info: [],
151
- mS: {
152
- top: 0,
153
- bottom: 0,
154
- left: 0,
155
- right: 0
156
- },
146
+ mS: {},//边距
147
+ bgImagePadding:{},//填充
157
148
  isPreview: false,
158
149
  noData:false,
159
150
  background: '',
160
-
161
- test: {
162
- "content_id": "KpBbUKdj4aBejwe7Fh1ki",
163
- "position_id": "QCk3PmoyQmOWRP1SxnYR3",
164
- "partner_id": 0,
165
- "site_id": "",
166
- "content_name": "测试.",
167
- "image_url": "//dummyimage.com/200x200",
168
- "redirect_type": "EMP",
169
- "redirect_type_name": "无链接",
170
- "redirect_data": "",
171
- "sort": "",
172
- "status": "",
173
- "start_time": "",
174
- "end_time": "",
175
- "op_user_id": "",
176
- "created_time": 0,
177
- "updated_time": 0
178
- }
179
151
  }
180
152
  },
181
153
  computed: {
154
+ getBodyStyle(){
155
+ let image = {};
156
+ if(this.background) image = {
157
+ backgroundImage: `url(${this.getBgImage})`,
158
+ backgroundSize: '100%',
159
+ backgroundRepeat: 'no-repeat',
160
+ }
161
+ return {
162
+ ...image,
163
+ margin: this.margin,
164
+ padding: this.outPadding
165
+ }
166
+ },
167
+ getOneWidth(){
168
+ let margin = this.checkValue(this.mS.left, 0) + this.checkValue(this.mS.right, 0);
169
+ let padding = this.checkValue(this.bgImagePadding.left, 20) + this.checkValue(this.bgImagePadding.right, 20);
170
+ return 750 - (margin + padding);
171
+ },
172
+ getOneHeight(){
173
+ return this.getOneWidth * this.height / this.width
174
+ },
182
175
  getConfig(){
183
176
  let cell = this.posterType === '2' ? 2: (this.posterType === '3' ? 3 : 4);
184
177
  let spacing = Math.floor((cell - 1) * this.padding * this.$rpxNum);
185
- let padding = 0;
186
- if(this.background === 'none' || this.$xdUniHelper.isEmpty(this.background)) padding = 20;
187
- let addPadding = ((this.bgImagePadding.right !== null? this.bgImagePadding.right:padding) +
188
- (this.bgImagePadding.left !== null? this.bgImagePadding.left : padding)) * this.$rpxNum;
189
- let viewWidth = uni.getSystemInfoSync().safeArea.width - ((this.mS.right || 0) + (this.mS.left || 0)) * this.$rpxNum - addPadding - spacing;
190
- if(this.$configProject.isPreview) viewWidth -= 2;
178
+ let paddingDefault = 0;
179
+ if(this.background === 'none' || this.background === '' || this.$xdUniHelper.isEmpty(this.background)) paddingDefault = 20;
180
+ let addPadding = this.checkValue(this.bgImagePadding.right, paddingDefault) + this.checkValue(this.bgImagePadding.left, paddingDefault);
181
+ addPadding = addPadding * this.$rpxNum;
182
+ let margin = (this.checkValue(this.mS.right, 0) + this.checkValue(this.mS.left, 0)) * this.$rpxNum;
183
+ let viewWidth = uni.getSystemInfoSync().safeArea.width -margin - addPadding - spacing;
191
184
  let width = Math.floor(viewWidth / cell);
192
185
  let height = this.height * width / this.width;
193
186
  return {
@@ -206,8 +199,27 @@
206
199
  }
207
200
  },
208
201
  margin(){
209
- return `${this.mS.top||0}rpx ${this.mS.right||0}rpx ${this.mS.bottom||0}rpx ${this.mS.left||0}rpx`
202
+ let str = `${this.checkValue(this.mS.top, 0)}rpx`;
203
+ str = `${str} ${this.checkValue(this.mS.right, 0)}rpx`;
204
+ str = `${str} ${this.checkValue(this.mS.bottom, 0)}rpx`;
205
+ str = `${str} ${this.checkValue(this.mS.left, 0)}rpx`;
206
+ return str;
210
207
  },
208
+ outPadding(){
209
+ try {
210
+ let defaultvalue = 0;
211
+ if(!this.background || this.background === 'none' || this.$xdUniHelper.isEmpty(this.background)) defaultvalue = 20;
212
+ if(this.posterType === '1') defaultvalue = 20;
213
+ let str = `${this.checkValue(this.bgImagePadding.top, defaultvalue)}rpx`;
214
+ str = `${str} ${this.checkValue(this.bgImagePadding.right, defaultvalue)}rpx`;
215
+ str = `${str} ${this.checkValue(this.bgImagePadding.bottom, defaultvalue)}rpx`;
216
+ str = `${str} ${this.checkValue(this.bgImagePadding.left,defaultvalue)}rpx`;
217
+ return str;
218
+ } catch (error) {
219
+ return 0
220
+ }
221
+
222
+ },
211
223
  getMode(){
212
224
  let mode = this.mode;
213
225
  if (this.posterType !== '1') {
@@ -221,9 +233,7 @@
221
233
  dotStyleData(){
222
234
  let alpha = 1;
223
235
  if(this.posterType === '1') alpha = 0.6;
224
-
225
236
  let selectedColor = `rgba(${color(this.mainColor).alpha(alpha).array().join(',')})`;
226
- console.log('selectedColor',selectedColor, this.mode, this.posterType);
227
237
  let style = {
228
238
  dot: {
229
239
  backgroundColor: 'rgba(166,166,166,.5)',
@@ -282,24 +292,11 @@
282
292
  }
283
293
  return bg
284
294
  },
285
- outPadding(){
286
- try {
287
- let defaultvalue = 0;
288
- if(this.background === 'none' || this.$xdUniHelper.isEmpty(this.background)) defaultvalue = 20
289
- console.log(this.bgImagePadding,'this.paddingthis.paddingthis.padding');
290
- let padding = `${this.bgImagePadding.top !== null ? this.bgImagePadding.top : defaultvalue}rpx`;
291
- padding = `${padding} ${this.bgImagePadding.right !== null ? this.bgImagePadding.right : defaultvalue}rpx`;
292
- padding = `${padding} ${this.bgImagePadding.bottom !== null ? this.bgImagePadding.bottom : defaultvalue}rpx`;
293
- padding = `${padding} ${this.bgImagePadding.left !== null ? this.bgImagePadding.left : defaultvalue}rpx`;
294
- return padding;
295
- } catch (error) {
296
- console.log(error,'amamamam');
297
- }
298
295
 
299
- },
300
296
  },
301
297
  watch: {
302
- container(value) {
298
+ container(value, oloValue) {
299
+ if(JSON.stringify(value) === JSON.stringify(oloValue)) return;
303
300
  this.init(value);
304
301
  if(this.timer) clearTimeout(this.timer);
305
302
  this.timer = setTimeout(()=>{
@@ -351,7 +348,7 @@
351
348
  getTestData(){
352
349
  let temp = [];
353
350
  for (let i = 0; i< this.useNumber; i++) {
354
- let item = this.$xdUniHelper.cloneDeep(this.test);
351
+ let item = this.$xdUniHelper.cloneDeep(this['posterTest']);
355
352
  item.content_id = i;
356
353
  item.content_name = item.content_name + i;
357
354
  item.image_url = `//dummyimage.com/${this.width}x${this.height}`;
@@ -360,11 +357,8 @@
360
357
  return temp
361
358
  },
362
359
  handleAnimationfinish(e) {
363
-
364
-
365
360
  //不支持背景不处理
366
361
  if(this.isSupport==='N') return;
367
-
368
362
  console.warn(`handleAnimationfinish.start`)
369
363
  this.pageSwiperShow = this.$root.$isShow;
370
364
 
@@ -456,11 +450,6 @@
456
450
  this.currentImage = this.info[current]['image_background_url']
457
451
  if(this.isSupport==='Y' && this.rows===1 && this.isCarousel===2) {
458
452
  this.$xdRoot.$emit("setLayoutPageBg", this.currentImage);
459
- }
460
- },
461
- getDefualtValue(key){
462
- if (key === 'margin') {
463
- return {top: 0, bottom: 0, left: 0, right: 0}
464
453
  }
465
454
  },
466
455
 
@@ -476,17 +465,18 @@
476
465
  if(this.poster.position) {
477
466
  this.posterPosition = this.poster.position
478
467
  }
468
+ this.isCarousel = getContainerPropsValue(container, 'content.isCarousel', 1);
479
469
  this.radius = getContainerPropsValue(container, 'content.radius', 0);
480
470
  this.padding = getContainerPropsValue(container, 'content.padding', 0);
481
471
  this.rows = getContainerPropsValue(container, 'content.rows', 1);
482
- this.isSupport = getContainerPropsValue(container, 'content.isSupport', 'Y');
483
- this.mS = getContainerPropsValue(container, 'content.margin', this.getDefualtValue('margin'));
484
- this.background = getContainerPropsValue(container, "content.background", 'none');
485
- this.bgImagePadding = getContainerPropsValue(container, 'content.bgImagePadding', {top: 20, left: 20, right: 20, bottom: 20});
472
+ if(this.posterType === '1' && this.isCarousel === 2) this.isSupport = getContainerPropsValue(container, 'content.isSupport', 'Y');
473
+ this.mS = getContainerPropsValue(container, 'content.margin', {});
474
+ this.background = getContainerPropsValue(container, "content.background", '');
475
+ this.bgImagePadding = getContainerPropsValue(container, 'content.bgImagePadding', {});
486
476
  //content
487
477
 
488
478
  this.mode = getContainerPropsValue(container, 'content.dot_type', 'dot');
489
- this.isCarousel = getContainerPropsValue(container, 'content.isCarousel', 1);
479
+
490
480
  this.carouselTime = Number(getContainerPropsValue(container, 'content.carouselTime', 5)) * 1000;
491
481
  this.useNumber = getContainerPropsValue(container, 'content.number', 1);
492
482
 
@@ -571,11 +561,14 @@
571
561
 
572
562
  .jfb-base-poster {
573
563
  &__body{
574
- box-sizing: border-box;
575
- overflow: hidden;
576
- justify-content: center;
577
- align-items: center;
578
- display: flex;
564
+ & > view.jfb-base-poster-cont {
565
+ box-sizing: border-box;
566
+ overflow: hidden;
567
+ justify-content: center;
568
+ align-items: center;
569
+ display: flex;
570
+ }
571
+
579
572
  }
580
573
  &__one.notCarousel {
581
574
  position: relative;
@@ -13,9 +13,8 @@
13
13
 
14
14
  //start
15
15
  .jfb-base-poster {
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 {
75
- &:before {
76
- content: " ";
77
- display: table;
78
- }
74
+ //&:before {
75
+ //content: " ";
76
+ //display: table;
77
+ //}
79
78
  }
80
79
  /**endNotPreview**/