jufubao-base 1.0.134-beta9 → 1.0.135

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 (210) 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 +36 -78
  20. package/src/components/JfbBaseCard/JfbBaseCard.vue +2 -2
  21. package/src/components/JfbBaseCard/JfbBaseCardLess.less +19 -18
  22. package/src/components/JfbBaseCardBind/JfbBaseCardBindLess.less +19 -18
  23. package/src/components/JfbBaseCardBindV2/Attr.js +4 -5
  24. package/src/components/JfbBaseCardBindV2/JfbBaseCardBindV2.vue +1 -3
  25. package/src/components/JfbBaseCardBindV2/JfbBaseCardBindV2Less.less +19 -18
  26. package/src/components/JfbBaseCardDetail/Attr.js +3 -4
  27. package/src/components/JfbBaseCardDetail/JfbBaseCardDetailLess.less +19 -18
  28. package/src/components/JfbBaseCardDetailEntry/Attr.js +8 -10
  29. package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +13 -4
  30. package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntryLess.less +19 -18
  31. package/src/components/JfbBaseCardDisabled/Attr.js +3 -1
  32. package/src/components/JfbBaseCardDisabled/JfbBaseCardDisabledLess.less +19 -18
  33. package/src/components/JfbBaseCardDisabledEntry/JfbBaseCardDisabledEntryLess.less +19 -18
  34. package/src/components/JfbBaseCardEntry/Api.js +1 -1
  35. package/src/components/JfbBaseCardEntry/Attr.js +67 -86
  36. package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +5 -6
  37. package/src/components/JfbBaseCardEntry/JfbBaseCardEntryLess.less +19 -18
  38. package/src/components/JfbBaseCardInfo/Attr.js +16 -22
  39. package/src/components/JfbBaseCardInfo/JfbBaseCardInfoLess.less +19 -18
  40. package/src/components/JfbBaseCardInfoEntry/Attr.js +11 -16
  41. package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntryLess.less +19 -18
  42. package/src/components/JfbBaseCardMerge/Attr.js +8 -21
  43. package/src/components/JfbBaseCardMerge/JfbBaseCardMerge.vue +30 -15
  44. package/src/components/JfbBaseCardMerge/JfbBaseCardMergeLess.less +19 -18
  45. package/src/components/JfbBaseCardMergeEntry/Attr.js +6 -20
  46. package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntry.vue +25 -28
  47. package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntryLess.less +19 -18
  48. package/src/components/JfbBaseCardShift/Attr.js +4 -18
  49. package/src/components/JfbBaseCardShift/JfbBaseCardShift.vue +11 -26
  50. package/src/components/JfbBaseCardShift/JfbBaseCardShiftLess.less +19 -18
  51. package/src/components/JfbBaseCardShiftEntry/Attr.js +26 -34
  52. package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntry.vue +257 -294
  53. package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntryLess.less +19 -18
  54. package/src/components/JfbBaseCardShiftEntry/Mock.js +1 -2
  55. package/src/components/JfbBaseCardSweepInfo/Attr.js +3 -5
  56. package/src/components/JfbBaseCardSweepInfo/JfbBaseCardSweepInfoLess.less +19 -18
  57. package/src/components/JfbBaseCardV2/Attr.js +17 -21
  58. package/src/components/JfbBaseCardV2/JfbBaseCardV2.vue +5 -3
  59. package/src/components/JfbBaseCardV2/JfbBaseCardV2Less.less +19 -18
  60. package/src/components/JfbBaseCardV3/Attr.js +14 -18
  61. package/src/components/JfbBaseCardV3/JfbBaseCardV3.vue +1 -1
  62. package/src/components/JfbBaseCardV3/JfbBaseCardV3Less.less +19 -18
  63. package/src/components/JfbBaseCity/Attr.js +4 -2
  64. package/src/components/JfbBaseCity/JfbBaseCityLess.less +19 -18
  65. package/src/components/JfbBaseClear/JfbBaseClear.vue +9 -9
  66. package/src/components/JfbBaseClear/JfbBaseClearLess.less +19 -18
  67. package/src/components/JfbBaseClear/JfbBaseClearMixin.js +0 -12
  68. package/src/components/JfbBaseConDialog/Api.js +2 -2
  69. package/src/components/JfbBaseConDialog/Attr.js +14 -23
  70. package/src/components/JfbBaseConDialog/JfbBaseConDialog.vue +35 -63
  71. package/src/components/JfbBaseConDialog/JfbBaseConDialogLess.less +19 -18
  72. package/src/components/JfbBaseConDialog/Mock.js +1 -20
  73. package/src/components/JfbBaseConDialog/XdCouCardBind.vue +9 -15
  74. package/src/components/JfbBaseConList/Api.js +1 -1
  75. package/src/components/JfbBaseConList/Attr.js +224 -149
  76. package/src/components/JfbBaseConList/JfbBaseConList.vue +133 -150
  77. package/src/components/JfbBaseConList/JfbBaseConListLess.less +19 -18
  78. package/src/components/JfbBaseConPhone/JfbBaseConPhoneLess.less +19 -18
  79. package/src/components/JfbBaseEntry/Attr.js +21 -33
  80. package/src/components/JfbBaseEntry/JfbBaseEntry.vue +23 -34
  81. package/src/components/JfbBaseEntry/JfbBaseEntryLess.less +19 -18
  82. package/src/components/JfbBaseExpressDetail/JfbBaseExpressDetailLess.less +19 -18
  83. package/src/components/JfbBaseFastLink/Api.js +54 -1
  84. package/src/components/JfbBaseFastLink/Attr.js +116 -168
  85. package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +16 -12
  86. package/src/components/JfbBaseFastLink/JfbBaseFastLinkLess.less +19 -18
  87. package/src/components/JfbBaseFooter/Attr.js +22 -28
  88. package/src/components/JfbBaseFooter/JfbBaseFooter.vue +15 -19
  89. package/src/components/JfbBaseFooter/JfbBaseFooterLess.less +19 -18
  90. package/src/components/JfbBaseHeader/Attr.js +91 -89
  91. package/src/components/JfbBaseHeader/JfbBaseHeader.vue +29 -28
  92. package/src/components/JfbBaseHeader/JfbBaseHeaderLess.less +19 -18
  93. package/src/components/JfbBaseLine/Attr.js +59 -0
  94. package/src/components/JfbBaseLine/JfbBaseLine.vue +105 -0
  95. package/src/components/JfbBaseLine/JfbBaseLineLess.less +80 -0
  96. package/src/components/JfbBaseLine/JfbBaseLineMixin.js +30 -0
  97. package/src/components/JfbBaseLogin/Api.js +1 -1
  98. package/src/components/JfbBaseLogin/Attr.js +88 -111
  99. package/src/components/JfbBaseLogin/JfbBaseLogin.vue +5 -4
  100. package/src/components/JfbBaseLogin/JfbBaseLoginLess.less +19 -18
  101. package/src/components/JfbBaseLoginForgetPwd/Attr.js +45 -52
  102. package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwd.vue +14 -14
  103. package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwdLess.less +19 -18
  104. package/src/components/JfbBaseLoginSetPwd/Attr.js +4 -6
  105. package/src/components/JfbBaseLoginSetPwd/JfbBaseLoginSetPwdLess.less +19 -18
  106. package/src/components/JfbBaseMapOverlay/JfbBaseMapOverlayLess.less +19 -18
  107. package/src/components/JfbBaseMapSearch/Attr.js +15 -0
  108. package/src/components/JfbBaseMapSearch/JfbBaseMapSearch.vue +25 -1
  109. package/src/components/JfbBaseMapSearch/JfbBaseMapSearchLess.less +19 -18
  110. package/src/components/JfbBaseMergeUserCard/Attr.js +3 -4
  111. package/src/components/JfbBaseMergeUserCard/JfbBaseMergeUserCardLess.less +19 -18
  112. package/src/components/JfbBaseMultipleExpress/Attr.js +3 -4
  113. package/src/components/JfbBaseMultipleExpress/JfbBaseMultipleExpressLess.less +19 -18
  114. package/src/components/JfbBaseMy/JfbBaseMyLess.less +19 -18
  115. package/src/components/JfbBaseMySetting/Attr.js +1 -1
  116. package/src/components/JfbBaseMySetting/JfbBaseMySettingLess.less +19 -18
  117. package/src/components/JfbBaseNotice/Attr.js +58 -109
  118. package/src/components/JfbBaseNotice/JfbBaseNotice.vue +54 -82
  119. package/src/components/JfbBaseNotice/JfbBaseNoticeLess.less +19 -18
  120. package/src/components/JfbBaseNoticeBottom/JfbBaseNoticeBottomLess.less +19 -18
  121. package/src/components/JfbBaseNoticeTop/JfbBaseNoticeTopLess.less +19 -18
  122. package/src/components/JfbBaseOrderDetail/Attr.js +193 -210
  123. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +3 -5
  124. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetailLess.less +19 -18
  125. package/src/components/JfbBaseOrderList/Attr.js +44 -56
  126. package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +3 -5
  127. package/src/components/JfbBaseOrderList/JfbBaseOrderListLess.less +19 -18
  128. package/src/components/JfbBasePay/Attr.js +13 -2
  129. package/src/components/JfbBasePay/JfbBasePay.vue +6 -7
  130. package/src/components/JfbBasePay/JfbBasePayLess.less +19 -18
  131. package/src/components/JfbBasePay/Mock.js +1 -2
  132. package/src/components/JfbBasePhoneCollect/Attr.js +2 -27
  133. package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +1 -1
  134. package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollectLess.less +19 -18
  135. package/src/components/JfbBasePhoneLogin/Attr.js +2 -27
  136. package/src/components/JfbBasePhoneLogin/JfbBasePhoneLoginLess.less +19 -18
  137. package/src/components/JfbBasePoster/Attr.js +83 -103
  138. package/src/components/JfbBasePoster/JfbBasePoster.vue +143 -141
  139. package/src/components/JfbBasePoster/JfbBasePosterLess.less +19 -18
  140. package/src/components/JfbBasePoster/MoreScreen.vue +2 -7
  141. package/src/components/JfbBasePosterBigSmall/Attr.js +76 -93
  142. package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmall.vue +9 -10
  143. package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmallLess.less +19 -18
  144. package/src/components/JfbBasePosterBigSmall/getWidthHeight.js +2 -2
  145. package/src/components/JfbBasePosterEntry/Attr.js +34 -47
  146. package/src/components/JfbBasePosterEntry/JfbBasePosterEntry.vue +51 -52
  147. package/src/components/JfbBasePosterEntry/JfbBasePosterEntryLess.less +19 -18
  148. package/src/components/JfbBasePosterType/Attr.js +48 -82
  149. package/src/components/JfbBasePosterType/FourScreen.vue +4 -14
  150. package/src/components/JfbBasePosterType/JfbBasePosterType.vue +59 -36
  151. package/src/components/JfbBasePosterType/JfbBasePosterTypeLess.less +19 -18
  152. package/src/components/JfbBasePosterType/Screen.vue +284 -0
  153. package/src/components/JfbBaseRecharge/Attr.js +23 -35
  154. package/src/components/JfbBaseRecharge/JfbBaseRecharge.vue +8 -54
  155. package/src/components/JfbBaseRecharge/JfbBaseRechargeLess.less +19 -18
  156. package/src/components/JfbBaseRechargeOrder/Attr.js +22 -32
  157. package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrder.vue +7 -12
  158. package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrderLess.less +19 -18
  159. package/src/components/JfbBaseRechargeOrderDetail/JfbBaseRechargeOrderDetailLess.less +19 -18
  160. package/src/components/JfbBaseRechargeSuccess/Attr.js +8 -10
  161. package/src/components/JfbBaseRechargeSuccess/JfbBaseRechargeSuccessLess.less +19 -18
  162. package/src/components/JfbBaseSearch/Api.js +60 -0
  163. package/src/components/JfbBaseSearch/Attr.js +148 -6
  164. package/src/components/JfbBaseSearch/JfbBaseSearch.vue +37 -8
  165. package/src/components/JfbBaseSearch/JfbBaseSearchLess.less +19 -18
  166. package/src/components/JfbBaseSearch/Mock.js +5 -0
  167. package/src/components/JfbBaseSetPwd/Attr.js +147 -6
  168. package/src/components/JfbBaseSetPwd/JfbBaseSetPwdLess.less +19 -18
  169. package/src/components/JfbBaseSuccess/Attr.js +19 -89
  170. package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +26 -48
  171. package/src/components/JfbBaseSuccess/JfbBaseSuccessLess.less +19 -18
  172. package/src/components/JfbBaseSuccess/Mock.js +0 -8
  173. package/src/components/JfbBaseTestApi/JfbBaseTestApi.vue +9 -9
  174. package/src/components/JfbBaseTestApi/JfbBaseTestApiLess.less +19 -18
  175. package/src/components/JfbBaseTestBody/JfbBaseTestBodyLess.less +19 -18
  176. package/src/components/JfbBaseTestBottom/JfbBaseTestBottomLess.less +19 -18
  177. package/src/components/JfbBaseTestNotice/JfbBaseTestNoticeLess.less +19 -18
  178. package/src/components/JfbBaseTestTop/JfbBaseTestTopLess.less +19 -18
  179. package/src/components/JfbBaseUserCenter/Attr.js +53 -72
  180. package/src/components/JfbBaseUserCenter/JfbBaseUserCenter.vue +27 -40
  181. package/src/components/JfbBaseUserCenter/JfbBaseUserCenterLess.less +19 -18
  182. package/src/components/JfbBaseUserInfo/Attr.js +45 -54
  183. package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +21 -21
  184. package/src/components/JfbBaseUserInfo/JfbBaseUserInfoLess.less +19 -18
  185. package/src/components/JfbBaseUserOrder/Attr.js +94 -119
  186. package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +7 -21
  187. package/src/components/JfbBaseUserOrder/JfbBaseUserOrderLess.less +19 -18
  188. package/src/components/JfbBaseVideo/Attr.js +19 -72
  189. package/src/components/JfbBaseVideo/JfbBaseVideo.vue +28 -69
  190. package/src/components/JfbBaseVideo/JfbBaseVideoLess.less +19 -18
  191. package/src/components/JfbBaseVideo/XdVideo.vue +44 -6
  192. package/src/components/JfbBaseWallet/Attr.js +19 -27
  193. package/src/components/JfbBaseWallet/JfbBaseWalletLess.less +19 -18
  194. package/src/components/JfbBaseWalletDetail/Attr.js +6 -2
  195. package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetailLess.less +19 -18
  196. package/src/components/JfbBaseWalletEffective/JfbBaseWalletEffectiveLess.less +19 -18
  197. package/src/components/JfbBaseWalletIndex/Attr.js +1 -3
  198. package/src/components/JfbBaseWalletIndex/JfbBaseWalletIndexLess.less +19 -18
  199. package/src/components/JfbBaseWalletItem/Attr.js +1 -3
  200. package/src/components/JfbBaseWalletItem/JfbBaseWalletItemLess.less +19 -18
  201. package/src/components/JfbBaseWebview/JfbBaseWebviewLess.less +19 -18
  202. package/src/components/JfbBaseWxAuthorize/Api.js +3 -3
  203. package/src/components/JfbBaseWxAuthorize/Attr.js +3 -31
  204. package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorize.vue +28 -34
  205. package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorizeLess.less +19 -18
  206. package/src/components/JfbBaseWxAuthorizeError/Attr.js +17 -21
  207. package/src/components/JfbBaseWxAuthorizeError/JfbBaseWxAuthorizeError.vue +4 -4
  208. package/src/components/JfbBaseWxAuthorizeError/JfbBaseWxAuthorizeErrorLess.less +19 -18
  209. package/src/components/JfbBaseCardShift/Mock.js +0 -21
  210. package/src/components/JfbBaseClear/Attr.js +0 -17
@@ -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() {
@@ -158,14 +168,8 @@
158
168
  //#ifdef H5
159
169
  try {
160
170
  let url = JSON.parse(item.redirect_data);
161
- if (reg.test(url.url)) {
162
- console.warn(`广告跳转外站: ${url.url}`);
163
- //window.location.href = url.url;
164
- this.$xdUniHelper.navigateTo(url)
165
- }
166
- else {
167
- throw Error('地址错误')
168
- }
171
+ console.warn(`广告跳转外站: ${url.url}`);
172
+ this.$xdUniHelper.navigateTo(url)
169
173
  } catch (e) {
170
174
  console.error(e)
171
175
  }
@@ -176,8 +180,8 @@
176
180
 
177
181
  getTestData() {
178
182
  let temp = [];
179
- for (let i = 0; i < (this.useNumber); i++) {
180
- let item = this.$xdUniHelper.cloneDeep(this['posterTest']);
183
+ for (let i = 0; i < this.useNumber; i++) {
184
+ let item = this.$xdUniHelper.cloneDeep(this.test);
181
185
  item.content_id = i;
182
186
  item.content_name = item.content_name + i;
183
187
  item.image_url = `//dummyimage.com/${this.width}x${this.height}`;
@@ -197,6 +201,7 @@
197
201
  },
198
202
  })
199
203
  .then(res => {
204
+ console.log('getListPosterContent', res)
200
205
  if (res.list.length === 0 && this.$configProject.isPreview) {
201
206
  res.list = this.getTestData();
202
207
  }
@@ -207,18 +212,13 @@
207
212
  image_url: getServiceUrl(item.image_url)
208
213
  }
209
214
  });
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
- }
215
+ if(list.length > 0 && list.length%2 !==0) {
216
+ list.push({
217
+ ...this.$xdUniHelper.cloneDeep(this.test),
218
+ typeEmpty: true
219
+ })
219
220
  }
220
221
 
221
-
222
222
  this.list = list;
223
223
  this.noData = this.list.length === 0;
224
224
  })
@@ -226,21 +226,20 @@
226
226
  console.error(error)
227
227
  })
228
228
  },
229
-
230
-
231
229
  /**
232
230
  * @description 监听事件变化
233
231
  * @param container {object} 业务组件对象自己
234
232
  */
235
233
  init(container) {
236
234
  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', { });
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
+
240
239
  this.entry = getContainerPropsValue(container, 'content.entry', null);
241
240
  if(this.entry !== null) {
242
- this.width = this.checkValue(this.entry.size.width, 750);
243
- this.height = this.checkValue(this.entry.size.height, 320);
241
+ this.width = this.entry.size.width;
242
+ this.height = this.entry.size.height;
244
243
  this.type = this.entry.type;
245
244
  }
246
245
  },
@@ -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 {
@@ -211,12 +207,8 @@
211
207
  //#ifdef H5
212
208
  try {
213
209
  let url = JSON.parse(item.redirect_data);
214
- if (reg.test(url.url)) {
215
- console.warn(`广告跳转外站: ${url.url}`);
216
- this.$xdUniHelper.navigateTo(url)
217
- } else {
218
- throw Error('地址错误')
219
- }
210
+ console.warn(`广告跳转外站: ${url.url}`);
211
+ this.$xdUniHelper.navigateTo(url)
220
212
  } catch (e) {
221
213
  console.error(e)
222
214
  }
@@ -248,7 +240,6 @@
248
240
  display: flex;
249
241
  justify-content: flex-start;
250
242
  align-items: flex-start;
251
- align-content: flex-start;
252
243
  flex-wrap: wrap;
253
244
  overflow: hidden;
254
245
 
@@ -348,7 +339,6 @@
348
339
  display: flex;
349
340
  justify-content: flex-start;
350
341
  align-items: flex-start;
351
- align-content: flex-start;
352
342
  flex-wrap: wrap;
353
343
  overflow: hidden;
354
344