jufubao-base 1.0.130-beta3 → 1.0.130

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 +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 +3 -6
  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 +14 -9
  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/JfbBaseSuccessLess.less +19 -18
  163. package/src/components/JfbBaseTestApi/JfbBaseTestApiLess.less +19 -18
  164. package/src/components/JfbBaseTestBody/JfbBaseTestBodyLess.less +19 -18
  165. package/src/components/JfbBaseTestBottom/JfbBaseTestBottomLess.less +19 -18
  166. package/src/components/JfbBaseTestNotice/JfbBaseTestNoticeLess.less +19 -18
  167. package/src/components/JfbBaseTestTop/JfbBaseTestTopLess.less +19 -18
  168. package/src/components/JfbBaseUserCenter/Attr.js +53 -72
  169. package/src/components/JfbBaseUserCenter/JfbBaseUserCenter.vue +27 -40
  170. package/src/components/JfbBaseUserCenter/JfbBaseUserCenterLess.less +19 -18
  171. package/src/components/JfbBaseUserInfo/Attr.js +45 -54
  172. package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +21 -21
  173. package/src/components/JfbBaseUserInfo/JfbBaseUserInfoLess.less +19 -18
  174. package/src/components/JfbBaseUserOrder/Attr.js +92 -118
  175. package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +7 -21
  176. package/src/components/JfbBaseUserOrder/JfbBaseUserOrderLess.less +19 -18
  177. package/src/components/JfbBaseVideo/Attr.js +19 -72
  178. package/src/components/JfbBaseVideo/JfbBaseVideo.vue +28 -69
  179. package/src/components/JfbBaseVideo/JfbBaseVideoLess.less +19 -18
  180. package/src/components/JfbBaseVideo/XdVideo.vue +44 -6
  181. package/src/components/JfbBaseWallet/JfbBaseWalletLess.less +19 -18
  182. package/src/components/{JfbBaseClear → JfbBaseWalletDetail}/Attr.js +0 -1
  183. package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetailLess.less +19 -18
  184. package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetailMixin.js +12 -0
  185. package/src/components/JfbBaseWalletEffective/JfbBaseWalletEffectiveLess.less +19 -18
  186. package/src/components/JfbBaseWalletIndex/JfbBaseWalletIndexLess.less +19 -18
  187. package/src/components/JfbBaseWalletItem/JfbBaseWalletItemLess.less +19 -18
  188. package/src/components/JfbBaseWebview/JfbBaseWebviewLess.less +19 -18
  189. package/src/components/JfbBaseWxAuthorize/Attr.js +3 -31
  190. package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorize.vue +26 -32
  191. package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorizeLess.less +19 -18
  192. package/src/components/JfbBaseWxAuthorizeError/Attr.js +17 -21
  193. package/src/components/JfbBaseWxAuthorizeError/JfbBaseWxAuthorizeErrorLess.less +19 -18
  194. package/src/components/JfbBaseCardShift/Mock.js +0 -21
@@ -13,77 +13,82 @@
13
13
  <view class="jfb-base-poster__edit-icon" @click="delEdit">删除</view>
14
14
  </view>
15
15
  <!-- #endif -->
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"
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
46
38
  :style="{
47
- width: getOneWidth + 'rpx',
48
- height: getOneHeight + 'rpx',
39
+ width: width + 'rpx',
40
+ height: height + 'rpx',
49
41
  borderRadius: (posterType === '1' ? radius: 0) + 'rpx',
42
+ marginBottom: padding + 'rpx'
50
43
  }"
44
+ @click="handleClick(item)"
45
+ v-for="(item,index) in info"
46
+ :key="index"
51
47
  >
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>
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>
87
92
  </view>
88
93
  <!--解决图片缓冲预加载问题-->
89
94
  <view v-for="(item,index) in info" :key="index" style="position: absolute; top: -19999px; left: -100000px">
@@ -140,47 +145,49 @@
140
145
  rows: 1, //四分屏起作用
141
146
  radius: 0,
142
147
  timer: null,
143
- isSupport: 'N',
148
+ isSupport: 'Y',
144
149
  currentImage: '',
145
150
  info: [],
146
- mS: {},//边距
147
- bgImagePadding:{},//填充
151
+ mS: {
152
+ top: 0,
153
+ bottom: 0,
154
+ left: 0,
155
+ right: 0
156
+ },
148
157
  isPreview: false,
149
158
  noData:false,
150
159
  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
+ }
151
179
  }
152
180
  },
153
181
  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
- },
175
182
  getConfig(){
176
183
  let cell = this.posterType === '2' ? 2: (this.posterType === '3' ? 3 : 4);
177
184
  let spacing = Math.floor((cell - 1) * this.padding * this.$rpxNum);
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;
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;
184
191
  let width = Math.floor(viewWidth / cell);
185
192
  let height = this.height * width / this.width;
186
193
  return {
@@ -199,27 +206,8 @@
199
206
  }
200
207
  },
201
208
  margin(){
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;
209
+ return `${this.mS.top||0}rpx ${this.mS.right||0}rpx ${this.mS.bottom||0}rpx ${this.mS.left||0}rpx`
207
210
  },
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
- },
223
211
  getMode(){
224
212
  let mode = this.mode;
225
213
  if (this.posterType !== '1') {
@@ -233,7 +221,9 @@
233
221
  dotStyleData(){
234
222
  let alpha = 1;
235
223
  if(this.posterType === '1') alpha = 0.6;
224
+
236
225
  let selectedColor = `rgba(${color(this.mainColor).alpha(alpha).array().join(',')})`;
226
+ console.log('selectedColor',selectedColor, this.mode, this.posterType);
237
227
  let style = {
238
228
  dot: {
239
229
  backgroundColor: 'rgba(166,166,166,.5)',
@@ -292,11 +282,24 @@
292
282
  }
293
283
  return bg
294
284
  },
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
+ }
295
298
 
299
+ },
296
300
  },
297
301
  watch: {
298
- container(value, oloValue) {
299
- if(JSON.stringify(value) === JSON.stringify(oloValue)) return;
302
+ container(value) {
300
303
  this.init(value);
301
304
  if(this.timer) clearTimeout(this.timer);
302
305
  this.timer = setTimeout(()=>{
@@ -348,7 +351,7 @@
348
351
  getTestData(){
349
352
  let temp = [];
350
353
  for (let i = 0; i< this.useNumber; i++) {
351
- let item = this.$xdUniHelper.cloneDeep(this['posterTest']);
354
+ let item = this.$xdUniHelper.cloneDeep(this.test);
352
355
  item.content_id = i;
353
356
  item.content_name = item.content_name + i;
354
357
  item.image_url = `//dummyimage.com/${this.width}x${this.height}`;
@@ -357,8 +360,11 @@
357
360
  return temp
358
361
  },
359
362
  handleAnimationfinish(e) {
363
+
364
+
360
365
  //不支持背景不处理
361
366
  if(this.isSupport==='N') return;
367
+
362
368
  console.warn(`handleAnimationfinish.start`)
363
369
  this.pageSwiperShow = this.$root.$isShow;
364
370
 
@@ -450,6 +456,11 @@
450
456
  this.currentImage = this.info[current]['image_background_url']
451
457
  if(this.isSupport==='Y' && this.rows===1 && this.isCarousel===2) {
452
458
  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}
453
464
  }
454
465
  },
455
466
 
@@ -465,18 +476,17 @@
465
476
  if(this.poster.position) {
466
477
  this.posterPosition = this.poster.position
467
478
  }
468
- this.isCarousel = getContainerPropsValue(container, 'content.isCarousel', 1);
469
479
  this.radius = getContainerPropsValue(container, 'content.radius', 0);
470
480
  this.padding = getContainerPropsValue(container, 'content.padding', 0);
471
481
  this.rows = getContainerPropsValue(container, 'content.rows', 1);
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', {});
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});
476
486
  //content
477
487
 
478
488
  this.mode = getContainerPropsValue(container, 'content.dot_type', 'dot');
479
-
489
+ this.isCarousel = getContainerPropsValue(container, 'content.isCarousel', 1);
480
490
  this.carouselTime = Number(getContainerPropsValue(container, 'content.carouselTime', 5)) * 1000;
481
491
  this.useNumber = getContainerPropsValue(container, 'content.number', 1);
482
492
 
@@ -561,14 +571,11 @@
561
571
 
562
572
  .jfb-base-poster {
563
573
  &__body{
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
-
574
+ box-sizing: border-box;
575
+ overflow: hidden;
576
+ justify-content: center;
577
+ align-items: center;
578
+ display: flex;
572
579
  }
573
580
  &__one.notCarousel {
574
581
  position: relative;
@@ -13,8 +13,9 @@
13
13
 
14
14
  //start
15
15
  .jfb-base-poster {
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-poster {
74
- //&:before {
75
- //content: " ";
76
- //display: table;
77
- //}
75
+ &:before {
76
+ content: " ";
77
+ display: table;
78
+ }
78
79
  }
79
80
  /**endNotPreview**/