jufubao-base 1.0.132-beta1 → 1.0.132-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 +6 -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/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
@@ -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() {
@@ -186,8 +176,8 @@
186
176
 
187
177
  getTestData() {
188
178
  let temp = [];
189
- for (let i = 0; i < this.useNumber; i++) {
190
- let item = this.$xdUniHelper.cloneDeep(this.test);
179
+ for (let i = 0; i < (this.useNumber); i++) {
180
+ let item = this.$xdUniHelper.cloneDeep(this['posterTest']);
191
181
  item.content_id = i;
192
182
  item.content_name = item.content_name + i;
193
183
  item.image_url = `//dummyimage.com/${this.width}x${this.height}`;
@@ -207,7 +197,6 @@
207
197
  },
208
198
  })
209
199
  .then(res => {
210
- console.log('getListPosterContent', res)
211
200
  if (res.list.length === 0 && this.$configProject.isPreview) {
212
201
  res.list = this.getTestData();
213
202
  }
@@ -218,13 +207,18 @@
218
207
  image_url: getServiceUrl(item.image_url)
219
208
  }
220
209
  });
221
- if(list.length > 0 && list.length%2 !==0) {
222
- list.push({
223
- ...this.$xdUniHelper.cloneDeep(this.test),
224
- typeEmpty: true
225
- })
210
+
211
+ //当使用2分屏并且返回当列表长度为奇数,需要补全
212
+ if(this.type === '2') {
213
+ if(list.length > 0 && list.length%2 !==0) {
214
+ list.push({
215
+ ...this.$xdUniHelper.cloneDeep(this['posterTest']),
216
+ typeEmpty: true
217
+ })
218
+ }
226
219
  }
227
220
 
221
+
228
222
  this.list = list;
229
223
  this.noData = this.list.length === 0;
230
224
  })
@@ -232,20 +226,21 @@
232
226
  console.error(error)
233
227
  })
234
228
  },
229
+
230
+
235
231
  /**
236
232
  * @description 监听事件变化
237
233
  * @param container {object} 业务组件对象自己
238
234
  */
239
235
  init(container) {
240
236
  this.useNumber = getContainerPropsValue(container, 'content.number', 1);
241
- this.radius = getContainerPropsValue(container, 'content.radius', '0');
242
- this.padding = getContainerPropsValue(container, 'content.padding', '0');
243
- this.margin = getContainerPropsValue(container, 'content.margin', { top: 0, bottom: 0, left: 0, right: 0});
244
-
237
+ this.radius = getContainerPropsValue(container, 'content.radius', '20');
238
+ this.padding = getContainerPropsValue(container, 'content.padding', '20');
239
+ this.margin = getContainerPropsValue(container, 'content.margin', { });
245
240
  this.entry = getContainerPropsValue(container, 'content.entry', null);
246
241
  if(this.entry !== null) {
247
- this.width = this.entry.size.width;
248
- this.height = this.entry.size.height;
242
+ this.width = this.checkValue(this.entry.size.width, 750);
243
+ this.height = this.checkValue(this.entry.size.height, 320);
249
244
  this.type = this.entry.type;
250
245
  }
251
246
  },
@@ -13,9 +13,8 @@
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);
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-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 {
@@ -244,6 +248,7 @@
244
248
  display: flex;
245
249
  justify-content: flex-start;
246
250
  align-items: flex-start;
251
+ align-content: flex-start;
247
252
  flex-wrap: wrap;
248
253
  overflow: hidden;
249
254
 
@@ -343,6 +348,7 @@
343
348
  display: flex;
344
349
  justify-content: flex-start;
345
350
  align-items: flex-start;
351
+ align-content: flex-start;
346
352
  flex-wrap: wrap;
347
353
  overflow: hidden;
348
354