jufubao-base 1.0.134 → 1.0.136

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 (209) 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 +78 -41
  20. package/src/components/JfbBaseCard/JfbBaseCard.vue +12 -23
  21. package/src/components/JfbBaseCard/JfbBaseCardLess.less +18 -19
  22. package/src/components/JfbBaseCardBind/JfbBaseCardBindLess.less +18 -19
  23. package/src/components/JfbBaseCardBindV2/Attr.js +5 -4
  24. package/src/components/JfbBaseCardBindV2/JfbBaseCardBindV2.vue +3 -1
  25. package/src/components/JfbBaseCardBindV2/JfbBaseCardBindV2Less.less +18 -19
  26. package/src/components/JfbBaseCardDetail/Attr.js +4 -3
  27. package/src/components/JfbBaseCardDetail/JfbBaseCardDetailLess.less +18 -19
  28. package/src/components/JfbBaseCardDetailEntry/Attr.js +10 -8
  29. package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +4 -13
  30. package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntryLess.less +18 -19
  31. package/src/components/JfbBaseCardDisabled/Attr.js +1 -3
  32. package/src/components/JfbBaseCardDisabled/JfbBaseCardDisabledLess.less +18 -19
  33. package/src/components/JfbBaseCardDisabledEntry/JfbBaseCardDisabledEntryLess.less +18 -19
  34. package/src/components/JfbBaseCardEntry/Api.js +1 -1
  35. package/src/components/JfbBaseCardEntry/Attr.js +86 -67
  36. package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +6 -5
  37. package/src/components/JfbBaseCardEntry/JfbBaseCardEntryLess.less +18 -19
  38. package/src/components/JfbBaseCardInfo/Attr.js +22 -16
  39. package/src/components/JfbBaseCardInfo/JfbBaseCardInfoLess.less +18 -19
  40. package/src/components/JfbBaseCardInfoEntry/Attr.js +16 -11
  41. package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntryLess.less +18 -19
  42. package/src/components/JfbBaseCardMerge/Attr.js +21 -8
  43. package/src/components/JfbBaseCardMerge/JfbBaseCardMerge.vue +15 -30
  44. package/src/components/JfbBaseCardMerge/JfbBaseCardMergeLess.less +18 -19
  45. package/src/components/JfbBaseCardMergeEntry/Attr.js +20 -6
  46. package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntry.vue +28 -25
  47. package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntryLess.less +18 -19
  48. package/src/components/JfbBaseCardShift/Attr.js +18 -4
  49. package/src/components/JfbBaseCardShift/JfbBaseCardShift.vue +26 -11
  50. package/src/components/JfbBaseCardShift/JfbBaseCardShiftLess.less +18 -19
  51. package/src/components/JfbBaseCardShift/Mock.js +21 -0
  52. package/src/components/JfbBaseCardShiftEntry/Attr.js +34 -26
  53. package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntry.vue +294 -257
  54. package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntryLess.less +18 -19
  55. package/src/components/JfbBaseCardShiftEntry/Mock.js +2 -1
  56. package/src/components/JfbBaseCardSweepInfo/Attr.js +5 -3
  57. package/src/components/JfbBaseCardSweepInfo/JfbBaseCardSweepInfoLess.less +18 -19
  58. package/src/components/JfbBaseCardV2/Attr.js +21 -17
  59. package/src/components/JfbBaseCardV2/JfbBaseCardV2.vue +3 -5
  60. package/src/components/JfbBaseCardV2/JfbBaseCardV2Less.less +18 -19
  61. package/src/components/JfbBaseCardV3/Attr.js +18 -14
  62. package/src/components/JfbBaseCardV3/JfbBaseCardV3.vue +1 -1
  63. package/src/components/JfbBaseCardV3/JfbBaseCardV3Less.less +18 -19
  64. package/src/components/JfbBaseCity/Attr.js +2 -4
  65. package/src/components/JfbBaseCity/JfbBaseCityLess.less +18 -19
  66. package/src/components/JfbBaseClear/Attr.js +17 -0
  67. package/src/components/JfbBaseClear/JfbBaseClear.vue +9 -9
  68. package/src/components/JfbBaseClear/JfbBaseClearLess.less +18 -19
  69. package/src/components/JfbBaseClear/JfbBaseClearMixin.js +12 -0
  70. package/src/components/JfbBaseConDialog/Api.js +2 -2
  71. package/src/components/JfbBaseConDialog/Attr.js +23 -14
  72. package/src/components/JfbBaseConDialog/JfbBaseConDialog.vue +63 -35
  73. package/src/components/JfbBaseConDialog/JfbBaseConDialogLess.less +18 -19
  74. package/src/components/JfbBaseConDialog/Mock.js +20 -1
  75. package/src/components/JfbBaseConDialog/XdCouCardBind.vue +15 -9
  76. package/src/components/JfbBaseConList/Api.js +1 -1
  77. package/src/components/JfbBaseConList/Attr.js +149 -224
  78. package/src/components/JfbBaseConList/JfbBaseConList.vue +150 -133
  79. package/src/components/JfbBaseConList/JfbBaseConListLess.less +18 -19
  80. package/src/components/JfbBaseConPhone/JfbBaseConPhoneLess.less +18 -19
  81. package/src/components/JfbBaseEntry/Attr.js +33 -21
  82. package/src/components/JfbBaseEntry/JfbBaseEntry.vue +34 -23
  83. package/src/components/JfbBaseEntry/JfbBaseEntryLess.less +18 -19
  84. package/src/components/JfbBaseExpressDetail/JfbBaseExpressDetailLess.less +18 -19
  85. package/src/components/JfbBaseFastLink/Api.js +1 -54
  86. package/src/components/JfbBaseFastLink/Attr.js +168 -116
  87. package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +12 -16
  88. package/src/components/JfbBaseFastLink/JfbBaseFastLinkLess.less +18 -19
  89. package/src/components/JfbBaseFooter/Attr.js +28 -22
  90. package/src/components/JfbBaseFooter/JfbBaseFooter.vue +19 -15
  91. package/src/components/JfbBaseFooter/JfbBaseFooterLess.less +18 -19
  92. package/src/components/JfbBaseHeader/Attr.js +89 -91
  93. package/src/components/JfbBaseHeader/JfbBaseHeader.vue +28 -29
  94. package/src/components/JfbBaseHeader/JfbBaseHeaderLess.less +18 -19
  95. package/src/components/JfbBaseLogin/Api.js +1 -1
  96. package/src/components/JfbBaseLogin/Attr.js +111 -88
  97. package/src/components/JfbBaseLogin/JfbBaseLogin.vue +4 -5
  98. package/src/components/JfbBaseLogin/JfbBaseLoginLess.less +18 -19
  99. package/src/components/JfbBaseLoginForgetPwd/Attr.js +52 -45
  100. package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwd.vue +14 -14
  101. package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwdLess.less +18 -19
  102. package/src/components/JfbBaseLoginSetPwd/Attr.js +6 -4
  103. package/src/components/JfbBaseLoginSetPwd/JfbBaseLoginSetPwdLess.less +18 -19
  104. package/src/components/JfbBaseMapOverlay/JfbBaseMapOverlayLess.less +18 -19
  105. package/src/components/JfbBaseMapSearch/Attr.js +0 -15
  106. package/src/components/JfbBaseMapSearch/JfbBaseMapSearch.vue +1 -25
  107. package/src/components/JfbBaseMapSearch/JfbBaseMapSearchLess.less +18 -19
  108. package/src/components/JfbBaseMergeUserCard/Attr.js +4 -3
  109. package/src/components/JfbBaseMergeUserCard/JfbBaseMergeUserCardLess.less +18 -19
  110. package/src/components/JfbBaseMultipleExpress/Attr.js +4 -3
  111. package/src/components/JfbBaseMultipleExpress/JfbBaseMultipleExpressLess.less +18 -19
  112. package/src/components/JfbBaseMy/JfbBaseMyLess.less +18 -19
  113. package/src/components/JfbBaseMySetting/Attr.js +1 -1
  114. package/src/components/JfbBaseMySetting/JfbBaseMySettingLess.less +18 -19
  115. package/src/components/JfbBaseNotice/Attr.js +109 -58
  116. package/src/components/JfbBaseNotice/JfbBaseNotice.vue +81 -54
  117. package/src/components/JfbBaseNotice/JfbBaseNoticeLess.less +18 -19
  118. package/src/components/JfbBaseNoticeBottom/JfbBaseNoticeBottomLess.less +18 -19
  119. package/src/components/JfbBaseNoticeTop/JfbBaseNoticeTopLess.less +18 -19
  120. package/src/components/JfbBaseOrderDetail/Attr.js +210 -193
  121. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +14 -7
  122. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetailLess.less +18 -19
  123. package/src/components/JfbBaseOrderList/Attr.js +56 -44
  124. package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +43 -8
  125. package/src/components/JfbBaseOrderList/JfbBaseOrderListLess.less +18 -19
  126. package/src/components/JfbBasePay/Attr.js +2 -13
  127. package/src/components/JfbBasePay/JfbBasePay.vue +7 -6
  128. package/src/components/JfbBasePay/JfbBasePayLess.less +18 -19
  129. package/src/components/JfbBasePay/Mock.js +2 -1
  130. package/src/components/JfbBasePhoneCollect/Attr.js +27 -2
  131. package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +1 -1
  132. package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollectLess.less +18 -19
  133. package/src/components/JfbBasePhoneLogin/Attr.js +27 -2
  134. package/src/components/JfbBasePhoneLogin/JfbBasePhoneLoginLess.less +18 -19
  135. package/src/components/JfbBasePoster/Attr.js +103 -83
  136. package/src/components/JfbBasePoster/JfbBasePoster.vue +134 -141
  137. package/src/components/JfbBasePoster/JfbBasePosterLess.less +18 -19
  138. package/src/components/JfbBasePosterBigSmall/Attr.js +93 -76
  139. package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmall.vue +3 -7
  140. package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmallLess.less +18 -19
  141. package/src/components/JfbBasePosterBigSmall/getWidthHeight.js +2 -2
  142. package/src/components/JfbBasePosterEntry/Attr.js +47 -34
  143. package/src/components/JfbBasePosterEntry/JfbBasePosterEntry.vue +44 -49
  144. package/src/components/JfbBasePosterEntry/JfbBasePosterEntryLess.less +18 -19
  145. package/src/components/JfbBasePosterType/Attr.js +82 -48
  146. package/src/components/JfbBasePosterType/FourScreen.vue +8 -2
  147. package/src/components/JfbBasePosterType/JfbBasePosterType.vue +36 -59
  148. package/src/components/JfbBasePosterType/JfbBasePosterTypeLess.less +18 -19
  149. package/src/components/JfbBaseRecharge/Attr.js +35 -23
  150. package/src/components/JfbBaseRecharge/JfbBaseRecharge.vue +54 -8
  151. package/src/components/JfbBaseRecharge/JfbBaseRechargeLess.less +18 -19
  152. package/src/components/JfbBaseRechargeOrder/Attr.js +32 -22
  153. package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrder.vue +12 -7
  154. package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrderLess.less +18 -19
  155. package/src/components/JfbBaseRechargeOrderDetail/JfbBaseRechargeOrderDetailLess.less +18 -19
  156. package/src/components/JfbBaseRechargeSuccess/Attr.js +10 -8
  157. package/src/components/JfbBaseRechargeSuccess/JfbBaseRechargeSuccessLess.less +18 -19
  158. package/src/components/JfbBaseSearch/Attr.js +6 -148
  159. package/src/components/JfbBaseSearch/JfbBaseSearch.vue +8 -37
  160. package/src/components/JfbBaseSearch/JfbBaseSearchLess.less +18 -19
  161. package/src/components/JfbBaseSetPwd/Attr.js +6 -147
  162. package/src/components/JfbBaseSetPwd/JfbBaseSetPwdLess.less +18 -19
  163. package/src/components/JfbBaseSuccess/Attr.js +89 -19
  164. package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +48 -26
  165. package/src/components/JfbBaseSuccess/JfbBaseSuccessLess.less +18 -19
  166. package/src/components/JfbBaseSuccess/Mock.js +8 -0
  167. package/src/components/JfbBaseTestApi/JfbBaseTestApi.vue +9 -9
  168. package/src/components/JfbBaseTestApi/JfbBaseTestApiLess.less +18 -19
  169. package/src/components/JfbBaseTestBody/JfbBaseTestBodyLess.less +18 -19
  170. package/src/components/JfbBaseTestBottom/JfbBaseTestBottomLess.less +18 -19
  171. package/src/components/JfbBaseTestNotice/JfbBaseTestNoticeLess.less +18 -19
  172. package/src/components/JfbBaseTestTop/JfbBaseTestTopLess.less +18 -19
  173. package/src/components/JfbBaseUserCenter/Attr.js +72 -53
  174. package/src/components/JfbBaseUserCenter/JfbBaseUserCenter.vue +40 -27
  175. package/src/components/JfbBaseUserCenter/JfbBaseUserCenterLess.less +18 -19
  176. package/src/components/JfbBaseUserInfo/Attr.js +54 -45
  177. package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +21 -21
  178. package/src/components/JfbBaseUserInfo/JfbBaseUserInfoLess.less +18 -19
  179. package/src/components/JfbBaseUserOrder/Attr.js +119 -94
  180. package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +21 -7
  181. package/src/components/JfbBaseUserOrder/JfbBaseUserOrderLess.less +18 -19
  182. package/src/components/JfbBaseVideo/Attr.js +72 -19
  183. package/src/components/JfbBaseVideo/JfbBaseVideo.vue +69 -28
  184. package/src/components/JfbBaseVideo/JfbBaseVideoLess.less +18 -19
  185. package/src/components/JfbBaseVideo/XdVideo.vue +6 -44
  186. package/src/components/JfbBaseWallet/Attr.js +27 -19
  187. package/src/components/JfbBaseWallet/JfbBaseWalletLess.less +18 -19
  188. package/src/components/JfbBaseWalletDetail/Attr.js +2 -6
  189. package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetailLess.less +18 -19
  190. package/src/components/JfbBaseWalletEffective/JfbBaseWalletEffectiveLess.less +18 -19
  191. package/src/components/JfbBaseWalletIndex/Attr.js +3 -1
  192. package/src/components/JfbBaseWalletIndex/JfbBaseWalletIndexLess.less +18 -19
  193. package/src/components/JfbBaseWalletItem/Attr.js +3 -1
  194. package/src/components/JfbBaseWalletItem/JfbBaseWalletItemLess.less +18 -19
  195. package/src/components/JfbBaseWebview/JfbBaseWebviewLess.less +18 -19
  196. package/src/components/JfbBaseWxAuthorize/Api.js +3 -3
  197. package/src/components/JfbBaseWxAuthorize/Attr.js +31 -3
  198. package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorize.vue +34 -28
  199. package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorizeLess.less +18 -19
  200. package/src/components/JfbBaseWxAuthorizeError/Attr.js +21 -17
  201. package/src/components/JfbBaseWxAuthorizeError/JfbBaseWxAuthorizeError.vue +4 -4
  202. package/src/components/JfbBaseWxAuthorizeError/JfbBaseWxAuthorizeErrorLess.less +18 -19
  203. package/src/components/JfbBaseLine/Attr.js +0 -59
  204. package/src/components/JfbBaseLine/JfbBaseLine.vue +0 -105
  205. package/src/components/JfbBaseLine/JfbBaseLineLess.less +0 -80
  206. package/src/components/JfbBaseLine/JfbBaseLineMixin.js +0 -30
  207. package/src/components/JfbBasePosterType/Screen.vue +0 -284
  208. package/src/components/JfbBaseSearch/Api.js +0 -60
  209. package/src/components/JfbBaseSearch/Mock.js +0 -5
@@ -13,15 +13,15 @@
13
13
  <view class="jfb-base-poster-entry__edit-icon" @click="delEdit">删除</view>
14
14
  </view>
15
15
  <!-- #endif -->
16
- <view class="jfb-base-poster-entry__body">
16
+ <view class="jfb-base-poster-entry__body" v-if="noData === false && entry !== null">
17
+ <view class="x-line"></view>
17
18
  <view
18
19
  class="jfb-base-poster-entry__body-box"
19
20
  :class="{
20
21
  one: type ==='1',
21
22
  two: type ==='2'
22
23
  }"
23
- v-if="noData === false && entry !== null"
24
- :style="{margin: marginOut}"
24
+ :style="{margin: marginUi}"
25
25
  >
26
26
  <view
27
27
  v-for="item in list"
@@ -41,7 +41,6 @@
41
41
  ></image>
42
42
  </view>
43
43
  </view>
44
-
45
44
  </view>
46
45
  </view>
47
46
  </template>
@@ -65,6 +64,7 @@
65
64
  return {
66
65
  noData: false,
67
66
  entry: null,
67
+ params:{},
68
68
 
69
69
  //style
70
70
  type:'1',
@@ -73,39 +73,12 @@
73
73
  radius: '0',
74
74
  useNumber: 0,
75
75
  padding: 0,
76
- margin: {
77
- top: 0,
78
- bottom: 0,
79
- left: 0,
80
- right: 0
81
- },
82
- list: [],
76
+ margin: {},
83
77
 
84
- //测试数据
85
- test: {
86
- "content_id": "KpBbUKdj4aBejwe7Fh1ki",
87
- "position_id": "QCk3PmoyQmOWRP1SxnYR3",
88
- "partner_id": 0,
89
- "site_id": "",
90
- "content_name": "测试.",
91
- "image_url": "//dummyimage.com/200x200",
92
- "redirect_type": "EMP",
93
- "redirect_type_name": "无链接",
94
- "redirect_data": "",
95
- "sort": "",
96
- "status": "",
97
- "start_time": "",
98
- "end_time": "",
99
- "op_user_id": "",
100
- "created_time": 0,
101
- "updated_time": 0
102
- }
78
+ list: [],
103
79
  }
104
80
  },
105
81
  computed:{
106
- marginOut(){
107
- return `${this.margin.top || 0}rpx ${this.margin.right || 0}rpx ${this.margin.bottom || 0}rpx ${this.margin.left || 0}rpx`
108
- },
109
82
  marginRightIn(){
110
83
  if (this.entry.type === '1') {
111
84
  return 0;
@@ -121,11 +94,28 @@
121
94
  let margin = Number(this.margin.left + this.margin.right) * this.$rpxNum;
122
95
  return `calc(50% - ${padding}px)`
123
96
  }
97
+ },
98
+ marginUi(){
99
+ let str = `${this.checkValue(this.margin.top, 0)}rpx`;
100
+ str = `${str} ${this.checkValue(this.margin.right, 0)}rpx`;
101
+ str = `${str} ${this.checkValue(this.margin.bottom, 0)}rpx`;
102
+ str = `${str} ${this.checkValue(this.margin.left, 0)}rpx`;
103
+ return str
124
104
  }
125
105
  },
126
106
  watch: {
127
- container(value) {
128
- if (this.$configProject['isPreview']) this.init(value)
107
+ container(value,oloValue) {
108
+ if(JSON.stringify(value) === JSON.stringify(oloValue)) return;
109
+ if (this.$configProject['isPreview']){
110
+ this.init(value);
111
+ this.onJfbLoad(this.params)
112
+ }
113
+ },
114
+
115
+ useNumber(){
116
+ if (this.$configProject['isPreview']){
117
+ this.onJfbLoad(this.params)
118
+ }
129
119
  }
130
120
  },
131
121
  created() {
@@ -180,8 +170,8 @@
180
170
 
181
171
  getTestData() {
182
172
  let temp = [];
183
- for (let i = 0; i < this.useNumber; i++) {
184
- let item = this.$xdUniHelper.cloneDeep(this.test);
173
+ for (let i = 0; i < (this.useNumber); i++) {
174
+ let item = this.$xdUniHelper.cloneDeep(this['posterTest']);
185
175
  item.content_id = i;
186
176
  item.content_name = item.content_name + i;
187
177
  item.image_url = `//dummyimage.com/${this.width}x${this.height}`;
@@ -201,7 +191,6 @@
201
191
  },
202
192
  })
203
193
  .then(res => {
204
- console.log('getListPosterContent', res)
205
194
  if (res.list.length === 0 && this.$configProject.isPreview) {
206
195
  res.list = this.getTestData();
207
196
  }
@@ -212,13 +201,18 @@
212
201
  image_url: getServiceUrl(item.image_url)
213
202
  }
214
203
  });
215
- if(list.length > 0 && list.length%2 !==0) {
216
- list.push({
217
- ...this.$xdUniHelper.cloneDeep(this.test),
218
- typeEmpty: true
219
- })
204
+
205
+ //当使用2分屏并且返回当列表长度为奇数,需要补全
206
+ if(this.type === '2') {
207
+ if(list.length > 0 && list.length%2 !==0) {
208
+ list.push({
209
+ ...this.$xdUniHelper.cloneDeep(this['posterTest']),
210
+ typeEmpty: true
211
+ })
212
+ }
220
213
  }
221
214
 
215
+
222
216
  this.list = list;
223
217
  this.noData = this.list.length === 0;
224
218
  })
@@ -226,20 +220,21 @@
226
220
  console.error(error)
227
221
  })
228
222
  },
223
+
224
+
229
225
  /**
230
226
  * @description 监听事件变化
231
227
  * @param container {object} 业务组件对象自己
232
228
  */
233
229
  init(container) {
234
230
  this.useNumber = getContainerPropsValue(container, 'content.number', 1);
235
- this.radius = getContainerPropsValue(container, 'content.radius', '0');
236
- this.padding = getContainerPropsValue(container, 'content.padding', '0');
237
- this.margin = getContainerPropsValue(container, 'content.margin', { top: 0, bottom: 0, left: 0, right: 0});
238
-
231
+ this.radius = getContainerPropsValue(container, 'content.radius', '20');
232
+ this.padding = getContainerPropsValue(container, 'content.padding', '20');
233
+ this.margin = getContainerPropsValue(container, 'content.margin', { });
239
234
  this.entry = getContainerPropsValue(container, 'content.entry', null);
240
235
  if(this.entry !== null) {
241
- this.width = this.entry.size.width;
242
- this.height = this.entry.size.height;
236
+ this.width = this.checkValue(this.entry.size.width, 750);
237
+ this.height = this.checkValue(this.entry.size.height, 320);
243
238
  this.type = this.entry.type;
244
239
  }
245
240
  },
@@ -13,9 +13,7 @@
13
13
 
14
14
  //start
15
15
  .jfb-base-poster-entry {
16
- border: 1px dashed rgba(0, 0, 0, 0);
17
16
  box-sizing: border-box;
18
- min-height: unit(50, rpx);
19
17
 
20
18
  &__body{
21
19
  position: relative;
@@ -23,21 +21,22 @@
23
21
  z-index: 2
24
22
  }
25
23
 
26
- &.editx {
24
+ &.editx,&.editx:hover {
27
25
  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
- }
26
+ min-height: unit(100, rpx);
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-entry {
75
- &:before {
76
- content: " ";
77
- display: table;
78
- }
74
+ //&:before {
75
+ //content: " ";
76
+ //display: table;
77
+ //}
79
78
  }
80
79
  /**endNotPreview**/
@@ -17,15 +17,15 @@ export default {
17
17
  if (!params['carouselTime']) params['carouselTime'] = 5;
18
18
  return [
19
19
  {
20
- label: '导航配置:', //label
21
- ele: 'xd-site-poster', //package 名称
22
- valueKey: 'nav', //form[valueKey]
20
+ label: '导航配置:',
21
+ ele: 'xd-site-poster',
22
+ valueKey: 'nav',
23
23
  className: 'input80',
24
+ groupKey:'content',
24
25
  value: params.nav || {
25
26
  size: {height: 200, width: 200},
26
27
  type: '1'
27
28
  },
28
- disabled: false,
29
29
  setting: {
30
30
  count: 1,
31
31
  disabled: true,
@@ -228,17 +228,33 @@ export default {
228
228
  loading.close()
229
229
  }
230
230
  },
231
- inline: false,
232
- notice: '',
233
- rules: [
234
- {required: true, message: '请选择广告位置', trigger: 'change'},
235
- ],
231
+ rules: [{
232
+ required: true,
233
+ validator: (rule, value, callback) => {
234
+ let message = '请设置导航相关内容';
235
+ if(!value) {
236
+ callback(message);
237
+ return;
238
+ }
239
+ if(value.size && !value.size.height){
240
+ callback(message);
241
+ return
242
+ }
243
+
244
+ if(value.size && !value.size.width){
245
+ callback(message);
246
+ return
247
+ }
248
+ callback()
249
+ },trigger: ['blur', 'change']
250
+ }],
236
251
  },
237
252
  {
238
253
  label: '导航显示方式:',
239
254
  ele: 'xd-radio',
240
255
  valueKey: 'isCarousel',
241
256
  value: params['isCarousel'],
257
+ groupKey:'content',
242
258
  rules: [
243
259
  {required: true, message: '请选择导航显示方式', trigger: ['blur', 'change']}
244
260
  ],
@@ -252,10 +268,11 @@ export default {
252
268
  ele: 'el-input',
253
269
  type: 'number',
254
270
  isKey: true,
271
+ groupKey:'content',
255
272
  valueKey: 'carouselTime',
256
273
  value: params.carouselTime,
257
274
  placeholder: '请输入导航轮播周期,单位秒',
258
- className: 'input40',
275
+ className: 'input60',
259
276
  unit: '秒',
260
277
  rules: [
261
278
  {
@@ -269,8 +286,9 @@ export default {
269
286
  label: '导航内容显示列数:',
270
287
  ele: 'xd-select-list',
271
288
  valueKey: 'cells',
289
+ groupKey:'content',
272
290
  value: params.cells,
273
- className: 'input80',
291
+ className: 'input60',
274
292
  list: [
275
293
  {"label": "四列", "value": 4},
276
294
  {"label": '五列', "value": 5},
@@ -280,22 +298,42 @@ export default {
280
298
  label: '导航内容显示行数:',
281
299
  ele: 'xd-select-list',
282
300
  valueKey: 'jdRows',
301
+ groupKey:'content',
283
302
  value: params.jdRows,
284
- className: 'input80',
303
+ className: 'input60',
285
304
  list: [
286
305
  {"label": "一行", "value": 1},
287
306
  {"label": "两行", "value": 2},
288
307
  {"label": "三行", "value": 3},
289
308
  ]
290
309
  },
310
+ {
311
+ label: '导航内容置使用张数:',
312
+ ele: 'el-input',
313
+ type: 'number',
314
+ valueKey: 'number',
315
+ groupKey:'content',
316
+ value: params.number,
317
+ placeholder: '请输入导航内容置使用张数',
318
+ className: 'input60',
319
+ unit:'张',
320
+ rules: [
321
+ {
322
+ required: true,
323
+ message: '请输入导航内容置使用张数',
324
+ trigger: 'blur'
325
+ },
326
+ ]
327
+ },
291
328
  {
292
329
  label: '导航ICON圆角设置:',
293
330
  ele: 'xd-site-select-list',
294
331
  valueKey: 'radius',
295
332
  value: params['radius'],
333
+ groupKey:'style',
296
334
  placeholder: '请选择导航ICON圆角设置',
297
335
  multiple: false,
298
- className: 'input80',
336
+ className: 'input60',
299
337
  handleCustom({action, data}) {
300
338
  XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
301
339
  .then(res => {
@@ -310,65 +348,48 @@ export default {
310
348
  label: '导航ICON是否阴影设置:',
311
349
  ele: 'xd-radio',
312
350
  valueKey: 'shadow',
351
+ groupKey:'style',
313
352
  value: params['shadow'],
314
353
  placeholder: '请选择导航ICON阴影设置',
315
- className: 'input80',
354
+ className: 'input60',
316
355
  list: [
317
356
  {"label": "是", "value": 1},
318
357
  {"label": "否", "value": 2},
319
358
  ]
320
359
  },
321
- {
322
- label: '导航内容置使用张数:',
323
- ele: 'el-input',
324
- type: 'number',
325
- valueKey: 'number',
326
- value: params.number,
327
- placeholder: '请输入导航内容置使用张数',
328
- className: 'input40',
329
- unit:'张',
330
- rules: [
331
- {
332
- required: true,
333
- message: '请输入导航内容置使用张数',
334
- trigger: 'blur'
335
- },
336
- ]
360
+ params['shadow'] === 1&& {
361
+ label: '导航ICON阴影颜色配置:',
362
+ ele: 'xd-color',
363
+ valueKey: 'shadowColor',
364
+ groupKey:'style',
365
+ value: params['shadowColor'] || '',
366
+ placeholder: '导航ICON阴影颜色配置',
367
+ classNmae: 'input60',
337
368
  },
338
369
  {
339
370
  ele: 'title',
340
371
  label: '样式设置',
341
- size: 'small', //default/mini/small
342
- },
343
- {
344
- label: '内容设置外边距:',
345
- ele: 'xd-margin-padding',
346
- valueKey: 'margin',
347
- value: params.margin || null,
348
- disabled: false,
349
- setting: {
350
- type: 'margin',
351
- },
352
- placeholder: '请设置外边距',
353
- inline: false,
354
- notice: '设置外边距,<span style="color: red">单位:像素</span>。默认值:0像素',
372
+ size: 'small',
373
+ groupKey:'style',
355
374
  },
356
375
  {
357
376
  label: '背景颜色:',
358
377
  ele: 'xd-color',
359
378
  valueKey: 'bgColor',
379
+ groupKey:'style',
360
380
  value: params['bgColor'] || '',
361
381
  placeholder: '请选择背景颜色',
362
- classNmae: 'input80',
382
+ classNmae: 'input60',
363
383
  },
364
384
  {
365
385
  label: '背景圆角设置:',
366
386
  ele: 'xd-site-select-list',
367
387
  valueKey: 'bgRadius',
368
388
  value: params['bgRadius'],
389
+ groupKey:'style',
369
390
  placeholder: '请选择背景圆角设置',
370
391
  multiple: false,
371
- className: 'input80',
392
+ className: 'input60',
372
393
  handleCustom({action, data}) {
373
394
  XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
374
395
  .then(res => {
@@ -383,11 +404,24 @@ export default {
383
404
  label: '文字颜色:',
384
405
  ele: 'xd-color',
385
406
  valueKey: 'textColor',
407
+ groupKey:'style',
386
408
  value: params['textColor'] || '',
387
- placeholder: '请选择背景颜色',
409
+ placeholder: '请选择文字颜色',
388
410
  classNmae: 'input80',
389
411
  },
390
-
412
+ {
413
+ label: '内容设置外边距:',
414
+ ele: 'xd-margin-padding',
415
+ valueKey: 'margin',
416
+ groupKey:'style',
417
+ value: params.margin || null,
418
+ setting: {
419
+ type: 'margin',
420
+ },
421
+ placeholder: '请设置外边距',
422
+ inline: false,
423
+ notice: '设置外边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">0</span> 像素',
424
+ },
391
425
  ].filter(i=>i)
392
426
  },
393
427
  advanced: [
@@ -22,7 +22,7 @@
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
  >
@@ -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() {
@@ -172,6 +175,7 @@
172
175
  }, 100)
173
176
  },
174
177
  handleClick(item) {
178
+ debugger
175
179
  //内部链接跳转地址
176
180
  if (item.redirect_type === 'INN') {
177
181
  try {
@@ -240,6 +244,7 @@
240
244
  display: flex;
241
245
  justify-content: flex-start;
242
246
  align-items: flex-start;
247
+ align-content: flex-start;
243
248
  flex-wrap: wrap;
244
249
  overflow: hidden;
245
250
 
@@ -339,6 +344,7 @@
339
344
  display: flex;
340
345
  justify-content: flex-start;
341
346
  align-items: flex-start;
347
+ align-content: flex-start;
342
348
  flex-wrap: wrap;
343
349
  overflow: hidden;
344
350