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,9 +13,8 @@
13
13
 
14
14
  //start
15
15
  .jfb-base-phone-collect {
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-phone-collect {
75
- &:before {
76
- content: " ";
77
- display: table;
78
- }
74
+ //&:before {
75
+ //content: " ";
76
+ //display: table;
77
+ //}
79
78
  }
80
79
  /**endNotPreview**/
@@ -8,6 +8,7 @@ export default {
8
8
  label: '隐私政策:',
9
9
  ele: 'xd-site-news',
10
10
  valueKey: 'notice',
11
+ groupKey:'content',
11
12
  value: {type: 'privacy'},
12
13
  className: 'input70',
13
14
  setting: {
@@ -29,7 +30,7 @@ export default {
29
30
  }
30
31
 
31
32
  //获取返回参数(场景类型名称为必填)
32
- let loading = XdBus.getParentApi('loading')({});
33
+ let loading = { close(){}}
33
34
 
34
35
  //获取显示内容
35
36
  if (action === 'screen') {
@@ -73,6 +74,7 @@ export default {
73
74
 
74
75
  //使用内容分类
75
76
  if (action === 'cmsPublishEditxContent') {
77
+ loading = XdBus.getParentApi('loading')({});
76
78
  XdBus.getParentApi('cmsPublishEditxContent')(data.params)
77
79
  .then(res => {
78
80
  console.log('cmsPublishEditxContent', res)
@@ -87,6 +89,7 @@ export default {
87
89
 
88
90
  //位置列表
89
91
  if (action === 'getListPostion') {
92
+ loading = XdBus.getParentApi('loading')({});
90
93
  XdBus.getParentApi('getListNewsPosition')(data.params)
91
94
  .then(res => {
92
95
  loading.close();
@@ -100,6 +103,7 @@ export default {
100
103
 
101
104
  //位置创建
102
105
  if (action === 'addPostion') {
106
+ loading = XdBus.getParentApi('loading')({});
103
107
  XdBus.getParentApi('addNewsPosition')(data.params)
104
108
  .then(res => {
105
109
  loading.close();
@@ -114,6 +118,7 @@ export default {
114
118
 
115
119
  //位置编辑
116
120
  if (action === 'editPostion') {
121
+ loading = XdBus.getParentApi('loading')({});
117
122
  XdBus.getParentApi('updateNewsPosition')(data.params)
118
123
  .then(res => {
119
124
  loading.close();
@@ -128,6 +133,7 @@ export default {
128
133
 
129
134
  //位置删除
130
135
  if (action === 'deleltePostion') {
136
+ loading = XdBus.getParentApi('loading')({});
131
137
  XdBus.getParentApi('deleteNewsPosition')(data.params)
132
138
  .then(res => {
133
139
  loading.close();
@@ -142,6 +148,7 @@ export default {
142
148
 
143
149
  //获取广告位内容列表
144
150
  if (action === 'getListContent') {
151
+ loading = XdBus.getParentApi('loading')({});
145
152
  XdBus.getParentApi('getListNewsContent')(data.params)
146
153
  .then(res => {
147
154
  loading.close();
@@ -155,6 +162,7 @@ export default {
155
162
 
156
163
  //广告内容创建
157
164
  if (action === 'addContent') {
165
+ loading = XdBus.getParentApi('loading')({});
158
166
  XdBus.getParentApi('addNewsContent')(data.params)
159
167
  .then(res => {
160
168
  loading.close();
@@ -169,6 +177,7 @@ export default {
169
177
 
170
178
  //广告内容编辑
171
179
  if (action === 'editContent') {
180
+ loading = XdBus.getParentApi('loading')({});
172
181
  XdBus.getParentApi('updateNewsContent')(data.params)
173
182
  .then(res => {
174
183
  loading.close();
@@ -183,6 +192,7 @@ export default {
183
192
 
184
193
  //广告内容删除
185
194
  if (action === 'deleteContent') {
195
+ loading = XdBus.getParentApi('loading')({});
186
196
  XdBus.getParentApi('deleteNewsContent')(data.params)
187
197
  .then(res => {
188
198
  loading.close();
@@ -197,6 +207,7 @@ export default {
197
207
 
198
208
  //内容发布
199
209
  if (action === 'publish') {
210
+ loading = XdBus.getParentApi('loading')({});
200
211
  console.log('publish', data.params)
201
212
  XdBus.getParentApi('cmsPublishContent')(data.params)
202
213
  .then(res => {
@@ -211,6 +222,7 @@ export default {
211
222
 
212
223
  //通知页面进行刷新
213
224
  if (action === 'update') {
225
+ loading = XdBus.getParentApi('loading')({});
214
226
  XdBus.getParentApi('getXdBusUpdateView')('onUpdateView', {});
215
227
  loading.close()
216
228
  }
@@ -222,6 +234,7 @@ export default {
222
234
  label: '用户服务协议:',
223
235
  ele: 'xd-site-news',
224
236
  valueKey: 'notices',
237
+ groupKey:'content',
225
238
  value: {type: 'privacy'},
226
239
  className: 'input70',
227
240
  setting: {
@@ -242,7 +255,8 @@ export default {
242
255
  }
243
256
 
244
257
  //获取返回参数(场景类型名称为必填)
245
- let loading = XdBus.getParentApi('loading')({});
258
+ //获取返回参数(场景类型名称为必填)
259
+ let loading = { close(){}}
246
260
 
247
261
  //获取显示内容
248
262
  if (action === 'screen') {
@@ -286,6 +300,7 @@ export default {
286
300
 
287
301
  //使用内容分类
288
302
  if (action === 'cmsPublishEditxContent') {
303
+ loading = XdBus.getParentApi('loading')({});
289
304
  XdBus.getParentApi('cmsPublishEditxContent')(data.params)
290
305
  .then(res => {
291
306
  console.log('cmsPublishEditxContent', res)
@@ -300,6 +315,7 @@ export default {
300
315
 
301
316
  //位置列表
302
317
  if (action === 'getListPostion') {
318
+ loading = XdBus.getParentApi('loading')({});
303
319
  XdBus.getParentApi('getListNewsPosition')(data.params)
304
320
  .then(res => {
305
321
  loading.close();
@@ -313,6 +329,7 @@ export default {
313
329
 
314
330
  //位置创建
315
331
  if (action === 'addPostion') {
332
+ loading = XdBus.getParentApi('loading')({});
316
333
  XdBus.getParentApi('addNewsPosition')(data.params)
317
334
  .then(res => {
318
335
  loading.close();
@@ -327,6 +344,7 @@ export default {
327
344
 
328
345
  //位置编辑
329
346
  if (action === 'editPostion') {
347
+ loading = XdBus.getParentApi('loading')({});
330
348
  XdBus.getParentApi('updateNewsPosition')(data.params)
331
349
  .then(res => {
332
350
  loading.close();
@@ -341,6 +359,7 @@ export default {
341
359
 
342
360
  //位置删除
343
361
  if (action === 'deleltePostion') {
362
+ loading = XdBus.getParentApi('loading')({});
344
363
  XdBus.getParentApi('deleteNewsPosition')(data.params)
345
364
  .then(res => {
346
365
  loading.close();
@@ -355,6 +374,7 @@ export default {
355
374
 
356
375
  //获取广告位内容列表
357
376
  if (action === 'getListContent') {
377
+ loading = XdBus.getParentApi('loading')({});
358
378
  XdBus.getParentApi('getListNewsContent')(data.params)
359
379
  .then(res => {
360
380
  loading.close();
@@ -368,6 +388,7 @@ export default {
368
388
 
369
389
  //广告内容创建
370
390
  if (action === 'addContent') {
391
+ loading = XdBus.getParentApi('loading')({});
371
392
  XdBus.getParentApi('addNewsContent')(data.params)
372
393
  .then(res => {
373
394
  loading.close();
@@ -382,6 +403,7 @@ export default {
382
403
 
383
404
  //广告内容编辑
384
405
  if (action === 'editContent') {
406
+ loading = XdBus.getParentApi('loading')({});
385
407
  XdBus.getParentApi('updateNewsContent')(data.params)
386
408
  .then(res => {
387
409
  loading.close();
@@ -396,6 +418,7 @@ export default {
396
418
 
397
419
  //广告内容删除
398
420
  if (action === 'deleteContent') {
421
+ loading = XdBus.getParentApi('loading')({});
399
422
  XdBus.getParentApi('deleteNewsContent')(data.params)
400
423
  .then(res => {
401
424
  loading.close();
@@ -410,6 +433,7 @@ export default {
410
433
 
411
434
  //内容发布
412
435
  if (action === 'publish') {
436
+ loading = XdBus.getParentApi('loading')({});
413
437
  console.log('publish', data.params)
414
438
  XdBus.getParentApi('cmsPublishContent')(data.params)
415
439
  .then(res => {
@@ -424,6 +448,7 @@ export default {
424
448
 
425
449
  //通知页面进行刷新
426
450
  if (action === 'update') {
451
+ loading = XdBus.getParentApi('loading')({});
427
452
  XdBus.getParentApi('getXdBusUpdateView')('onUpdateView', {});
428
453
  loading.close()
429
454
  }
@@ -13,9 +13,8 @@
13
13
 
14
14
  //start
15
15
  .jfb-base-phone-login {
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-phone-login {
75
- &:before {
76
- content: " ";
77
- display: table;
78
- }
74
+ //&:before {
75
+ //content: " ";
76
+ //display: table;
77
+ //}
79
78
  }
80
79
  /**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');
12
11
  if(!params['isCarousel']) params['isCarousel'] = 1;
13
12
  return [
14
13
  {
15
- label: '广告位置配置:', //label
16
- ele: 'xd-site-poster', //package 名称
17
- valueKey: 'poster', //form[valueKey]
14
+ label: '广告位置配置:',
15
+ ele: 'xd-site-poster',
16
+ valueKey: 'poster',
18
17
  className: 'input80',
19
18
  value: params.poster || {},
19
+ groupKey:'content',
20
20
  setting: {
21
21
  count: 1,
22
22
  scene: {label: '广告', value: 'normal'}
@@ -215,82 +215,49 @@ export default {
215
215
  loading.close()
216
216
  }
217
217
  },
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>像素',
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
+ }
241
230
 
231
+ if(value.size && !value.size.width){
232
+ callback(message);
233
+ return
234
+ }
235
+ callback()
236
+ },trigger: ['blur', 'change']
237
+ }],
242
238
  },
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
- },
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
+ ]
284
249
  },
285
250
  {
286
251
  ele: 'title',
287
252
  label: '广告位参数配置',
288
- size: 'small', //default/mini/small
253
+ size: 'small',
254
+ groupKey:'content',
289
255
  },
290
256
  params.poster && params.poster['type']&& params.poster['type'] !== '1' && {
291
257
  label: '广告背景图:',
292
258
  ele: 'xd-upload',
293
259
  valueKey: 'background',
260
+ groupKey:'content',
294
261
  value: params.background || {},
295
262
  defaultValue: params.background || null,
296
263
  slot: true,
@@ -311,6 +278,7 @@ export default {
311
278
  ele: 'el-input',
312
279
  type: 'number',
313
280
  valueKey: 'number',
281
+ groupKey:'content',
314
282
  value: params.number || 1,
315
283
  placeholder: '请输入广告位置使用张数',
316
284
  className: 'input40',
@@ -328,6 +296,7 @@ export default {
328
296
  ele: 'xd-radio',
329
297
  valueKey: 'isCarousel',
330
298
  value: params['isCarousel'] || 1,
299
+ groupKey:'content',
331
300
  rules: [
332
301
  {required: true, message: '请选择广告位显示方式', trigger: ['blur', 'change']}
333
302
  ],
@@ -340,7 +309,7 @@ export default {
340
309
  label: '广告位轮播周期:',
341
310
  ele: 'el-input',
342
311
  type: 'number',
343
- isKey: true,
312
+ groupKey:'content',
344
313
  valueKey: 'carouselTime',
345
314
  value: params.carouselTime || 5,
346
315
  placeholder: '请输入广告位轮播周期,单位秒',
@@ -355,10 +324,11 @@ export default {
355
324
  ]
356
325
  },
357
326
  params['isCarousel'] === 2 && {
358
- label: '广告显示dot类型:', //label
359
- ele: 'xd-select-list', //package 名称
360
- valueKey: 'dot_type', //form[valueKey]
361
- value: params['dot_type'] || 'dot', //v-model
327
+ label: '广告显示dot类型:',
328
+ ele: 'xd-select-list',
329
+ valueKey: 'dot_type',
330
+ value: params['dot_type'] || 'dot',
331
+ groupKey:'content',
362
332
  placeholder: '请选择广告显示dot类型',
363
333
  multiple: false,
364
334
  className: 'input80',
@@ -376,6 +346,7 @@ export default {
376
346
  label: '广告位内容显示行数:',
377
347
  ele: 'xd-radio',
378
348
  valueKey: 'rows',
349
+ groupKey:'content',
379
350
  value: params.rows || 1,
380
351
  list: [
381
352
  {"label": "一行", "value": 1},
@@ -383,16 +354,65 @@ export default {
383
354
  {"label": "三行", "value": 3},
384
355
  ]
385
356
  },
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
- ]
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
+
395
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
+ },
414
+ },
415
+
396
416
  ].filter(i=>i)
397
417
  },
398
418
  advanced: [