jufubao-base 1.0.132 → 1.0.134-beta1

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 (205) 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 +78 -36
  20. package/src/components/JfbBaseCard/JfbBaseCard.vue +2 -2
  21. package/src/components/JfbBaseCard/JfbBaseCardLess.less +18 -19
  22. package/src/components/JfbBaseCardBind/JfbBaseCardBindLess.less +18 -19
  23. package/src/components/JfbBaseCardBindV2/Attr.js +5 -4
  24. package/src/components/JfbBaseCardBindV2/JfbBaseCardBindV2.vue +7 -1
  25. package/src/components/JfbBaseCardBindV2/JfbBaseCardBindV2Less.less +18 -19
  26. package/src/components/JfbBaseCardDetail/Attr.js +4 -3
  27. package/src/components/JfbBaseCardDetail/JfbBaseCardDetailLess.less +18 -19
  28. package/src/components/JfbBaseCardDetailEntry/Attr.js +10 -8
  29. package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +4 -13
  30. package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntryLess.less +18 -19
  31. package/src/components/JfbBaseCardDisabled/Attr.js +1 -3
  32. package/src/components/JfbBaseCardDisabled/JfbBaseCardDisabledLess.less +18 -19
  33. package/src/components/JfbBaseCardDisabledEntry/JfbBaseCardDisabledEntryLess.less +18 -19
  34. package/src/components/JfbBaseCardEntry/Api.js +1 -1
  35. package/src/components/JfbBaseCardEntry/Attr.js +86 -67
  36. package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +6 -5
  37. package/src/components/JfbBaseCardEntry/JfbBaseCardEntryLess.less +18 -19
  38. package/src/components/JfbBaseCardInfo/Attr.js +22 -16
  39. package/src/components/JfbBaseCardInfo/JfbBaseCardInfoLess.less +18 -19
  40. package/src/components/JfbBaseCardInfoEntry/Attr.js +16 -11
  41. package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntryLess.less +18 -19
  42. package/src/components/JfbBaseCardMerge/Attr.js +21 -8
  43. package/src/components/JfbBaseCardMerge/JfbBaseCardMerge.vue +15 -30
  44. package/src/components/JfbBaseCardMerge/JfbBaseCardMergeLess.less +18 -19
  45. package/src/components/JfbBaseCardMergeEntry/Attr.js +20 -6
  46. package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntry.vue +28 -25
  47. package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntryLess.less +18 -19
  48. package/src/components/JfbBaseCardShift/Attr.js +18 -4
  49. package/src/components/JfbBaseCardShift/JfbBaseCardShift.vue +26 -11
  50. package/src/components/JfbBaseCardShift/JfbBaseCardShiftLess.less +18 -19
  51. package/src/components/JfbBaseCardShift/Mock.js +21 -0
  52. package/src/components/JfbBaseCardShiftEntry/Attr.js +34 -26
  53. package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntry.vue +294 -257
  54. package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntryLess.less +18 -19
  55. package/src/components/JfbBaseCardShiftEntry/Mock.js +2 -1
  56. package/src/components/JfbBaseCardSweepInfo/Attr.js +5 -3
  57. package/src/components/JfbBaseCardSweepInfo/JfbBaseCardSweepInfoLess.less +18 -19
  58. package/src/components/JfbBaseCardV2/Attr.js +21 -17
  59. package/src/components/JfbBaseCardV2/JfbBaseCardV2.vue +3 -5
  60. package/src/components/JfbBaseCardV2/JfbBaseCardV2Less.less +18 -19
  61. package/src/components/JfbBaseCardV3/Attr.js +18 -14
  62. package/src/components/JfbBaseCardV3/JfbBaseCardV3.vue +1 -1
  63. package/src/components/JfbBaseCardV3/JfbBaseCardV3Less.less +18 -19
  64. package/src/components/JfbBaseCity/Attr.js +2 -4
  65. package/src/components/JfbBaseCity/JfbBaseCityLess.less +18 -19
  66. package/src/components/{JfbBaseWalletDetail → JfbBaseClear}/Attr.js +1 -0
  67. package/src/components/JfbBaseClear/JfbBaseClear.vue +9 -9
  68. package/src/components/JfbBaseClear/JfbBaseClearLess.less +18 -19
  69. package/src/components/JfbBaseClear/JfbBaseClearMixin.js +12 -0
  70. package/src/components/JfbBaseConDialog/Api.js +2 -2
  71. package/src/components/JfbBaseConDialog/Attr.js +30 -20
  72. package/src/components/JfbBaseConDialog/JfbBaseConDialog.vue +45 -26
  73. package/src/components/JfbBaseConDialog/JfbBaseConDialogLess.less +18 -19
  74. package/src/components/JfbBaseConDialog/Mock.js +20 -1
  75. package/src/components/JfbBaseConDialog/XdCouCardBind.vue +15 -9
  76. package/src/components/JfbBaseConList/Api.js +1 -1
  77. package/src/components/JfbBaseConList/Attr.js +149 -224
  78. package/src/components/JfbBaseConList/JfbBaseConList.vue +150 -133
  79. package/src/components/JfbBaseConList/JfbBaseConListLess.less +18 -19
  80. package/src/components/JfbBaseConPhone/JfbBaseConPhoneLess.less +18 -19
  81. package/src/components/JfbBaseEntry/Attr.js +33 -21
  82. package/src/components/JfbBaseEntry/JfbBaseEntry.vue +34 -23
  83. package/src/components/JfbBaseEntry/JfbBaseEntryLess.less +18 -19
  84. package/src/components/JfbBaseExpressDetail/JfbBaseExpressDetailLess.less +18 -19
  85. package/src/components/JfbBaseFastLink/Api.js +1 -54
  86. package/src/components/JfbBaseFastLink/Attr.js +168 -116
  87. package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +12 -16
  88. package/src/components/JfbBaseFastLink/JfbBaseFastLinkLess.less +18 -19
  89. package/src/components/JfbBaseFooter/Attr.js +28 -22
  90. package/src/components/JfbBaseFooter/JfbBaseFooter.vue +19 -15
  91. package/src/components/JfbBaseFooter/JfbBaseFooterLess.less +18 -19
  92. package/src/components/JfbBaseHeader/Attr.js +89 -91
  93. package/src/components/JfbBaseHeader/JfbBaseHeader.vue +28 -29
  94. package/src/components/JfbBaseHeader/JfbBaseHeaderLess.less +18 -19
  95. package/src/components/JfbBaseLogin/Api.js +1 -1
  96. package/src/components/JfbBaseLogin/Attr.js +111 -88
  97. package/src/components/JfbBaseLogin/JfbBaseLogin.vue +4 -5
  98. package/src/components/JfbBaseLogin/JfbBaseLoginLess.less +18 -19
  99. package/src/components/JfbBaseLoginForgetPwd/Attr.js +52 -45
  100. package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwd.vue +14 -14
  101. package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwdLess.less +18 -19
  102. package/src/components/JfbBaseLoginSetPwd/Attr.js +6 -4
  103. package/src/components/JfbBaseLoginSetPwd/JfbBaseLoginSetPwdLess.less +18 -19
  104. package/src/components/JfbBaseMapOverlay/JfbBaseMapOverlayLess.less +18 -19
  105. package/src/components/JfbBaseMapSearch/Attr.js +0 -15
  106. package/src/components/JfbBaseMapSearch/JfbBaseMapSearch.vue +1 -25
  107. package/src/components/JfbBaseMapSearch/JfbBaseMapSearchLess.less +18 -19
  108. package/src/components/JfbBaseMergeUserCard/Attr.js +4 -3
  109. package/src/components/JfbBaseMergeUserCard/JfbBaseMergeUserCardLess.less +18 -19
  110. package/src/components/JfbBaseMultipleExpress/Attr.js +4 -3
  111. package/src/components/JfbBaseMultipleExpress/JfbBaseMultipleExpressLess.less +18 -19
  112. package/src/components/JfbBaseMy/JfbBaseMyLess.less +18 -19
  113. package/src/components/JfbBaseMySetting/Attr.js +1 -1
  114. package/src/components/JfbBaseMySetting/JfbBaseMySettingLess.less +18 -19
  115. package/src/components/JfbBaseNotice/Attr.js +97 -56
  116. package/src/components/JfbBaseNotice/JfbBaseNotice.vue +70 -52
  117. package/src/components/JfbBaseNotice/JfbBaseNoticeLess.less +18 -19
  118. package/src/components/JfbBaseNoticeBottom/JfbBaseNoticeBottomLess.less +18 -19
  119. package/src/components/JfbBaseNoticeTop/JfbBaseNoticeTopLess.less +18 -19
  120. package/src/components/JfbBaseOrderDetail/Attr.js +210 -193
  121. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +8 -3
  122. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetailLess.less +18 -19
  123. package/src/components/JfbBaseOrderList/Attr.js +56 -44
  124. package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +5 -3
  125. package/src/components/JfbBaseOrderList/JfbBaseOrderListLess.less +18 -19
  126. package/src/components/JfbBasePay/Attr.js +2 -13
  127. package/src/components/JfbBasePay/JfbBasePay.vue +7 -6
  128. package/src/components/JfbBasePay/JfbBasePayLess.less +18 -19
  129. package/src/components/JfbBasePay/Mock.js +2 -1
  130. package/src/components/JfbBasePhoneCollect/Attr.js +27 -2
  131. package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +1 -1
  132. package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollectLess.less +18 -19
  133. package/src/components/JfbBasePhoneLogin/Attr.js +27 -2
  134. package/src/components/JfbBasePhoneLogin/JfbBasePhoneLoginLess.less +18 -19
  135. package/src/components/JfbBasePoster/Attr.js +103 -83
  136. package/src/components/JfbBasePoster/JfbBasePoster.vue +134 -141
  137. package/src/components/JfbBasePoster/JfbBasePosterLess.less +18 -19
  138. package/src/components/JfbBasePosterBigSmall/Attr.js +93 -76
  139. package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmall.vue +3 -7
  140. package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmallLess.less +18 -19
  141. package/src/components/JfbBasePosterBigSmall/getWidthHeight.js +2 -2
  142. package/src/components/JfbBasePosterEntry/Attr.js +47 -34
  143. package/src/components/JfbBasePosterEntry/JfbBasePosterEntry.vue +44 -49
  144. package/src/components/JfbBasePosterEntry/JfbBasePosterEntryLess.less +18 -19
  145. package/src/components/JfbBasePosterType/Attr.js +82 -48
  146. package/src/components/JfbBasePosterType/FourScreen.vue +8 -2
  147. package/src/components/JfbBasePosterType/JfbBasePosterType.vue +36 -59
  148. package/src/components/JfbBasePosterType/JfbBasePosterTypeLess.less +18 -19
  149. package/src/components/JfbBaseRecharge/Attr.js +35 -23
  150. package/src/components/JfbBaseRecharge/JfbBaseRecharge.vue +54 -8
  151. package/src/components/JfbBaseRecharge/JfbBaseRechargeLess.less +18 -19
  152. package/src/components/JfbBaseRechargeOrder/Attr.js +32 -22
  153. package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrder.vue +12 -7
  154. package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrderLess.less +18 -19
  155. package/src/components/JfbBaseRechargeOrderDetail/JfbBaseRechargeOrderDetailLess.less +18 -19
  156. package/src/components/JfbBaseRechargeSuccess/Attr.js +10 -8
  157. package/src/components/JfbBaseRechargeSuccess/JfbBaseRechargeSuccessLess.less +18 -19
  158. package/src/components/JfbBaseSearch/Attr.js +6 -148
  159. package/src/components/JfbBaseSearch/JfbBaseSearch.vue +8 -37
  160. package/src/components/JfbBaseSearch/JfbBaseSearchLess.less +18 -19
  161. package/src/components/JfbBaseSetPwd/Attr.js +6 -147
  162. package/src/components/JfbBaseSetPwd/JfbBaseSetPwdLess.less +18 -19
  163. package/src/components/JfbBaseSuccess/Attr.js +89 -19
  164. package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +39 -18
  165. package/src/components/JfbBaseSuccess/JfbBaseSuccessLess.less +18 -19
  166. package/src/components/JfbBaseTestApi/JfbBaseTestApi.vue +9 -9
  167. package/src/components/JfbBaseTestApi/JfbBaseTestApiLess.less +18 -19
  168. package/src/components/JfbBaseTestBody/JfbBaseTestBodyLess.less +18 -19
  169. package/src/components/JfbBaseTestBottom/JfbBaseTestBottomLess.less +18 -19
  170. package/src/components/JfbBaseTestNotice/JfbBaseTestNoticeLess.less +18 -19
  171. package/src/components/JfbBaseTestTop/JfbBaseTestTopLess.less +18 -19
  172. package/src/components/JfbBaseUserCenter/Attr.js +72 -53
  173. package/src/components/JfbBaseUserCenter/JfbBaseUserCenter.vue +40 -27
  174. package/src/components/JfbBaseUserCenter/JfbBaseUserCenterLess.less +18 -19
  175. package/src/components/JfbBaseUserInfo/Attr.js +54 -45
  176. package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +21 -21
  177. package/src/components/JfbBaseUserInfo/JfbBaseUserInfoLess.less +18 -19
  178. package/src/components/JfbBaseUserOrder/Attr.js +119 -94
  179. package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +21 -7
  180. package/src/components/JfbBaseUserOrder/JfbBaseUserOrderLess.less +18 -19
  181. package/src/components/JfbBaseVideo/Attr.js +72 -19
  182. package/src/components/JfbBaseVideo/JfbBaseVideo.vue +69 -28
  183. package/src/components/JfbBaseVideo/JfbBaseVideoLess.less +18 -19
  184. package/src/components/JfbBaseVideo/XdVideo.vue +6 -44
  185. package/src/components/JfbBaseWallet/JfbBaseWalletLess.less +18 -19
  186. package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetailLess.less +18 -19
  187. package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetailMixin.js +0 -12
  188. package/src/components/JfbBaseWalletEffective/JfbBaseWalletEffectiveLess.less +18 -19
  189. package/src/components/JfbBaseWalletIndex/JfbBaseWalletIndexLess.less +18 -19
  190. package/src/components/JfbBaseWalletItem/JfbBaseWalletItemLess.less +18 -19
  191. package/src/components/JfbBaseWebview/JfbBaseWebviewLess.less +18 -19
  192. package/src/components/JfbBaseWxAuthorize/Api.js +3 -3
  193. package/src/components/JfbBaseWxAuthorize/Attr.js +31 -3
  194. package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorize.vue +34 -28
  195. package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorizeLess.less +18 -19
  196. package/src/components/JfbBaseWxAuthorizeError/Attr.js +21 -17
  197. package/src/components/JfbBaseWxAuthorizeError/JfbBaseWxAuthorizeError.vue +4 -4
  198. package/src/components/JfbBaseWxAuthorizeError/JfbBaseWxAuthorizeErrorLess.less +18 -19
  199. package/src/components/JfbBaseLine/Attr.js +0 -59
  200. package/src/components/JfbBaseLine/JfbBaseLine.vue +0 -105
  201. package/src/components/JfbBaseLine/JfbBaseLineLess.less +0 -80
  202. package/src/components/JfbBaseLine/JfbBaseLineMixin.js +0 -30
  203. package/src/components/JfbBasePosterType/Screen.vue +0 -284
  204. package/src/components/JfbBaseSearch/Api.js +0 -60
  205. package/src/components/JfbBaseSearch/Mock.js +0 -5
@@ -8,9 +8,10 @@ export default {
8
8
  content: (data) => {
9
9
  return [
10
10
  {
11
- label: '内容配置:',
11
+ label: '合并说明:',
12
12
  ele: 'xd-site-news',
13
13
  valueKey: 'notice',
14
+ groupKey:'content',
14
15
  value: data.notice || null,
15
16
  className: 'input70',
16
17
  setting: {
@@ -31,7 +32,8 @@ export default {
31
32
  }
32
33
 
33
34
  //获取返回参数(场景类型名称为必填)
34
- let loading = XdBus.getParentApi('loading')({});
35
+ //获取返回参数(场景类型名称为必填)
36
+ let loading = { close(){}}
35
37
 
36
38
  //获取显示内容
37
39
  if (action === 'screen') {
@@ -75,6 +77,7 @@ export default {
75
77
 
76
78
  //使用内容分类
77
79
  if (action === 'cmsPublishEditxContent') {
80
+ loading = XdBus.getParentApi('loading')({});
78
81
  XdBus.getParentApi('cmsPublishEditxContent')(data.params)
79
82
  .then(res => {
80
83
  console.log('cmsPublishEditxContent', res)
@@ -89,6 +92,7 @@ export default {
89
92
 
90
93
  //位置列表
91
94
  if (action === 'getListPostion') {
95
+ loading = XdBus.getParentApi('loading')({});
92
96
  XdBus.getParentApi('getListNewsPosition')(data.params)
93
97
  .then(res => {
94
98
  loading.close();
@@ -102,6 +106,7 @@ export default {
102
106
 
103
107
  //位置创建
104
108
  if (action === 'addPostion') {
109
+ loading = XdBus.getParentApi('loading')({});
105
110
  XdBus.getParentApi('addNewsPosition')(data.params)
106
111
  .then(res => {
107
112
  loading.close();
@@ -116,6 +121,7 @@ export default {
116
121
 
117
122
  //位置编辑
118
123
  if (action === 'editPostion') {
124
+ loading = XdBus.getParentApi('loading')({});
119
125
  XdBus.getParentApi('updateNewsPosition')(data.params)
120
126
  .then(res => {
121
127
  loading.close();
@@ -130,6 +136,7 @@ export default {
130
136
 
131
137
  //位置删除
132
138
  if (action === 'deleltePostion') {
139
+ loading = XdBus.getParentApi('loading')({});
133
140
  XdBus.getParentApi('deleteNewsPosition')(data.params)
134
141
  .then(res => {
135
142
  loading.close();
@@ -144,6 +151,7 @@ export default {
144
151
 
145
152
  //获取广告位内容列表
146
153
  if (action === 'getListContent') {
154
+ loading = XdBus.getParentApi('loading')({});
147
155
  XdBus.getParentApi('getListNewsContent')(data.params)
148
156
  .then(res => {
149
157
  loading.close();
@@ -157,6 +165,7 @@ export default {
157
165
 
158
166
  //广告内容创建
159
167
  if (action === 'addContent') {
168
+ loading = XdBus.getParentApi('loading')({});
160
169
  XdBus.getParentApi('addNewsContent')(data.params)
161
170
  .then(res => {
162
171
  loading.close();
@@ -171,6 +180,7 @@ export default {
171
180
 
172
181
  //广告内容编辑
173
182
  if (action === 'editContent') {
183
+ loading = XdBus.getParentApi('loading')({});
174
184
  XdBus.getParentApi('updateNewsContent')(data.params)
175
185
  .then(res => {
176
186
  loading.close();
@@ -185,6 +195,7 @@ export default {
185
195
 
186
196
  //广告内容删除
187
197
  if (action === 'deleteContent') {
198
+ loading = XdBus.getParentApi('loading')({});
188
199
  XdBus.getParentApi('deleteNewsContent')(data.params)
189
200
  .then(res => {
190
201
  loading.close();
@@ -199,6 +210,7 @@ export default {
199
210
 
200
211
  //内容发布
201
212
  if (action === 'publish') {
213
+ loading = XdBus.getParentApi('loading')({});
202
214
  console.log('publish', data.params)
203
215
  XdBus.getParentApi('cmsPublishContent')(data.params)
204
216
  .then(res => {
@@ -213,6 +225,7 @@ export default {
213
225
 
214
226
  //通知页面进行刷新
215
227
  if (action === 'update') {
228
+ loading = XdBus.getParentApi('loading')({});
216
229
  XdBus.getParentApi('getXdBusUpdateView')('onUpdateView', {});
217
230
  loading.close()
218
231
  }
@@ -220,10 +233,11 @@ export default {
220
233
  inline: false,
221
234
  },
222
235
  {
223
- label: '卡券主页:', //label
224
- ele: 'xd-select-pages-path', //package 名称
225
- valueKey: 'cardPath', //form[valueKey]
226
- placeholder: '请选择卡券主页地址',
236
+ label: '票券合并完成后跳转链接地址:',
237
+ ele: 'xd-select-pages-path',
238
+ valueKey: 'cardPath',
239
+ groupKey:'advanced',
240
+ placeholder: '请选择票券合并完成后跳转链接地址',
227
241
  value: data.cardPath || null,
228
242
  setting: {
229
243
  router: XdBus.getParentApi('getPagesTree'),
@@ -232,6 +246,5 @@ export default {
232
246
  },
233
247
  ].filter(i=>i)
234
248
  },
235
- advanced: [
236
- ],
249
+ advanced: [],
237
250
  };
@@ -57,14 +57,7 @@
57
57
  class="capture"
58
58
  @click="switchValidToken"
59
59
  >
60
- <image
61
- style="width: 100%; height: 100%"
62
- :src="
63
- validImageAPIUrl +
64
- '?image_width=180&image_height=80&token=' +
65
- mergeForm.valid_token
66
- "
67
- />
60
+ <image style="width: 100%; height: 100%" :src="validImageAPIUrl +'?image_width=180&image_height=80&token=' + mergeForm.valid_token"/>
68
61
  </view>
69
62
  </view>
70
63
  </xd-form-item>
@@ -79,8 +72,8 @@
79
72
  <view
80
73
  v-if="isPreview && statusContent === true && content === '' "
81
74
  class="xd-notice"
82
- :style="{ color: dangerColor,fontSize: 24 + 'rpx' }"
83
- >温馨提示未配置数据,因此改模块在正式环境将不显示</view>
75
+ :style="{ color: dangerColor,fontSize: 24 + 'rpx',backgroundColor:noticeBgc }"
76
+ >温馨提示未配置数据,因此该模块在正式环境将不显示</view>
84
77
  </view>
85
78
  </template>
86
79
 
@@ -116,23 +109,24 @@ export default {
116
109
  data() {
117
110
  return {
118
111
  mergeForm: {},
119
-
112
+
120
113
  fromList: [],
121
114
  toList: [],
122
115
  fromSelect: null,
123
116
  toSelect: null,
124
117
  randomKey: Date.now(),
125
-
126
-
118
+
119
+
127
120
  content: "",
128
121
  contentBackgroundColor: '',
129
-
122
+
130
123
  selfMask: true,
131
124
  cardPath: '', //卡券主页
132
-
125
+
133
126
  //提示文案
134
127
  isPreview: false,
135
128
  statusContent: false,
129
+ noticeBgc:'',
136
130
  };
137
131
  },
138
132
  computed: {
@@ -151,6 +145,7 @@ export default {
151
145
  this.switchValidToken();
152
146
  this.validImageAPIUrl = this.brandInfo["api_host"] + "/common/v1/valid_code/image/show";
153
147
  this.contentBackgroundColor = Color(this.warningColor).alpha(0.2).toString();
148
+ this.noticeBgc = Color(this.dangerColor).alpha(0.1).toString();
154
149
  },
155
150
  methods: {
156
151
  onJfbLoad(options) {
@@ -182,9 +177,10 @@ export default {
182
177
  },
183
178
  })
184
179
  .then((res) => {
185
- this.content = res.list[0].content;
180
+ if(res.list.length > 0) {
181
+ this.content = res.list[0].content;
182
+ }
186
183
  this.statusContent = true;
187
- console.log(this.content, "this.content");
188
184
  })
189
185
  .catch((error) => {
190
186
  console.error(error);
@@ -195,11 +191,7 @@ export default {
195
191
  * @param container {object} 业务组件对象自己
196
192
  */
197
193
  init(container) {
198
- this.textColor = getContainerPropsValue(
199
- container,
200
- "content.textColor",
201
- this.warningColor
202
- );
194
+ this.textColor = getContainerPropsValue(container, "content.textColor", this.warningColor);
203
195
  this.cardPath = getContainerPropsValue(container, "content.cardPath", {value: ""}).value;
204
196
  },
205
197
  //刷新图片验证码
@@ -208,13 +200,6 @@ export default {
208
200
  this.$set(this.mergeForm, "valid_token", valid_token);
209
201
  },
210
202
  handleToSubmit() {
211
- // if (!this.mergeForm.valid_code) {
212
- // uni.showToast({
213
- // title: "验证码不能为空!",
214
- // icon: "none",
215
- // });
216
- // return;
217
- // }
218
203
  this.$xdConfirm({
219
204
  title: "是否确认合并卡",
220
205
  isHtml: true,
@@ -322,7 +307,7 @@ export default {
322
307
  .align-center {
323
308
  align-items: center;
324
309
  }
325
-
310
+
326
311
  &-btn {
327
312
  padding-bottom: unit(20, rpx);
328
313
  }
@@ -13,9 +13,8 @@
13
13
 
14
14
  //start
15
15
  .jfb-base-card-merge {
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-card-merge {
75
- &:before {
76
- content: " ";
77
- display: table;
78
- }
74
+ //&:before {
75
+ //content: " ";
76
+ //display: table;
77
+ //}
79
78
  }
80
79
  /**endNotPreview**/
@@ -8,10 +8,11 @@ export default {
8
8
  content: (data) => {
9
9
  return [
10
10
  {
11
- label: '内容配置:',
11
+ label: '合并票券说明:',
12
12
  ele: 'xd-site-news',
13
13
  valueKey: 'notice',
14
14
  value: data.notice || null,
15
+ groupKey:'content',
15
16
  className: 'input70',
16
17
  setting: {
17
18
  config: {
@@ -31,7 +32,8 @@ export default {
31
32
  }
32
33
 
33
34
  //获取返回参数(场景类型名称为必填)
34
- let loading = XdBus.getParentApi('loading')({});
35
+ //获取返回参数(场景类型名称为必填)
36
+ let loading = { close(){}}
35
37
 
36
38
  //获取显示内容
37
39
  if (action === 'screen') {
@@ -75,6 +77,7 @@ export default {
75
77
 
76
78
  //使用内容分类
77
79
  if (action === 'cmsPublishEditxContent') {
80
+ loading = XdBus.getParentApi('loading')({});
78
81
  XdBus.getParentApi('cmsPublishEditxContent')(data.params)
79
82
  .then(res => {
80
83
  console.log('cmsPublishEditxContent', res)
@@ -89,6 +92,7 @@ export default {
89
92
 
90
93
  //位置列表
91
94
  if (action === 'getListPostion') {
95
+ loading = XdBus.getParentApi('loading')({});
92
96
  XdBus.getParentApi('getListNewsPosition')(data.params)
93
97
  .then(res => {
94
98
  loading.close();
@@ -102,6 +106,7 @@ export default {
102
106
 
103
107
  //位置创建
104
108
  if (action === 'addPostion') {
109
+ loading = XdBus.getParentApi('loading')({});
105
110
  XdBus.getParentApi('addNewsPosition')(data.params)
106
111
  .then(res => {
107
112
  loading.close();
@@ -116,6 +121,7 @@ export default {
116
121
 
117
122
  //位置编辑
118
123
  if (action === 'editPostion') {
124
+ loading = XdBus.getParentApi('loading')({});
119
125
  XdBus.getParentApi('updateNewsPosition')(data.params)
120
126
  .then(res => {
121
127
  loading.close();
@@ -130,6 +136,7 @@ export default {
130
136
 
131
137
  //位置删除
132
138
  if (action === 'deleltePostion') {
139
+ loading = XdBus.getParentApi('loading')({});
133
140
  XdBus.getParentApi('deleteNewsPosition')(data.params)
134
141
  .then(res => {
135
142
  loading.close();
@@ -144,6 +151,7 @@ export default {
144
151
 
145
152
  //获取广告位内容列表
146
153
  if (action === 'getListContent') {
154
+ loading = XdBus.getParentApi('loading')({});
147
155
  XdBus.getParentApi('getListNewsContent')(data.params)
148
156
  .then(res => {
149
157
  loading.close();
@@ -157,6 +165,7 @@ export default {
157
165
 
158
166
  //广告内容创建
159
167
  if (action === 'addContent') {
168
+ loading = XdBus.getParentApi('loading')({});
160
169
  XdBus.getParentApi('addNewsContent')(data.params)
161
170
  .then(res => {
162
171
  loading.close();
@@ -171,6 +180,7 @@ export default {
171
180
 
172
181
  //广告内容编辑
173
182
  if (action === 'editContent') {
183
+ loading = XdBus.getParentApi('loading')({});
174
184
  XdBus.getParentApi('updateNewsContent')(data.params)
175
185
  .then(res => {
176
186
  loading.close();
@@ -185,6 +195,7 @@ export default {
185
195
 
186
196
  //广告内容删除
187
197
  if (action === 'deleteContent') {
198
+ loading = XdBus.getParentApi('loading')({});
188
199
  XdBus.getParentApi('deleteNewsContent')(data.params)
189
200
  .then(res => {
190
201
  loading.close();
@@ -199,6 +210,7 @@ export default {
199
210
 
200
211
  //内容发布
201
212
  if (action === 'publish') {
213
+ loading = XdBus.getParentApi('loading')({});
202
214
  console.log('publish', data.params)
203
215
  XdBus.getParentApi('cmsPublishContent')(data.params)
204
216
  .then(res => {
@@ -213,6 +225,7 @@ export default {
213
225
 
214
226
  //通知页面进行刷新
215
227
  if (action === 'update') {
228
+ loading = XdBus.getParentApi('loading')({});
216
229
  XdBus.getParentApi('getXdBusUpdateView')('onUpdateView', {});
217
230
  loading.close()
218
231
  }
@@ -220,10 +233,11 @@ export default {
220
233
  inline: false,
221
234
  },
222
235
  {
223
- label: '卡券主页:', //label
224
- ele: 'xd-select-pages-path', //package 名称
225
- valueKey: 'cardPath', //form[valueKey]
226
- placeholder: '请选择卡券主页地址',
236
+ label: '票券合并成功跳转地址:',
237
+ ele: 'xd-select-pages-path',
238
+ valueKey: 'cardPath',
239
+ groupKey:'advanced',
240
+ placeholder: '请选择票券合并成功跳转地址',
227
241
  value: data.cardPath || null,
228
242
  setting: {
229
243
  router: XdBus.getParentApi('getPagesTree'),
@@ -83,8 +83,8 @@
83
83
  <view
84
84
  v-if="isPreview && statusContent === true && content === '' "
85
85
  class="xd-notice"
86
- :style="{ color: dangerColor,fontSize: 24 + 'rpx' }"
87
- >温馨提示未配置数据,因此改模块在正式环境将不显示</view>
86
+ :style="{ color: dangerColor,fontSize: 24 + 'rpx',backgroundColor:noticeBgc }"
87
+ >温馨提示未配置数据,因此该模块在正式环境将不显示</view>
88
88
  <view class="bottom_btn-mask"></view>
89
89
  <view class="bottom_btn" :style="prod_bottom">
90
90
  <xd-button
@@ -140,24 +140,25 @@ export default {
140
140
  randomKey: Date.now(),
141
141
  valid_code:'',
142
142
  valid_token: 'valid_token',
143
-
144
-
143
+
144
+
145
145
  content: "",
146
146
  contentBackgroundColor: '',
147
147
  cardPath: '', //卡券主页
148
-
148
+
149
149
  //提示文案
150
150
  isPreview: false,
151
151
  statusContent: false,
152
152
  disabledKey: 'disabledKey',
153
153
  toPlaceholder:'选择转入票券',
154
+ noticeBgc:'',
154
155
  };
155
156
  },
156
157
  computed: {
157
158
  ...mapState({
158
159
  brandInfo: (state) => state.brandInfo,
159
160
  }),
160
-
161
+
161
162
  themeOutStyle(){
162
163
  if(this.fromSelect === null) {
163
164
  return this.getCardThemes('1');
@@ -175,7 +176,7 @@ export default {
175
176
  prod_bottom() {
176
177
  return this.fixedStyle({height: 0, zIndex: 111});
177
178
  },
178
-
179
+
179
180
  disabled(){
180
181
  this.disabledKey = Date.now();
181
182
  return this.fromSelect === null || this.toSelect === null;
@@ -189,9 +190,11 @@ export default {
189
190
  created() {
190
191
  this.init(this.container);
191
192
  this.isPreview = this.$configProject.isPreview;
193
+ this.noticeBgc = Color(this.dangerColor).alpha(0.1).toString();
192
194
  this.switchValidToken();
193
195
  this.validImageAPIUrl = this.brandInfo["api_host"] + "/common/v1/valid_code/image/show";
194
196
  this.contentBackgroundColor = Color(this.warningColor).alpha(0.2).toString();
197
+
195
198
  },
196
199
  methods: {
197
200
  onJfbLoad(options) {
@@ -241,12 +244,12 @@ export default {
241
244
  this.textColor = getContainerPropsValue(container, "content.textColor", this.warningColor);
242
245
  this.cardPath = getContainerPropsValue(container, "content.cardPath", {value: ""}).value;
243
246
  },
244
-
247
+
245
248
  //刷新图片验证码
246
249
  switchValidToken() {
247
250
  this.valid_token = this.$xdUniHelper.randomChar(20);
248
251
  },
249
-
252
+
250
253
  handleToSubmit() {
251
254
  // if (!this.valid_code) {
252
255
  // uni.showToast({
@@ -255,7 +258,7 @@ export default {
255
258
  // });
256
259
  // return;
257
260
  // }
258
-
261
+
259
262
  let outPrice = this.$xdUniHelper.divisionFloatNumber(this.fromSelect.card_point, 100);
260
263
  let outHtml = `${this.fromSelect.value}(剩余:${outPrice})`;
261
264
  let inPrice = this.$xdUniHelper.divisionFloatNumber(this.toSelect.card_point, 100);
@@ -272,12 +275,12 @@ export default {
272
275
  // valid_code: this.valid_code,
273
276
  // valid_token: this.valid_token
274
277
  };
275
-
278
+
276
279
  if (action.confirm) {
277
280
  if(this.$configProject.isPreview) return;
278
281
  jfbRootExec("mergeCardEntry", { vm: this,data: params})
279
282
  .then((res) => {
280
- this.$xdAlert({content: '合卡成功!', time: 1000});
283
+ this.$xdAlert({content: '票券合并成功!', time: 1000});
281
284
  setTimeout(()=>{
282
285
  this.$xdUniHelper.navigateTo({
283
286
  url: this.cardPath
@@ -341,7 +344,7 @@ export default {
341
344
  .capture {
342
345
  width: unit(160, rpx);
343
346
  height: unit(70, rpx);
344
-
347
+
345
348
  & >image {
346
349
  width: 100%;
347
350
  height: 100%;
@@ -354,7 +357,7 @@ export default {
354
357
  .align-center {
355
358
  align-items: center;
356
359
  }
357
-
360
+
358
361
  &-btn {
359
362
  padding-bottom: unit(20, rpx);
360
363
  }
@@ -368,21 +371,21 @@ export default {
368
371
  border-radius: unit(16, rpx);
369
372
  overflow: hidden;
370
373
  margin-bottom: unit(30, rpx);
371
-
374
+
372
375
  &:last-child {
373
376
  margin-bottom: 0;
374
377
  }
375
-
378
+
376
379
  &-box {
377
380
  background-size: 100%;
378
381
  background-repeat: no-repeat;
379
382
  background-position: top center;
380
-
383
+
381
384
  & >view:nth-child(2) {
382
385
  padding: unit(40, rpx);
383
386
  }
384
387
  }
385
-
388
+
386
389
  &-title {
387
390
  height: unit(50, rpx);
388
391
  background: rgba(102, 102, 102, 0.4);
@@ -391,13 +394,13 @@ export default {
391
394
  align-items: center;
392
395
  color: #fff;
393
396
  font-size: unit(24, rpx);
394
-
397
+
395
398
  &>view:nth-child(2) {
396
399
  margin-left: unit(10, rpx);
397
400
  }
398
401
  }
399
-
400
-
402
+
403
+
401
404
  }
402
405
  }
403
406
 
@@ -406,13 +409,13 @@ export default {
406
409
  justify-content: space-between;
407
410
  align-items: center;
408
411
  padding: 0 unit(30, rpx);
409
-
410
-
412
+
413
+
411
414
  & > view:first-child, &> view:last-child {
412
415
  flex-shrink: 0;
413
416
  font-size: unit(32, rpx);
414
417
  }
415
-
418
+
416
419
  & > view:nth-child(2) {
417
420
  flex: 1;
418
421
  margin: 0 unit(20, rpx);
@@ -435,7 +438,7 @@ export default {
435
438
  align-items: center;
436
439
  height: unit(120, rpx);
437
440
  background: #ffffff;
438
-
441
+
439
442
  &-mask {
440
443
  height: unit(120, rpx);
441
444
  }
@@ -13,9 +13,8 @@
13
13
 
14
14
  //start
15
15
  .jfb-base-card-merge-entry {
16
- border: 1px dashed rgba(0, 0, 0, 0);
17
16
  box-sizing: border-box;
18
- min-height: unit(50, rpx);
17
+ min-height: unit(100, rpx);
19
18
 
20
19
  &__body{
21
20
  position: relative;
@@ -23,21 +22,21 @@
23
22
  z-index: 2
24
23
  }
25
24
 
26
- &.editx {
25
+ &.editx,&:hover {
27
26
  position: relative;
28
- border: 1px dashed blue;
29
- box-sizing: border-box;
30
- z-index: 3
31
-
32
- }
33
-
34
- &:hover {
35
- border: 1px dashed blue;
36
- }
27
+ z-index: 3;
28
+ &::after {
29
+ border: 2rpx dashed blue;
30
+ content: " ";
31
+ position: absolute;
32
+ top:0;
33
+ left:0;
34
+ bottom:0;
35
+ right:0;
36
+ z-index: 4;
37
+ cursor: pointer;
38
+ }
37
39
 
38
- &.noBorder {
39
- border-color: rgba(0,0,0,0);
40
- border-width: 0;
41
40
  }
42
41
 
43
42
 
@@ -72,9 +71,9 @@
72
71
 
73
72
  /**notPreview**/
74
73
  .jfb-base-card-merge-entry {
75
- &:before {
76
- content: " ";
77
- display: table;
78
- }
74
+ //&:before {
75
+ //content: " ";
76
+ //display: table;
77
+ //}
79
78
  }
80
79
  /**endNotPreview**/