jufubao-base 1.0.130-beta5 → 1.0.131

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 +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 +6 -8
  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 +7 -3
  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/JfbBaseSuccess.vue +3 -2
  163. package/src/components/JfbBaseSuccess/JfbBaseSuccessLess.less +19 -18
  164. package/src/components/JfbBaseTestApi/JfbBaseTestApiLess.less +19 -18
  165. package/src/components/JfbBaseTestBody/JfbBaseTestBodyLess.less +19 -18
  166. package/src/components/JfbBaseTestBottom/JfbBaseTestBottomLess.less +19 -18
  167. package/src/components/JfbBaseTestNotice/JfbBaseTestNoticeLess.less +19 -18
  168. package/src/components/JfbBaseTestTop/JfbBaseTestTopLess.less +19 -18
  169. package/src/components/JfbBaseUserCenter/Attr.js +53 -72
  170. package/src/components/JfbBaseUserCenter/JfbBaseUserCenter.vue +27 -40
  171. package/src/components/JfbBaseUserCenter/JfbBaseUserCenterLess.less +19 -18
  172. package/src/components/JfbBaseUserInfo/Attr.js +45 -54
  173. package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +21 -21
  174. package/src/components/JfbBaseUserInfo/JfbBaseUserInfoLess.less +19 -18
  175. package/src/components/JfbBaseUserOrder/Attr.js +92 -118
  176. package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +7 -21
  177. package/src/components/JfbBaseUserOrder/JfbBaseUserOrderLess.less +19 -18
  178. package/src/components/JfbBaseVideo/Attr.js +19 -72
  179. package/src/components/JfbBaseVideo/JfbBaseVideo.vue +28 -69
  180. package/src/components/JfbBaseVideo/JfbBaseVideoLess.less +19 -18
  181. package/src/components/JfbBaseVideo/XdVideo.vue +44 -6
  182. package/src/components/JfbBaseWallet/JfbBaseWalletLess.less +19 -18
  183. package/src/components/{JfbBaseClear → JfbBaseWalletDetail}/Attr.js +0 -1
  184. package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetailLess.less +19 -18
  185. package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetailMixin.js +12 -0
  186. package/src/components/JfbBaseWalletEffective/JfbBaseWalletEffectiveLess.less +19 -18
  187. package/src/components/JfbBaseWalletIndex/JfbBaseWalletIndexLess.less +19 -18
  188. package/src/components/JfbBaseWalletItem/JfbBaseWalletItemLess.less +19 -18
  189. package/src/components/JfbBaseWebview/JfbBaseWebviewLess.less +19 -18
  190. package/src/components/JfbBaseWxAuthorize/Attr.js +3 -31
  191. package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorize.vue +26 -32
  192. package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorizeLess.less +19 -18
  193. package/src/components/JfbBaseWxAuthorizeError/Attr.js +17 -21
  194. package/src/components/JfbBaseWxAuthorizeError/JfbBaseWxAuthorizeErrorLess.less +19 -18
  195. package/src/components/JfbBaseCardShift/Mock.js +0 -21
@@ -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" v-if="noData === false && entry !== null">
17
- <view class="x-line"></view>
16
+ <view class="jfb-base-poster-entry__body">
18
17
  <view
19
18
  class="jfb-base-poster-entry__body-box"
20
19
  :class="{
21
20
  one: type ==='1',
22
21
  two: type ==='2'
23
22
  }"
24
- :style="{margin: marginUi}"
23
+ v-if="noData === false && entry !== null"
24
+ :style="{margin: marginOut}"
25
25
  >
26
26
  <view
27
27
  v-for="item in list"
@@ -41,6 +41,7 @@
41
41
  ></image>
42
42
  </view>
43
43
  </view>
44
+
44
45
  </view>
45
46
  </view>
46
47
  </template>
@@ -64,7 +65,6 @@
64
65
  return {
65
66
  noData: false,
66
67
  entry: null,
67
- params:{},
68
68
 
69
69
  //style
70
70
  type:'1',
@@ -73,12 +73,39 @@
73
73
  radius: '0',
74
74
  useNumber: 0,
75
75
  padding: 0,
76
- margin: {},
77
-
76
+ margin: {
77
+ top: 0,
78
+ bottom: 0,
79
+ left: 0,
80
+ right: 0
81
+ },
78
82
  list: [],
83
+
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
+ }
79
103
  }
80
104
  },
81
105
  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
+ },
82
109
  marginRightIn(){
83
110
  if (this.entry.type === '1') {
84
111
  return 0;
@@ -94,28 +121,11 @@
94
121
  let margin = Number(this.margin.left + this.margin.right) * this.$rpxNum;
95
122
  return `calc(50% - ${padding}px)`
96
123
  }
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
104
124
  }
105
125
  },
106
126
  watch: {
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
- }
127
+ container(value) {
128
+ if (this.$configProject['isPreview']) this.init(value)
119
129
  }
120
130
  },
121
131
  created() {
@@ -176,8 +186,8 @@
176
186
 
177
187
  getTestData() {
178
188
  let temp = [];
179
- for (let i = 0; i < (this.useNumber); i++) {
180
- let item = this.$xdUniHelper.cloneDeep(this['posterTest']);
189
+ for (let i = 0; i < this.useNumber; i++) {
190
+ let item = this.$xdUniHelper.cloneDeep(this.test);
181
191
  item.content_id = i;
182
192
  item.content_name = item.content_name + i;
183
193
  item.image_url = `//dummyimage.com/${this.width}x${this.height}`;
@@ -197,6 +207,7 @@
197
207
  },
198
208
  })
199
209
  .then(res => {
210
+ console.log('getListPosterContent', res)
200
211
  if (res.list.length === 0 && this.$configProject.isPreview) {
201
212
  res.list = this.getTestData();
202
213
  }
@@ -207,18 +218,13 @@
207
218
  image_url: getServiceUrl(item.image_url)
208
219
  }
209
220
  });
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
- }
221
+ if(list.length > 0 && list.length%2 !==0) {
222
+ list.push({
223
+ ...this.$xdUniHelper.cloneDeep(this.test),
224
+ typeEmpty: true
225
+ })
219
226
  }
220
227
 
221
-
222
228
  this.list = list;
223
229
  this.noData = this.list.length === 0;
224
230
  })
@@ -226,21 +232,20 @@
226
232
  console.error(error)
227
233
  })
228
234
  },
229
-
230
-
231
235
  /**
232
236
  * @description 监听事件变化
233
237
  * @param container {object} 业务组件对象自己
234
238
  */
235
239
  init(container) {
236
240
  this.useNumber = getContainerPropsValue(container, 'content.number', 1);
237
- this.radius = getContainerPropsValue(container, 'content.radius', '20');
238
- this.padding = getContainerPropsValue(container, 'content.padding', '20');
239
- this.margin = getContainerPropsValue(container, 'content.margin', { });
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
+
240
245
  this.entry = getContainerPropsValue(container, 'content.entry', null);
241
246
  if(this.entry !== null) {
242
- this.width = this.checkValue(this.entry.size.width, 750);
243
- this.height = this.checkValue(this.entry.size.height, 320);
247
+ this.width = this.entry.size.width;
248
+ this.height = this.entry.size.height;
244
249
  this.type = this.entry.type;
245
250
  }
246
251
  },
@@ -13,8 +13,9 @@
13
13
 
14
14
  //start
15
15
  .jfb-base-poster-entry {
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-entry {
74
- //&:before {
75
- //content: " ";
76
- //display: table;
77
- //}
75
+ &:before {
76
+ content: " ";
77
+ display: table;
78
+ }
78
79
  }
79
80
  /**endNotPreview**/
@@ -17,15 +17,15 @@ export default {
17
17
  if (!params['carouselTime']) params['carouselTime'] = 5;
18
18
  return [
19
19
  {
20
- label: '导航配置:',
21
- ele: 'xd-site-poster',
22
- valueKey: 'nav',
20
+ label: '导航配置:', //label
21
+ ele: 'xd-site-poster', //package 名称
22
+ valueKey: 'nav', //form[valueKey]
23
23
  className: 'input80',
24
- groupKey:'content',
25
24
  value: params.nav || {
26
25
  size: {height: 200, width: 200},
27
26
  type: '1'
28
27
  },
28
+ disabled: false,
29
29
  setting: {
30
30
  count: 1,
31
31
  disabled: true,
@@ -228,33 +228,17 @@ export default {
228
228
  loading.close()
229
229
  }
230
230
  },
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
- }],
231
+ inline: false,
232
+ notice: '',
233
+ rules: [
234
+ {required: true, message: '请选择广告位置', trigger: 'change'},
235
+ ],
251
236
  },
252
237
  {
253
238
  label: '导航显示方式:',
254
239
  ele: 'xd-radio',
255
240
  valueKey: 'isCarousel',
256
241
  value: params['isCarousel'],
257
- groupKey:'content',
258
242
  rules: [
259
243
  {required: true, message: '请选择导航显示方式', trigger: ['blur', 'change']}
260
244
  ],
@@ -268,11 +252,10 @@ export default {
268
252
  ele: 'el-input',
269
253
  type: 'number',
270
254
  isKey: true,
271
- groupKey:'content',
272
255
  valueKey: 'carouselTime',
273
256
  value: params.carouselTime,
274
257
  placeholder: '请输入导航轮播周期,单位秒',
275
- className: 'input60',
258
+ className: 'input40',
276
259
  unit: '秒',
277
260
  rules: [
278
261
  {
@@ -286,9 +269,8 @@ export default {
286
269
  label: '导航内容显示列数:',
287
270
  ele: 'xd-select-list',
288
271
  valueKey: 'cells',
289
- groupKey:'content',
290
272
  value: params.cells,
291
- className: 'input60',
273
+ className: 'input80',
292
274
  list: [
293
275
  {"label": "四列", "value": 4},
294
276
  {"label": '五列', "value": 5},
@@ -298,42 +280,22 @@ export default {
298
280
  label: '导航内容显示行数:',
299
281
  ele: 'xd-select-list',
300
282
  valueKey: 'jdRows',
301
- groupKey:'content',
302
283
  value: params.jdRows,
303
- className: 'input60',
284
+ className: 'input80',
304
285
  list: [
305
286
  {"label": "一行", "value": 1},
306
287
  {"label": "两行", "value": 2},
307
288
  {"label": "三行", "value": 3},
308
289
  ]
309
290
  },
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
- },
328
291
  {
329
292
  label: '导航ICON圆角设置:',
330
293
  ele: 'xd-site-select-list',
331
294
  valueKey: 'radius',
332
295
  value: params['radius'],
333
- groupKey:'style',
334
296
  placeholder: '请选择导航ICON圆角设置',
335
297
  multiple: false,
336
- className: 'input60',
298
+ className: 'input80',
337
299
  handleCustom({action, data}) {
338
300
  XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
339
301
  .then(res => {
@@ -348,48 +310,65 @@ export default {
348
310
  label: '导航ICON是否阴影设置:',
349
311
  ele: 'xd-radio',
350
312
  valueKey: 'shadow',
351
- groupKey:'style',
352
313
  value: params['shadow'],
353
314
  placeholder: '请选择导航ICON阴影设置',
354
- className: 'input60',
315
+ className: 'input80',
355
316
  list: [
356
317
  {"label": "是", "value": 1},
357
318
  {"label": "否", "value": 2},
358
319
  ]
359
320
  },
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',
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
+ ]
368
337
  },
369
338
  {
370
339
  ele: 'title',
371
340
  label: '样式设置',
372
- size: 'small',
373
- groupKey:'style',
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像素',
374
355
  },
375
356
  {
376
357
  label: '背景颜色:',
377
358
  ele: 'xd-color',
378
359
  valueKey: 'bgColor',
379
- groupKey:'style',
380
360
  value: params['bgColor'] || '',
381
361
  placeholder: '请选择背景颜色',
382
- classNmae: 'input60',
362
+ classNmae: 'input80',
383
363
  },
384
364
  {
385
365
  label: '背景圆角设置:',
386
366
  ele: 'xd-site-select-list',
387
367
  valueKey: 'bgRadius',
388
368
  value: params['bgRadius'],
389
- groupKey:'style',
390
369
  placeholder: '请选择背景圆角设置',
391
370
  multiple: false,
392
- className: 'input60',
371
+ className: 'input80',
393
372
  handleCustom({action, data}) {
394
373
  XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
395
374
  .then(res => {
@@ -404,24 +383,11 @@ export default {
404
383
  label: '文字颜色:',
405
384
  ele: 'xd-color',
406
385
  valueKey: 'textColor',
407
- groupKey:'style',
408
386
  value: params['textColor'] || '',
409
- placeholder: '请选择文字颜色',
387
+ placeholder: '请选择背景颜色',
410
388
  classNmae: 'input80',
411
389
  },
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
- },
390
+
425
391
  ].filter(i=>i)
426
392
  },
427
393
  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 ${config.shadowColor}` : '',
25
+ boxShadow: config.shadow === 1? `0 0 8rpx rgba(0, 0, 0, .3)` : '',
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: boxHeight + 'px'
67
+ height: (height) + 'px'
68
68
  }"
69
69
  @click="handleClick(it)"
70
70
  >
@@ -126,9 +126,6 @@
126
126
  rpxText(){
127
127
  return this.$rpxNum * this.text
128
128
  },
129
- boxHeight(){
130
- return this.height + this.$rpxNum * this.text;
131
- }
132
129
  },
133
130
  watch: {
134
131
  config() {
@@ -175,7 +172,6 @@
175
172
  }, 100)
176
173
  },
177
174
  handleClick(item) {
178
- debugger
179
175
  //内部链接跳转地址
180
176
  if (item.redirect_type === 'INN') {
181
177
  try {
@@ -248,7 +244,6 @@
248
244
  display: flex;
249
245
  justify-content: flex-start;
250
246
  align-items: flex-start;
251
- align-content: flex-start;
252
247
  flex-wrap: wrap;
253
248
  overflow: hidden;
254
249
 
@@ -348,7 +343,6 @@
348
343
  display: flex;
349
344
  justify-content: flex-start;
350
345
  align-items: flex-start;
351
- align-content: flex-start;
352
346
  flex-wrap: wrap;
353
347
  overflow: hidden;
354
348