jufubao-base 1.0.241 → 1.0.242-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 (128) hide show
  1. package/package.json +1 -1
  2. package/src/components/JfbBaseBalance/Api.js +46 -0
  3. package/src/components/JfbBaseBalance/Attr.js +316 -0
  4. package/src/components/JfbBaseBalance/JfbBaseBalance.vue +336 -0
  5. package/src/components/JfbBaseBalance/JfbBaseBalanceLess.less +79 -0
  6. package/src/components/JfbBaseBalance/JfbBaseBalanceMixin.js +30 -0
  7. package/src/components/JfbBaseBalance/Mock.js +9 -0
  8. package/src/components/JfbBaseCodeOpenVip/Api.js +35 -0
  9. package/src/components/JfbBaseCodeOpenVip/Attr.js +281 -0
  10. package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVip.vue +251 -0
  11. package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVipLess.less +79 -0
  12. package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVipMixin.js +30 -0
  13. package/src/components/JfbBaseCodeOpenVip/Mock.js +13 -0
  14. package/src/components/JfbBaseConsumpCode/Api.js +133 -0
  15. package/src/components/JfbBaseConsumpCode/Attr.js +61 -0
  16. package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCode.vue +1048 -0
  17. package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCodeLess.less +79 -0
  18. package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCodeMixin.js +30 -0
  19. package/src/components/JfbBaseConsumpCode/Mock.js +22 -0
  20. package/src/components/JfbBaseFastLink/Attr.js +12 -1
  21. package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +66 -0
  22. package/src/components/JfbBaseHeader/Attr.js +82 -0
  23. package/src/components/JfbBaseHeader/JfbBaseHeader.vue +47 -1
  24. package/src/components/JfbBaseHeaderColumn/Attr.js +82 -0
  25. package/src/components/JfbBaseHeaderColumn/JfbBaseHeaderColumn.vue +48 -2
  26. package/src/components/JfbBaseLogin/JfbBaseLogin.vue +11 -0
  27. package/src/components/JfbBaseNoticeDialog/Api.js +1 -1
  28. package/src/components/JfbBaseNoticeDialog/Attr.js +26 -0
  29. package/src/components/JfbBaseNoticeDialog/JfbBaseNoticeDialog.vue +28 -9
  30. package/src/components/JfbBaseNoticeGroup/Api.js +23 -0
  31. package/src/components/JfbBaseNoticeGroup/Attr.js +237 -0
  32. package/src/components/JfbBaseNoticeGroup/JfbBaseNoticeGroup.vue +174 -0
  33. package/src/components/JfbBaseNoticeGroup/JfbBaseNoticeGroupLess.less +79 -0
  34. package/src/components/JfbBaseNoticeGroup/JfbBaseNoticeGroupMixin.js +30 -0
  35. package/src/components/JfbBaseNoticeGroup/Mock.js +13 -0
  36. package/src/components/JfbBaseOpenVip/Api.js +39 -0
  37. package/src/components/JfbBaseOpenVip/Attr.js +331 -0
  38. package/src/components/JfbBaseOpenVip/JfbBaseOpenVip.vue +457 -0
  39. package/src/components/JfbBaseOpenVip/JfbBaseOpenVipLess.less +79 -0
  40. package/src/components/JfbBaseOpenVip/JfbBaseOpenVipMixin.js +30 -0
  41. package/src/components/JfbBaseOpenVip/Mock.js +7 -0
  42. package/src/components/JfbBaseOpenVip/XdVipList.vue +131 -0
  43. package/src/components/JfbBaseOpenVipCard/Api.js +58 -0
  44. package/src/components/JfbBaseOpenVipCard/Attr.js +48 -0
  45. package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCard.vue +111 -0
  46. package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCardLess.less +79 -0
  47. package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCardMixin.js +30 -0
  48. package/src/components/JfbBaseOpenVipCard/Mock.js +13 -0
  49. package/src/components/JfbBaseOpenVipDetail/Api.js +35 -0
  50. package/src/components/JfbBaseOpenVipDetail/Attr.js +37 -0
  51. package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetail.vue +234 -0
  52. package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetailLess.less +79 -0
  53. package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetailMixin.js +30 -0
  54. package/src/components/JfbBaseOpenVipDetail/Mock.js +15 -0
  55. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +176 -18
  56. package/src/components/JfbBasePay/Attr.js +52 -0
  57. package/src/components/JfbBasePay/JfbBasePay.vue +30 -6
  58. package/src/components/JfbBasePay/Mock.js +0 -9
  59. package/src/components/JfbBasePersonalData/Api.js +26 -0
  60. package/src/components/JfbBasePersonalData/Attr.js +13 -0
  61. package/src/components/JfbBasePersonalData/JfbBasePersonalData.vue +200 -0
  62. package/src/components/JfbBasePersonalData/JfbBasePersonalDataLess.less +79 -0
  63. package/src/components/JfbBasePersonalData/JfbBasePersonalDataMixin.js +30 -0
  64. package/src/components/JfbBasePersonalData/Mock.js +13 -0
  65. package/src/components/JfbBasePhoneLogin/JfbBasePhoneLogin.vue +11 -1
  66. package/src/components/JfbBasePointsCard/Api.js +18 -0
  67. package/src/components/JfbBasePointsCard/Attr.js +187 -0
  68. package/src/components/JfbBasePointsCard/JfbBasePointsCard.vue +212 -0
  69. package/src/components/JfbBasePointsCard/JfbBasePointsCardLess.less +79 -0
  70. package/src/components/JfbBasePointsCard/JfbBasePointsCardMixin.js +30 -0
  71. package/src/components/JfbBasePointsCard/Mock.js +5 -0
  72. package/src/components/JfbBasePointsDetail/Api.js +48 -0
  73. package/src/components/JfbBasePointsDetail/Attr.js +305 -0
  74. package/src/components/JfbBasePointsDetail/JfbBasePointsDetail.vue +267 -0
  75. package/src/components/JfbBasePointsDetail/JfbBasePointsDetailLess.less +79 -0
  76. package/src/components/JfbBasePointsDetail/JfbBasePointsDetailMixin.js +30 -0
  77. package/src/components/JfbBasePointsDetail/Mock.js +6 -0
  78. package/src/components/JfbBasePoster/Attr.js +1 -1
  79. package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmall.vue +2 -2
  80. package/src/components/JfbBasePosterGroup/Api.js +22 -0
  81. package/src/components/JfbBasePosterGroup/Attr.js +156 -0
  82. package/src/components/JfbBasePosterGroup/JfbBasePosterGroup.vue +268 -0
  83. package/src/components/JfbBasePosterGroup/JfbBasePosterGroupLess.less +79 -0
  84. package/src/components/JfbBasePosterGroup/JfbBasePosterGroupMixin.js +30 -0
  85. package/src/components/JfbBasePosterGroup/Mock.js +13 -0
  86. package/src/components/JfbBaseSavingDetail/Api.js +41 -0
  87. package/src/components/JfbBaseSavingDetail/Attr.js +70 -0
  88. package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetail.vue +710 -0
  89. package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetailLess.less +79 -0
  90. package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetailMixin.js +30 -0
  91. package/src/components/JfbBaseSavingDetail/Mock.js +10 -0
  92. package/src/components/JfbBaseSavingDetail/components/echarts.min.js +26 -0
  93. package/src/components/JfbBaseSavingDetail/components/echarts.vue +254 -0
  94. package/src/components/JfbBaseSavingDetail/components/wx-canvas.js +105 -0
  95. package/src/components/JfbBaseShare/Api.js +20 -0
  96. package/src/components/JfbBaseShare/Attr.js +59 -0
  97. package/src/components/JfbBaseShare/JfbBaseShare.vue +276 -0
  98. package/src/components/JfbBaseShare/JfbBaseShareLess.less +79 -0
  99. package/src/components/JfbBaseShare/JfbBaseShareMixin.js +30 -0
  100. package/src/components/JfbBaseShare/Mock.js +16 -0
  101. package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +8 -3
  102. package/src/components/JfbBaseTfkSearch/ContentProduct.vue +12 -22
  103. package/src/components/JfbBaseTfkSearch/JfbBaseTfkSearch.vue +12 -1
  104. package/src/components/JfbBaseTfkSearch/Mock.js +51 -3
  105. package/src/components/JfbBaseTfkSearch/listMixins.js +2 -1
  106. package/src/components/JfbBaseUserInfo/Attr.js +175 -11
  107. package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +337 -115
  108. package/src/components/JfbBaseUserOrder/Attr.js +16 -0
  109. package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +11 -2
  110. package/src/components/JfbBaseWithDrawAgain/Api.js +41 -0
  111. package/src/components/JfbBaseWithDrawAgain/Attr.js +92 -0
  112. package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgain.vue +354 -0
  113. package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgainLess.less +79 -0
  114. package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgainMixin.js +30 -0
  115. package/src/components/JfbBaseWithDrawAgain/Mock.js +10 -0
  116. package/src/components/JfbBaseWithDrawRecord/Api.js +19 -0
  117. package/src/components/JfbBaseWithDrawRecord/Attr.js +79 -0
  118. package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecord.vue +233 -0
  119. package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecordLess.less +79 -0
  120. package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecordMixin.js +30 -0
  121. package/src/components/JfbBaseWithDrawRecord/Mock.js +7 -0
  122. package/src/components/JfbBaseWithdraw/Api.js +48 -0
  123. package/src/components/JfbBaseWithdraw/Attr.js +328 -0
  124. package/src/components/JfbBaseWithdraw/JfbBaseWithdraw.vue +272 -0
  125. package/src/components/JfbBaseWithdraw/JfbBaseWithdrawLess.less +79 -0
  126. package/src/components/JfbBaseWithdraw/JfbBaseWithdrawMixin.js +30 -0
  127. package/src/components/JfbBaseWithdraw/Mock.js +7 -0
  128. package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorize.vue +10 -0
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ module.exports = {
4
+
5
+ getNoticeByIdFilmSquate:{},
6
+
7
+ updateNoticeFilmPaiqiDate:{},
8
+
9
+ removeNoticeFilmAddress:{},
10
+
11
+ addNoticeFilmcart:{},
12
+
13
+ }
@@ -0,0 +1,39 @@
1
+ 'use strict';
2
+ /**
3
+ * @description 接口配置,
4
+ * 在设置方法名字当时候,别忘记加上【模块名字】:Open
5
+ * @type {*[]}
6
+ */
7
+ module.exports = [
8
+ {
9
+ mapFnName: 'getOpenBaseUserInfo',
10
+ title: '获取用户信息',
11
+ path: '/passport/v1/user/get',
12
+ params: {},
13
+ isRule: false,
14
+ isConsole: true,
15
+ disabled: true,
16
+ },
17
+ {
18
+ mapFnName: "getVipList",
19
+ title: "会员中心 - 会员卡列表",
20
+ path: "/member/v1/vip-card",
21
+ isRule: false,
22
+ params: {
23
+ namespace: ['业务线', 'String', true],
24
+ is_show_exchange_code: ['是否展示 兑换码 ', 'Y/N,默认N', false],
25
+ },
26
+ isConsole: true,
27
+ disabled: true
28
+ },
29
+ {
30
+ mapFnName: "getVipMoneySaving",
31
+ title: "获取会员省钱金额",
32
+ path: '/member/v1/money-saving-record/total-amount',
33
+ isRule: false,
34
+ params: {
35
+ },
36
+ isConsole: true,
37
+ disabled: true
38
+ }
39
+ ];
@@ -0,0 +1,331 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * @description 当表单组件中有联动操作时候,使用方法进行返回
5
+ */
6
+ export default {
7
+ style: [],
8
+ content: (data) => {
9
+ return [
10
+ {
11
+ label: "是否展示兑换码",
12
+ ele: "xd-radio",
13
+ valueKey: 'showExchangeCode',
14
+ value: data.showExchangeCode || "Y",
15
+ groupKey: "content",
16
+ list: [
17
+ {label: "展示", value: "Y"},
18
+ {label: "不展示", value: "N"},
19
+ ]
20
+ },
21
+ {
22
+ label: '共享PLUS会员用户协议:',
23
+ ele: 'xd-site-news',
24
+ valueKey: 'notices',
25
+ groupKey:'content',
26
+ value: data.notices || {type: 'privacy'},
27
+ className: 'input70',
28
+ setting: {
29
+ config: {
30
+ sort: true,
31
+ maxlen: 100,
32
+ action: 'aliyun',
33
+ size: 5,
34
+ tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
35
+ uploadType: 'aliyun',
36
+ type: ['jpg', 'png', 'jpeg']
37
+ },
38
+ },
39
+ handleCustom({action, data}) {
40
+ if (data && data.params) {
41
+ //当一个插件中出现多个内容分类时候需要设置code值,在页面引用时候(容器id + code)进行拼接获取数据列表
42
+ data.params = Object.assign({}, data.params, {code: 'privacy_service'});
43
+ }
44
+
45
+ //获取返回参数(场景类型名称为必填)
46
+ let loading = { close(){}}
47
+
48
+ //获取显示内容
49
+ if (action === 'screen') {
50
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_bucket_content_tip'})
51
+ .then(res => {
52
+ loading.close();
53
+ data.cb(res['list'])
54
+ })
55
+ .catch(error => {
56
+ console.error(error);
57
+ loading.close();
58
+ });
59
+
60
+ }
61
+
62
+ //获取返回参数(广告位高度必选项)
63
+ if (action === 'getNewsInfo') {
64
+ XdBus.getParentApi('cmsGetPublishEditxContent')(data.params)
65
+ .then(res => {
66
+ loading.close()
67
+ data.cb({list: res.list, selectId: res.selected})
68
+ })
69
+ .catch(error => {
70
+ loading.close()
71
+ console.error(error);
72
+ });
73
+ }
74
+
75
+ //获取产品业务线列表
76
+ if (action === 'namespace') {
77
+ XdBus.getParentApi('getOptionsNamespaces')({})
78
+ .then(res => {
79
+ loading.close()
80
+ data.cb(res['list'])
81
+ })
82
+ .catch(error => {
83
+ loading.close()
84
+ console.error(error);
85
+ });
86
+ }
87
+
88
+ //使用内容分类
89
+ if (action === 'cmsPublishEditxContent') {
90
+ loading = XdBus.getParentApi('loading')({});
91
+ XdBus.getParentApi('cmsPublishEditxContent')(data.params)
92
+ .then(res => {
93
+ console.log('cmsPublishEditxContent', res)
94
+ loading.close();
95
+ data.cb(res)
96
+ })
97
+ .catch(error => {
98
+ loading.close();
99
+ console.error(error);
100
+ });
101
+ }
102
+
103
+ //位置列表
104
+ if (action === 'getListPostion') {
105
+ loading = XdBus.getParentApi('loading')({});
106
+ XdBus.getParentApi('getListNewsPosition')(data.params)
107
+ .then(res => {
108
+ loading.close();
109
+ data.cb(res)
110
+ })
111
+ .catch(error => {
112
+ loading.close();
113
+ console.error(error);
114
+ });
115
+ }
116
+
117
+ //位置创建
118
+ if (action === 'addPostion') {
119
+ loading = XdBus.getParentApi('loading')({});
120
+ XdBus.getParentApi('addNewsPosition')(data.params)
121
+ .then(res => {
122
+ loading.close();
123
+ data.cb(true)
124
+ })
125
+ .catch(error => {
126
+ console.error(error);
127
+ loading.close();
128
+ data.cb(false)
129
+ });
130
+ }
131
+
132
+ //位置编辑
133
+ if (action === 'editPostion') {
134
+ loading = XdBus.getParentApi('loading')({});
135
+ XdBus.getParentApi('updateNewsPosition')(data.params)
136
+ .then(res => {
137
+ loading.close();
138
+ data.cb(true)
139
+ })
140
+ .catch(error => {
141
+ console.error(error);
142
+ loading.close();
143
+ data.cb(false)
144
+ });
145
+ }
146
+
147
+ //位置删除
148
+ if (action === 'deleltePostion') {
149
+ loading = XdBus.getParentApi('loading')({});
150
+ XdBus.getParentApi('deleteNewsPosition')(data.params)
151
+ .then(res => {
152
+ loading.close();
153
+ data.cb(true)
154
+ })
155
+ .catch(error => {
156
+ console.error(error);
157
+ loading.close();
158
+ data.cb(false)
159
+ });
160
+ }
161
+
162
+ //获取广告位内容列表
163
+ if (action === 'getListContent') {
164
+ loading = XdBus.getParentApi('loading')({});
165
+ XdBus.getParentApi('getListNewsContent')(data.params)
166
+ .then(res => {
167
+ loading.close();
168
+ data.cb(res)
169
+ })
170
+ .catch(error => {
171
+ loading.close();
172
+ console.error(error);
173
+ });
174
+ }
175
+
176
+ //广告内容创建
177
+ if (action === 'addContent') {
178
+ loading = XdBus.getParentApi('loading')({});
179
+ XdBus.getParentApi('addNewsContent')(data.params)
180
+ .then(res => {
181
+ loading.close();
182
+ data.cb(true)
183
+ })
184
+ .catch(error => {
185
+ console.error(error);
186
+ loading.close();
187
+ data.cb(false)
188
+ });
189
+ }
190
+
191
+ //广告内容编辑
192
+ if (action === 'editContent') {
193
+ loading = XdBus.getParentApi('loading')({});
194
+ XdBus.getParentApi('updateNewsContent')(data.params)
195
+ .then(res => {
196
+ loading.close();
197
+ data.cb(true)
198
+ })
199
+ .catch(error => {
200
+ console.error(error);
201
+ loading.close();
202
+ data.cb(false)
203
+ });
204
+ }
205
+
206
+ //广告内容删除
207
+ if (action === 'deleteContent') {
208
+ loading = XdBus.getParentApi('loading')({});
209
+ XdBus.getParentApi('deleteNewsContent')(data.params)
210
+ .then(res => {
211
+ loading.close();
212
+ data.cb(true)
213
+ })
214
+ .catch(error => {
215
+ console.error(error);
216
+ loading.close();
217
+ data.cb(false)
218
+ });
219
+ }
220
+
221
+ //内容发布
222
+ if (action === 'publish') {
223
+ loading = XdBus.getParentApi('loading')({});
224
+ console.log('publish', data.params)
225
+ XdBus.getParentApi('cmsPublishContent')(data.params)
226
+ .then(res => {
227
+ loading.close();
228
+ data.cb(res)
229
+ })
230
+ .catch(error => {
231
+ loading.close();
232
+ console.error(error);
233
+ });
234
+ }
235
+
236
+ //通知页面进行刷新
237
+ if (action === 'update') {
238
+ loading = XdBus.getParentApi('loading')({});
239
+ XdBus.getParentApi('getXdBusUpdateView')('onUpdateView', {});
240
+ loading.close()
241
+ }
242
+ },
243
+ inline: false,
244
+ notice: '',
245
+ },
246
+ {
247
+ label: "PLUS会员banner背景图",
248
+ ele: 'xd-upload',
249
+ valueKey: "bannerBgImg",
250
+ groupKey: "content",
251
+ value: data.bannerBgImg || {},
252
+ defaultValue: data.bannerBgImg || null,
253
+ slot: true,
254
+ oneWidth: 355,
255
+ oneHeight: 92,
256
+ elinputClassName: 'input40',
257
+ tipsformet: '上传文件格式:@imageType@,不超过@size@MB.建议宽度为<span style="color:red">710px</span>,高度<span style="color:red">184px</span>',
258
+ type: ['jpg', 'png', 'jpeg'],
259
+ styleType: 'one',
260
+ uploadType: 'aliyun',
261
+ size: 5,
262
+ action: 'action',
263
+ sort: true,
264
+ maxlen: 100,
265
+ rules: [
266
+ {required: true, message: '请添加背景图', trigger: 'change'},
267
+ ],
268
+ },
269
+ {
270
+ label: '4大特权图片:',
271
+ ele: 'xd-upload',
272
+ valueKey: 'specialImage',
273
+ groupKey:'content',
274
+ value: data.specialImage || {},
275
+ defaultValue: data.specialImage || null,
276
+ slot: true,
277
+ oneWidth: 375,
278
+ oneHeight: 500,
279
+ elinputClassName: 'input40',
280
+ tipsformet: '上传文件格式:@imageType@,不超过@size@MB.建议宽度为<span style="color:red">750px</span>,高度自适应',
281
+ type: ['jpg', 'png', 'jpeg'],
282
+ styleType: 'one',
283
+ uploadType: 'aliyun',
284
+ size: 5,
285
+ action: 'action',
286
+ sort: true,
287
+ maxlen: 100,
288
+ rules: [
289
+ {required: true, message: '请添加特权图片', trigger: 'change'},
290
+ ],
291
+ },
292
+ {
293
+ label: '会员详情路径:',
294
+ ele: 'xd-select-pages-path',
295
+ valueKey: 'vipDetailPath',
296
+ groupKey:'advanced',
297
+ placeholder: '请选择会员详情路径',
298
+ value: data['vipDetailPath'] || null,
299
+ setting: {
300
+ router: XdBus.getParentApi('getPagesTree'),
301
+ },
302
+ inline: false,
303
+ },
304
+ {
305
+ label: '兑换码详情路径:',
306
+ ele: 'xd-select-pages-path',
307
+ valueKey: 'exchangeCodePath',
308
+ groupKey:'advanced',
309
+ placeholder: '请选择兑换码详情路径',
310
+ value: data['exchangeCodePath'] || null,
311
+ setting: {
312
+ router: XdBus.getParentApi('getPagesTree'),
313
+ },
314
+ inline: false,
315
+ },
316
+ {
317
+ label: '省钱明细页面路径:',
318
+ ele: 'xd-select-pages-path',
319
+ valueKey: 'moneyDetailPath',
320
+ groupKey:'advanced',
321
+ placeholder: '请选择省钱明细页面路径',
322
+ value: data['moneyDetailPath'] || null,
323
+ setting: {
324
+ router: XdBus.getParentApi('getPagesTree'),
325
+ },
326
+ inline: false,
327
+ },
328
+ ].filter(i=>i)
329
+ },
330
+ advanced: [],
331
+ };