jufubao-base 1.0.134-beta8 → 1.0.134

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