jufubao-base 1.0.132-beta3 → 1.0.133

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (194) hide show
  1. package/package.json +3 -4
  2. package/src/components/JfbBaseAddress/Attr.js +5 -11
  3. package/src/components/JfbBaseAddress/JfbBaseAddress.vue +3 -3
  4. package/src/components/JfbBaseAddress/JfbBaseAddressLess.less +19 -18
  5. package/src/components/JfbBaseAfterOrderDetail/Attr.js +7 -19
  6. package/src/components/JfbBaseAfterOrderDetail/JfbBaseAfterOrderDetail.vue +4 -6
  7. package/src/components/JfbBaseAfterOrderDetail/JfbBaseAfterOrderDetailLess.less +19 -18
  8. package/src/components/JfbBaseAfterOrderList/Attr.js +16 -25
  9. package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderList.vue +9 -6
  10. package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderListLess.less +19 -18
  11. package/src/components/JfbBaseBack/JfbBaseBackLess.less +19 -18
  12. package/src/components/JfbBaseBackground/Attr.js +8 -9
  13. package/src/components/JfbBaseBackground/JfbBaseBackground.vue +3 -0
  14. package/src/components/JfbBaseBackground/JfbBaseBackgroundLess.less +19 -18
  15. package/src/components/JfbBaseBlock/Attr.js +2 -12
  16. package/src/components/JfbBaseBlock/JfbBaseBlock.vue +8 -1
  17. package/src/components/JfbBaseBlock/JfbBaseBlockLess.less +19 -18
  18. package/src/components/JfbBaseBottomNotice/JfbBaseBottomNoticeLess.less +19 -18
  19. package/src/components/JfbBaseCard/Attr.js +34 -76
  20. package/src/components/JfbBaseCard/JfbBaseCardLess.less +19 -18
  21. package/src/components/JfbBaseCardBind/JfbBaseCardBindLess.less +19 -18
  22. package/src/components/JfbBaseCardBindV2/Attr.js +4 -5
  23. package/src/components/JfbBaseCardBindV2/JfbBaseCardBindV2Less.less +19 -18
  24. package/src/components/JfbBaseCardDetail/Attr.js +3 -4
  25. package/src/components/JfbBaseCardDetail/JfbBaseCardDetailLess.less +19 -18
  26. package/src/components/JfbBaseCardDetailEntry/Attr.js +8 -10
  27. package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntryLess.less +19 -18
  28. package/src/components/JfbBaseCardDisabled/Attr.js +3 -1
  29. package/src/components/JfbBaseCardDisabled/JfbBaseCardDisabledLess.less +19 -18
  30. package/src/components/JfbBaseCardDisabledEntry/JfbBaseCardDisabledEntryLess.less +19 -18
  31. package/src/components/JfbBaseCardEntry/Attr.js +67 -86
  32. package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +2 -3
  33. package/src/components/JfbBaseCardEntry/JfbBaseCardEntryLess.less +19 -18
  34. package/src/components/JfbBaseCardInfo/Attr.js +16 -22
  35. package/src/components/JfbBaseCardInfo/JfbBaseCardInfoLess.less +19 -18
  36. package/src/components/JfbBaseCardInfoEntry/Attr.js +11 -16
  37. package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntryLess.less +19 -18
  38. package/src/components/JfbBaseCardMerge/Attr.js +8 -21
  39. package/src/components/JfbBaseCardMerge/JfbBaseCardMerge.vue +30 -15
  40. package/src/components/JfbBaseCardMerge/JfbBaseCardMergeLess.less +19 -18
  41. package/src/components/JfbBaseCardMergeEntry/Attr.js +6 -20
  42. package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntry.vue +25 -28
  43. package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntryLess.less +19 -18
  44. package/src/components/JfbBaseCardShift/Attr.js +4 -18
  45. package/src/components/JfbBaseCardShift/JfbBaseCardShift.vue +11 -26
  46. package/src/components/JfbBaseCardShift/JfbBaseCardShiftLess.less +19 -18
  47. package/src/components/JfbBaseCardShiftEntry/Attr.js +26 -34
  48. package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntry.vue +257 -294
  49. package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntryLess.less +19 -18
  50. package/src/components/JfbBaseCardShiftEntry/Mock.js +1 -2
  51. package/src/components/JfbBaseCardSweepInfo/Attr.js +3 -5
  52. package/src/components/JfbBaseCardSweepInfo/JfbBaseCardSweepInfoLess.less +19 -18
  53. package/src/components/JfbBaseCardV2/Attr.js +15 -19
  54. package/src/components/JfbBaseCardV2/JfbBaseCardV2.vue +5 -3
  55. package/src/components/JfbBaseCardV2/JfbBaseCardV2Less.less +19 -18
  56. package/src/components/JfbBaseCardV3/Attr.js +12 -16
  57. package/src/components/JfbBaseCardV3/JfbBaseCardV3.vue +1 -1
  58. package/src/components/JfbBaseCardV3/JfbBaseCardV3Less.less +19 -18
  59. package/src/components/JfbBaseCity/Attr.js +4 -2
  60. package/src/components/JfbBaseCity/JfbBaseCityLess.less +19 -18
  61. package/src/components/JfbBaseClear/JfbBaseClearLess.less +19 -18
  62. package/src/components/JfbBaseClear/JfbBaseClearMixin.js +0 -12
  63. package/src/components/JfbBaseConDialog/Api.js +1 -1
  64. package/src/components/JfbBaseConDialog/Attr.js +20 -30
  65. package/src/components/JfbBaseConDialog/JfbBaseConDialog.vue +26 -45
  66. package/src/components/JfbBaseConDialog/JfbBaseConDialogLess.less +19 -18
  67. package/src/components/JfbBaseConDialog/Mock.js +1 -20
  68. package/src/components/JfbBaseConDialog/XdCouCardBind.vue +9 -15
  69. package/src/components/JfbBaseConList/Attr.js +224 -149
  70. package/src/components/JfbBaseConList/JfbBaseConList.vue +133 -150
  71. package/src/components/JfbBaseConList/JfbBaseConListLess.less +19 -18
  72. package/src/components/JfbBaseConPhone/JfbBaseConPhoneLess.less +19 -18
  73. package/src/components/JfbBaseEntry/Attr.js +21 -33
  74. package/src/components/JfbBaseEntry/JfbBaseEntry.vue +23 -34
  75. package/src/components/JfbBaseEntry/JfbBaseEntryLess.less +19 -18
  76. package/src/components/JfbBaseExpressDetail/JfbBaseExpressDetailLess.less +19 -18
  77. package/src/components/JfbBaseFastLink/Api.js +54 -1
  78. package/src/components/JfbBaseFastLink/Attr.js +116 -168
  79. package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +16 -12
  80. package/src/components/JfbBaseFastLink/JfbBaseFastLinkLess.less +19 -18
  81. package/src/components/JfbBaseFooter/Attr.js +22 -28
  82. package/src/components/JfbBaseFooter/JfbBaseFooter.vue +15 -19
  83. package/src/components/JfbBaseFooter/JfbBaseFooterLess.less +19 -18
  84. package/src/components/JfbBaseHeader/Attr.js +91 -89
  85. package/src/components/JfbBaseHeader/JfbBaseHeader.vue +29 -28
  86. package/src/components/JfbBaseHeader/JfbBaseHeaderLess.less +19 -18
  87. package/src/components/JfbBaseLine/Attr.js +59 -0
  88. package/src/components/JfbBaseLine/JfbBaseLine.vue +105 -0
  89. package/src/components/JfbBaseLine/JfbBaseLineLess.less +80 -0
  90. package/src/components/JfbBaseLine/JfbBaseLineMixin.js +30 -0
  91. package/src/components/JfbBaseLogin/Attr.js +88 -111
  92. package/src/components/JfbBaseLogin/JfbBaseLogin.vue +1 -0
  93. package/src/components/JfbBaseLogin/JfbBaseLoginLess.less +19 -18
  94. package/src/components/JfbBaseLoginForgetPwd/Attr.js +45 -52
  95. package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwd.vue +14 -14
  96. package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwdLess.less +19 -18
  97. package/src/components/JfbBaseLoginSetPwd/Attr.js +4 -6
  98. package/src/components/JfbBaseLoginSetPwd/JfbBaseLoginSetPwdLess.less +19 -18
  99. package/src/components/JfbBaseMapOverlay/JfbBaseMapOverlayLess.less +19 -18
  100. package/src/components/JfbBaseMapSearch/Attr.js +15 -0
  101. package/src/components/JfbBaseMapSearch/JfbBaseMapSearch.vue +25 -1
  102. package/src/components/JfbBaseMapSearch/JfbBaseMapSearchLess.less +19 -18
  103. package/src/components/JfbBaseMergeUserCard/Attr.js +3 -4
  104. package/src/components/JfbBaseMergeUserCard/JfbBaseMergeUserCardLess.less +19 -18
  105. package/src/components/JfbBaseMultipleExpress/Attr.js +3 -4
  106. package/src/components/JfbBaseMultipleExpress/JfbBaseMultipleExpressLess.less +19 -18
  107. package/src/components/JfbBaseMy/JfbBaseMyLess.less +19 -18
  108. package/src/components/JfbBaseMySetting/Attr.js +1 -1
  109. package/src/components/JfbBaseMySetting/JfbBaseMySettingLess.less +19 -18
  110. package/src/components/JfbBaseNotice/Attr.js +56 -97
  111. package/src/components/JfbBaseNotice/JfbBaseNotice.vue +52 -70
  112. package/src/components/JfbBaseNotice/JfbBaseNoticeLess.less +19 -18
  113. package/src/components/JfbBaseNoticeBottom/JfbBaseNoticeBottomLess.less +19 -18
  114. package/src/components/JfbBaseNoticeTop/JfbBaseNoticeTopLess.less +19 -18
  115. package/src/components/JfbBaseOrderDetail/Attr.js +193 -210
  116. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +3 -6
  117. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetailLess.less +19 -18
  118. package/src/components/JfbBaseOrderList/Attr.js +43 -55
  119. package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +3 -5
  120. package/src/components/JfbBaseOrderList/JfbBaseOrderListLess.less +19 -18
  121. package/src/components/JfbBasePay/Attr.js +13 -2
  122. package/src/components/JfbBasePay/JfbBasePay.vue +6 -7
  123. package/src/components/JfbBasePay/JfbBasePayLess.less +19 -18
  124. package/src/components/JfbBasePay/Mock.js +1 -2
  125. package/src/components/JfbBasePhoneCollect/Attr.js +2 -27
  126. package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +1 -1
  127. package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollectLess.less +19 -18
  128. package/src/components/JfbBasePhoneLogin/Attr.js +2 -27
  129. package/src/components/JfbBasePhoneLogin/JfbBasePhoneLoginLess.less +19 -18
  130. package/src/components/JfbBasePoster/Attr.js +83 -103
  131. package/src/components/JfbBasePoster/JfbBasePoster.vue +141 -134
  132. package/src/components/JfbBasePoster/JfbBasePosterLess.less +19 -18
  133. package/src/components/JfbBasePosterBigSmall/Attr.js +76 -93
  134. package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmall.vue +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/JfbBaseSuccessLess.less +19 -18
  163. package/src/components/JfbBaseTestApi/JfbBaseTestApiLess.less +19 -18
  164. package/src/components/JfbBaseTestBody/JfbBaseTestBodyLess.less +19 -18
  165. package/src/components/JfbBaseTestBottom/JfbBaseTestBottomLess.less +19 -18
  166. package/src/components/JfbBaseTestNotice/JfbBaseTestNoticeLess.less +19 -18
  167. package/src/components/JfbBaseTestTop/JfbBaseTestTopLess.less +19 -18
  168. package/src/components/JfbBaseUserCenter/Attr.js +53 -72
  169. package/src/components/JfbBaseUserCenter/JfbBaseUserCenter.vue +27 -40
  170. package/src/components/JfbBaseUserCenter/JfbBaseUserCenterLess.less +19 -18
  171. package/src/components/JfbBaseUserInfo/Attr.js +45 -54
  172. package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +21 -21
  173. package/src/components/JfbBaseUserInfo/JfbBaseUserInfoLess.less +19 -18
  174. package/src/components/JfbBaseUserOrder/Attr.js +92 -118
  175. package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +7 -21
  176. package/src/components/JfbBaseUserOrder/JfbBaseUserOrderLess.less +19 -18
  177. package/src/components/JfbBaseVideo/Attr.js +19 -72
  178. package/src/components/JfbBaseVideo/JfbBaseVideo.vue +28 -69
  179. package/src/components/JfbBaseVideo/JfbBaseVideoLess.less +19 -18
  180. package/src/components/JfbBaseVideo/XdVideo.vue +44 -6
  181. package/src/components/JfbBaseWallet/JfbBaseWalletLess.less +19 -18
  182. package/src/components/{JfbBaseClear → JfbBaseWalletDetail}/Attr.js +0 -1
  183. package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetailLess.less +19 -18
  184. package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetailMixin.js +12 -0
  185. package/src/components/JfbBaseWalletEffective/JfbBaseWalletEffectiveLess.less +19 -18
  186. package/src/components/JfbBaseWalletIndex/JfbBaseWalletIndexLess.less +19 -18
  187. package/src/components/JfbBaseWalletItem/JfbBaseWalletItemLess.less +19 -18
  188. package/src/components/JfbBaseWebview/JfbBaseWebviewLess.less +19 -18
  189. package/src/components/JfbBaseWxAuthorize/Attr.js +3 -31
  190. package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorize.vue +26 -32
  191. package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorizeLess.less +19 -18
  192. package/src/components/JfbBaseWxAuthorizeError/Attr.js +17 -21
  193. package/src/components/JfbBaseWxAuthorizeError/JfbBaseWxAuthorizeErrorLess.less +19 -18
  194. package/src/components/JfbBaseCardShift/Mock.js +0 -21
@@ -13,8 +13,9 @@
13
13
 
14
14
  //start
15
15
  .jfb-base-phone-collect {
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-phone-collect {
74
- //&:before {
75
- //content: " ";
76
- //display: table;
77
- //}
75
+ &:before {
76
+ content: " ";
77
+ display: table;
78
+ }
78
79
  }
79
80
  /**endNotPreview**/
@@ -8,7 +8,6 @@ export default {
8
8
  label: '隐私政策:',
9
9
  ele: 'xd-site-news',
10
10
  valueKey: 'notice',
11
- groupKey:'content',
12
11
  value: {type: 'privacy'},
13
12
  className: 'input70',
14
13
  setting: {
@@ -30,7 +29,7 @@ export default {
30
29
  }
31
30
 
32
31
  //获取返回参数(场景类型名称为必填)
33
- let loading = { close(){}}
32
+ let loading = XdBus.getParentApi('loading')({});
34
33
 
35
34
  //获取显示内容
36
35
  if (action === 'screen') {
@@ -74,7 +73,6 @@ export default {
74
73
 
75
74
  //使用内容分类
76
75
  if (action === 'cmsPublishEditxContent') {
77
- loading = XdBus.getParentApi('loading')({});
78
76
  XdBus.getParentApi('cmsPublishEditxContent')(data.params)
79
77
  .then(res => {
80
78
  console.log('cmsPublishEditxContent', res)
@@ -89,7 +87,6 @@ export default {
89
87
 
90
88
  //位置列表
91
89
  if (action === 'getListPostion') {
92
- loading = XdBus.getParentApi('loading')({});
93
90
  XdBus.getParentApi('getListNewsPosition')(data.params)
94
91
  .then(res => {
95
92
  loading.close();
@@ -103,7 +100,6 @@ export default {
103
100
 
104
101
  //位置创建
105
102
  if (action === 'addPostion') {
106
- loading = XdBus.getParentApi('loading')({});
107
103
  XdBus.getParentApi('addNewsPosition')(data.params)
108
104
  .then(res => {
109
105
  loading.close();
@@ -118,7 +114,6 @@ export default {
118
114
 
119
115
  //位置编辑
120
116
  if (action === 'editPostion') {
121
- loading = XdBus.getParentApi('loading')({});
122
117
  XdBus.getParentApi('updateNewsPosition')(data.params)
123
118
  .then(res => {
124
119
  loading.close();
@@ -133,7 +128,6 @@ export default {
133
128
 
134
129
  //位置删除
135
130
  if (action === 'deleltePostion') {
136
- loading = XdBus.getParentApi('loading')({});
137
131
  XdBus.getParentApi('deleteNewsPosition')(data.params)
138
132
  .then(res => {
139
133
  loading.close();
@@ -148,7 +142,6 @@ export default {
148
142
 
149
143
  //获取广告位内容列表
150
144
  if (action === 'getListContent') {
151
- loading = XdBus.getParentApi('loading')({});
152
145
  XdBus.getParentApi('getListNewsContent')(data.params)
153
146
  .then(res => {
154
147
  loading.close();
@@ -162,7 +155,6 @@ export default {
162
155
 
163
156
  //广告内容创建
164
157
  if (action === 'addContent') {
165
- loading = XdBus.getParentApi('loading')({});
166
158
  XdBus.getParentApi('addNewsContent')(data.params)
167
159
  .then(res => {
168
160
  loading.close();
@@ -177,7 +169,6 @@ export default {
177
169
 
178
170
  //广告内容编辑
179
171
  if (action === 'editContent') {
180
- loading = XdBus.getParentApi('loading')({});
181
172
  XdBus.getParentApi('updateNewsContent')(data.params)
182
173
  .then(res => {
183
174
  loading.close();
@@ -192,7 +183,6 @@ export default {
192
183
 
193
184
  //广告内容删除
194
185
  if (action === 'deleteContent') {
195
- loading = XdBus.getParentApi('loading')({});
196
186
  XdBus.getParentApi('deleteNewsContent')(data.params)
197
187
  .then(res => {
198
188
  loading.close();
@@ -207,7 +197,6 @@ export default {
207
197
 
208
198
  //内容发布
209
199
  if (action === 'publish') {
210
- loading = XdBus.getParentApi('loading')({});
211
200
  console.log('publish', data.params)
212
201
  XdBus.getParentApi('cmsPublishContent')(data.params)
213
202
  .then(res => {
@@ -222,7 +211,6 @@ export default {
222
211
 
223
212
  //通知页面进行刷新
224
213
  if (action === 'update') {
225
- loading = XdBus.getParentApi('loading')({});
226
214
  XdBus.getParentApi('getXdBusUpdateView')('onUpdateView', {});
227
215
  loading.close()
228
216
  }
@@ -234,7 +222,6 @@ export default {
234
222
  label: '用户服务协议:',
235
223
  ele: 'xd-site-news',
236
224
  valueKey: 'notices',
237
- groupKey:'content',
238
225
  value: {type: 'privacy'},
239
226
  className: 'input70',
240
227
  setting: {
@@ -255,8 +242,7 @@ export default {
255
242
  }
256
243
 
257
244
  //获取返回参数(场景类型名称为必填)
258
- //获取返回参数(场景类型名称为必填)
259
- let loading = { close(){}}
245
+ let loading = XdBus.getParentApi('loading')({});
260
246
 
261
247
  //获取显示内容
262
248
  if (action === 'screen') {
@@ -300,7 +286,6 @@ export default {
300
286
 
301
287
  //使用内容分类
302
288
  if (action === 'cmsPublishEditxContent') {
303
- loading = XdBus.getParentApi('loading')({});
304
289
  XdBus.getParentApi('cmsPublishEditxContent')(data.params)
305
290
  .then(res => {
306
291
  console.log('cmsPublishEditxContent', res)
@@ -315,7 +300,6 @@ export default {
315
300
 
316
301
  //位置列表
317
302
  if (action === 'getListPostion') {
318
- loading = XdBus.getParentApi('loading')({});
319
303
  XdBus.getParentApi('getListNewsPosition')(data.params)
320
304
  .then(res => {
321
305
  loading.close();
@@ -329,7 +313,6 @@ export default {
329
313
 
330
314
  //位置创建
331
315
  if (action === 'addPostion') {
332
- loading = XdBus.getParentApi('loading')({});
333
316
  XdBus.getParentApi('addNewsPosition')(data.params)
334
317
  .then(res => {
335
318
  loading.close();
@@ -344,7 +327,6 @@ export default {
344
327
 
345
328
  //位置编辑
346
329
  if (action === 'editPostion') {
347
- loading = XdBus.getParentApi('loading')({});
348
330
  XdBus.getParentApi('updateNewsPosition')(data.params)
349
331
  .then(res => {
350
332
  loading.close();
@@ -359,7 +341,6 @@ export default {
359
341
 
360
342
  //位置删除
361
343
  if (action === 'deleltePostion') {
362
- loading = XdBus.getParentApi('loading')({});
363
344
  XdBus.getParentApi('deleteNewsPosition')(data.params)
364
345
  .then(res => {
365
346
  loading.close();
@@ -374,7 +355,6 @@ export default {
374
355
 
375
356
  //获取广告位内容列表
376
357
  if (action === 'getListContent') {
377
- loading = XdBus.getParentApi('loading')({});
378
358
  XdBus.getParentApi('getListNewsContent')(data.params)
379
359
  .then(res => {
380
360
  loading.close();
@@ -388,7 +368,6 @@ export default {
388
368
 
389
369
  //广告内容创建
390
370
  if (action === 'addContent') {
391
- loading = XdBus.getParentApi('loading')({});
392
371
  XdBus.getParentApi('addNewsContent')(data.params)
393
372
  .then(res => {
394
373
  loading.close();
@@ -403,7 +382,6 @@ export default {
403
382
 
404
383
  //广告内容编辑
405
384
  if (action === 'editContent') {
406
- loading = XdBus.getParentApi('loading')({});
407
385
  XdBus.getParentApi('updateNewsContent')(data.params)
408
386
  .then(res => {
409
387
  loading.close();
@@ -418,7 +396,6 @@ export default {
418
396
 
419
397
  //广告内容删除
420
398
  if (action === 'deleteContent') {
421
- loading = XdBus.getParentApi('loading')({});
422
399
  XdBus.getParentApi('deleteNewsContent')(data.params)
423
400
  .then(res => {
424
401
  loading.close();
@@ -433,7 +410,6 @@ export default {
433
410
 
434
411
  //内容发布
435
412
  if (action === 'publish') {
436
- loading = XdBus.getParentApi('loading')({});
437
413
  console.log('publish', data.params)
438
414
  XdBus.getParentApi('cmsPublishContent')(data.params)
439
415
  .then(res => {
@@ -448,7 +424,6 @@ export default {
448
424
 
449
425
  //通知页面进行刷新
450
426
  if (action === 'update') {
451
- loading = XdBus.getParentApi('loading')({});
452
427
  XdBus.getParentApi('getXdBusUpdateView')('onUpdateView', {});
453
428
  loading.close()
454
429
  }
@@ -13,8 +13,9 @@
13
13
 
14
14
  //start
15
15
  .jfb-base-phone-login {
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-phone-login {
74
- //&:before {
75
- //content: " ";
76
- //display: table;
77
- //}
75
+ &:before {
76
+ content: " ";
77
+ display: table;
78
+ }
78
79
  }
79
80
  /**endNotPreview**/
@@ -8,15 +8,15 @@ import console from "@dcloudio/uni-h5/src/core/helpers/console";
8
8
  export default {
9
9
  style:[],
10
10
  content:(params)=>{
11
+ console.log(params,'anananananana');
11
12
  if(!params['isCarousel']) params['isCarousel'] = 1;
12
13
  return [
13
14
  {
14
- label: '广告位置配置:',
15
- ele: 'xd-site-poster',
16
- valueKey: 'poster',
15
+ label: '广告位置配置:', //label
16
+ ele: 'xd-site-poster', //package 名称
17
+ valueKey: 'poster', //form[valueKey]
17
18
  className: 'input80',
18
19
  value: params.poster || {},
19
- groupKey:'content',
20
20
  setting: {
21
21
  count: 1,
22
22
  scene: {label: '广告', value: 'normal'}
@@ -215,49 +215,82 @@ export default {
215
215
  loading.close()
216
216
  }
217
217
  },
218
- rules: [{
219
- required: true,
220
- validator: (rule, value, callback) => {
221
- let message = '请设置广告相关内容';
222
- if(!value) {
223
- callback(message);
224
- return;
225
- }
226
- if(value.size && !value.size.height){
227
- callback(message);
228
- return
229
- }
218
+ inline: false,
219
+ notice: '',
220
+ rules: [
221
+ {required: true, message: '请选择广告位置', trigger: 'change'},
222
+ ],
223
+ },
224
+ {
225
+ ele: 'title',
226
+ label: '广告位轮廓设置',
227
+ size: 'small', //default/mini/small
228
+ },
229
+ {
230
+ label: '广告位边距设置:',
231
+ ele: 'xd-margin-padding',
232
+ valueKey: 'margin',
233
+ value: params.margin || null,
234
+ disabled: false,
235
+ setting: {
236
+ type: 'margin',
237
+ },
238
+ placeholder: '请设置广告位边距设置',
239
+ inline: false,
240
+ notice: '设置边距充,<span style="color: red">单位:像素(px)</span>。默认值:<span style="color: red">0</span>像素',
230
241
 
231
- if(value.size && !value.size.width){
232
- callback(message);
233
- return
234
- }
235
- callback()
236
- },trigger: ['blur', 'change']
237
- }],
238
242
  },
239
- params['isCarousel']=== 2 && (params.poster && params.poster['type'] && params.poster['type'] === '1') && {
240
- label: '是否启用配套背景:',
241
- ele: 'xd-radio',
242
- valueKey: 'isSupport',
243
- value: params['isSupport'] || 'Y',
244
- groupKey:'style',
245
- list: [
246
- {"label": "启用", "value": 'Y'},
247
- {"label": "禁用", "value": 'N'},
248
- ]
243
+ params.poster && params.poster['type']&& params.poster['type'] !== '1' &&{
244
+ label: '广告位填充设置:',
245
+ ele: 'xd-margin-padding',
246
+ valueKey: 'bgImagePadding',
247
+ value: params['bgImagePadding'] || null,
248
+ disabled: false,
249
+ setting: {
250
+ type: 'padding',
251
+ },
252
+ placeholder: '请填充设置',
253
+ inline: false,
254
+ notice: '设置内填充,<span style="color: red">单位:像素(px)</span>。无背景时候默认值:<span style="color: red">20</span>像素。有背景时候默认值:<span style="color: red">20</span>像素。',
255
+ },
256
+ params.poster && params.poster['type'] &&params.number > 1 && {
257
+ label: '广告内容之间间距设置:',
258
+ ele: 'el-input',
259
+ type: 'number',
260
+ valueKey: 'padding',
261
+ value: params.padding || 0,
262
+ className: 'input40',
263
+ placeholder: '请广告内容之间间距设置',
264
+ notice: '请广告内容之间间距设置。<span style="color: red">单位:像素(px)</span>。默认值:<span style="color: red">0</span>像素',
265
+ inline: false,
266
+ },
267
+ {
268
+ label: '广告圆角设置:',
269
+ ele: 'xd-site-select-list',
270
+ valueKey: 'radius',
271
+ value: params['radius'] || '20',
272
+ placeholder: '请选择广告圆角设置',
273
+ multiple: false,
274
+ className: 'input80',
275
+ handleCustom({action, data}) {
276
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
277
+ .then(res => {
278
+ data.cb(res.list)
279
+ })
280
+ .catch(error => {
281
+ console.error(error);
282
+ });
283
+ },
249
284
  },
250
285
  {
251
286
  ele: 'title',
252
287
  label: '广告位参数配置',
253
- size: 'small',
254
- groupKey:'content',
288
+ size: 'small', //default/mini/small
255
289
  },
256
290
  params.poster && params.poster['type']&& params.poster['type'] !== '1' && {
257
291
  label: '广告背景图:',
258
292
  ele: 'xd-upload',
259
293
  valueKey: 'background',
260
- groupKey:'content',
261
294
  value: params.background || {},
262
295
  defaultValue: params.background || null,
263
296
  slot: true,
@@ -278,7 +311,6 @@ export default {
278
311
  ele: 'el-input',
279
312
  type: 'number',
280
313
  valueKey: 'number',
281
- groupKey:'content',
282
314
  value: params.number || 1,
283
315
  placeholder: '请输入广告位置使用张数',
284
316
  className: 'input40',
@@ -296,7 +328,6 @@ export default {
296
328
  ele: 'xd-radio',
297
329
  valueKey: 'isCarousel',
298
330
  value: params['isCarousel'] || 1,
299
- groupKey:'content',
300
331
  rules: [
301
332
  {required: true, message: '请选择广告位显示方式', trigger: ['blur', 'change']}
302
333
  ],
@@ -309,7 +340,7 @@ export default {
309
340
  label: '广告位轮播周期:',
310
341
  ele: 'el-input',
311
342
  type: 'number',
312
- groupKey:'content',
343
+ isKey: true,
313
344
  valueKey: 'carouselTime',
314
345
  value: params.carouselTime || 5,
315
346
  placeholder: '请输入广告位轮播周期,单位秒',
@@ -324,11 +355,10 @@ export default {
324
355
  ]
325
356
  },
326
357
  params['isCarousel'] === 2 && {
327
- label: '广告显示dot类型:',
328
- ele: 'xd-select-list',
329
- valueKey: 'dot_type',
330
- value: params['dot_type'] || 'dot',
331
- groupKey:'content',
358
+ label: '广告显示dot类型:', //label
359
+ ele: 'xd-select-list', //package 名称
360
+ valueKey: 'dot_type', //form[valueKey]
361
+ value: params['dot_type'] || 'dot', //v-model
332
362
  placeholder: '请选择广告显示dot类型',
333
363
  multiple: false,
334
364
  className: 'input80',
@@ -346,7 +376,6 @@ export default {
346
376
  label: '广告位内容显示行数:',
347
377
  ele: 'xd-radio',
348
378
  valueKey: 'rows',
349
- groupKey:'content',
350
379
  value: params.rows || 1,
351
380
  list: [
352
381
  {"label": "一行", "value": 1},
@@ -354,65 +383,16 @@ export default {
354
383
  {"label": "三行", "value": 3},
355
384
  ]
356
385
  },
357
- {
358
- label: '广告位边距设置:',
359
- ele: 'xd-margin-padding',
360
- valueKey: 'margin',
361
- groupKey:'style',
362
- value: params.margin || null,
363
- setting: {
364
- type: 'margin',
365
- },
366
- placeholder: '请设置广告位边距设置',
367
- inline: false,
368
- notice: '设置边距充,<span style="color: red">单位:像素(px)</span>。默认值:<span style="color: red">0</span>像素',
369
-
370
- },
371
- {
372
- label: '广告位填充设置:',
373
- ele: 'xd-margin-padding',
374
- valueKey: 'bgImagePadding',
375
- value: params['bgImagePadding'] || null,
376
- groupKey:'style',
377
- setting: {
378
- type: 'padding',
379
- },
380
- placeholder: '请填充设置',
381
- inline: false,
382
- notice: '设置内填充,<span style="color: red">单位:像素(px)</span>。无背景时候默认值:<span style="color: red">20</span>像素。有背景时候默认值:<span style="color: red">0</span>像素。',
383
- },
384
- params.poster && params.poster['type'] && params.number > 1 && {
385
- label: '广告内容之间间距设置:',
386
- ele: 'el-input',
387
- type: 'number',
388
- valueKey: 'padding',
389
- value: params.padding || 0,
390
- groupKey:'style',
391
- className: 'input40',
392
- placeholder: '请广告内容之间间距设置',
393
- notice: '请广告内容之间间距设置。<span style="color: red">单位:像素(px)</span>。默认值:<span style="color: red">0</span>像素',
394
- inline: false,
395
- },
396
- {
397
- label: '广告圆角设置:',
398
- ele: 'xd-site-select-list',
399
- valueKey: 'radius',
400
- groupKey:'style',
401
- value: params['radius'] || '20',
402
- placeholder: '请选择广告圆角设置',
403
- multiple: false,
404
- className: 'input80',
405
- handleCustom({action, data}) {
406
- XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
407
- .then(res => {
408
- data.cb(res.list)
409
- })
410
- .catch(error => {
411
- console.error(error);
412
- });
413
- },
386
+ params['isCarousel']===2 && params['rows'] === 1 && {
387
+ label: '是否启用配套背景:',
388
+ ele: 'xd-radio',
389
+ valueKey: 'isSupport',
390
+ value: params['isSupport'] || 'Y',
391
+ list: [
392
+ {"label": "启用", "value": 'Y'},
393
+ {"label": "禁用", "value": 'N'},
394
+ ]
414
395
  },
415
-
416
396
  ].filter(i=>i)
417
397
  },
418
398
  advanced: [