jufubao-base 1.0.119-beta9 → 1.0.120

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 (52) hide show
  1. package/package.json +3 -4
  2. package/src/components/JfbBaseConPhone/JfbBaseConPhone.vue +25 -7
  3. package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +1 -1
  4. package/src/components/JfbBaseSaasBlessDetail/Api.js +0 -72
  5. package/src/components/JfbBaseSaasBlessDetail/Attr.js +0 -24
  6. package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetail.vue +0 -352
  7. package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetailLess.less +0 -80
  8. package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetailMixin.js +0 -30
  9. package/src/components/JfbBaseSaasBlessDetail/Mock.js +0 -27
  10. package/src/components/JfbBaseSaasBlessDialog/Api.js +0 -25
  11. package/src/components/JfbBaseSaasBlessDialog/Attr.js +0 -50
  12. package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialog.vue +0 -309
  13. package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialogLess.less +0 -80
  14. package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialogMixin.js +0 -30
  15. package/src/components/JfbBaseSaasBlessDialog/Mock.js +0 -26
  16. package/src/components/JfbBaseSaasBlessReceive/Api.js +0 -25
  17. package/src/components/JfbBaseSaasBlessReceive/Attr.js +0 -24
  18. package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceive.vue +0 -201
  19. package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceiveLess.less +0 -80
  20. package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceiveMixin.js +0 -30
  21. package/src/components/JfbBaseSaasBlessReceive/Mock.js +0 -40
  22. package/src/components/JfbBaseSaasHome/Api.js +0 -48
  23. package/src/components/JfbBaseSaasHome/Attr.js +0 -35
  24. package/src/components/JfbBaseSaasHome/JfbBaseSaasHome.vue +0 -402
  25. package/src/components/JfbBaseSaasHome/JfbBaseSaasHomeLess.less +0 -80
  26. package/src/components/JfbBaseSaasHome/JfbBaseSaasHomeMixin.js +0 -30
  27. package/src/components/JfbBaseSaasHome/Mock.js +0 -32
  28. package/src/components/JfbBaseSaasLogin/Api.js +0 -98
  29. package/src/components/JfbBaseSaasLogin/Attr.js +0 -59
  30. package/src/components/JfbBaseSaasLogin/JfbBaseSaasLogin.vue +0 -724
  31. package/src/components/JfbBaseSaasLogin/JfbBaseSaasLoginLess.less +0 -80
  32. package/src/components/JfbBaseSaasLogin/JfbBaseSaasLoginMixin.js +0 -30
  33. package/src/components/JfbBaseSaasLogin/Mock.js +0 -22
  34. package/src/components/JfbBaseSaasLogin/saaslogin_copy.vue +0 -410
  35. package/src/components/JfbBaseSaasNewsDetail/Api.js +0 -27
  36. package/src/components/JfbBaseSaasNewsDetail/Attr.js +0 -14
  37. package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetail.vue +0 -149
  38. package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetailLess.less +0 -80
  39. package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetailMixin.js +0 -30
  40. package/src/components/JfbBaseSaasNewsDetail/Mock.js +0 -9
  41. package/src/components/JfbBaseSaasNewsList/Api.js +0 -26
  42. package/src/components/JfbBaseSaasNewsList/Attr.js +0 -24
  43. package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsList.vue +0 -184
  44. package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsListLess.less +0 -80
  45. package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsListMixin.js +0 -30
  46. package/src/components/JfbBaseSaasNewsList/Mock.js +0 -24
  47. package/src/components/JfbBaseSassPhoneCollect/Api.js +0 -66
  48. package/src/components/JfbBaseSassPhoneCollect/Attr.js +0 -438
  49. package/src/components/JfbBaseSassPhoneCollect/JfbBaseSassPhoneCollect.vue +0 -349
  50. package/src/components/JfbBaseSassPhoneCollect/JfbBaseSassPhoneCollectLess.less +0 -80
  51. package/src/components/JfbBaseSassPhoneCollect/JfbBaseSassPhoneCollectMixin.js +0 -30
  52. package/src/components/JfbBaseSassPhoneCollect/Mock.js +0 -5
@@ -1,66 +0,0 @@
1
- 'use strict';
2
-
3
- /**
4
- * @description API模型
5
- * 建议:Ffff=>模块 Xxxx=>自定义名字
6
- * 获取单记录(getByIdFfffXxxx)
7
- * 获取列表记录(getByListFfffXxxx)
8
- * 添加列表记录(addFfffXxxxx)
9
- * 删除列表记录(removeFfffXxxxx|deleteFfffXxxx)
10
- * 更新列表记录(updateFfffXxxxx)
11
- * @type {*[]}
12
- */
13
- module.exports = [
14
- {
15
- mapFnName: "phoneAuth",
16
- title: "三方登入 - 手机号认证",
17
- path: "/saas/v1/login/phone-auth",
18
- isRule: false,
19
- data: {
20
- access_code: ['临时访问标识', 'String', true],
21
- valid_code: ['验证码', 'String', true],
22
- },
23
- isConsole: true,
24
- disabled: true,
25
- },
26
- {
27
- mapFnName: "passportSaasLogin",
28
- title: "saas用户登录",
29
- path: "/passport-pb/v1/user/login-saas",
30
- isRule: false,
31
- params: {
32
- access_token: ['access_token', 'String', true],
33
- redirect_url: ['跳转地址', 'String', true],
34
- phone_number: ['手机号', 'String', true],
35
- valid_code: ['手机验证码', 'String', true],
36
- biz_name: ['验证码校验参数', 'String', true]
37
- },
38
- isConsole: true,
39
- disabled: true,
40
- },
41
- {
42
- mapFnName: 'phoneCollect',
43
- title: "收集手机号",
44
- path: "/passport/v1/user/collect-phone-number",
45
- isRule: false,
46
- data: {
47
- phone_number: ['手机号', 'String', null], //手机号
48
- verification_code: ['手机验证码', 'String', null],
49
- provider_id: ['登录方式id', 'Number', '必选'],
50
- },
51
- isConsole: true,
52
- disable: true,
53
- },
54
- {
55
- mapFnName: 'sendMsg',
56
- title: '发送验证码',
57
- path: '/common/v1/valid_code/sms/send',
58
- isRule: false,
59
- data: {
60
- phone_number: ['手机号', 'String', '必选'],
61
- biz_name: ['业务名称', 'String', '必选']
62
- },
63
- isConsole: true,
64
- disabled: true,
65
- },
66
- ];
@@ -1,438 +0,0 @@
1
- 'use strict';
2
-
3
- /**
4
- * @description 当表单组件中有联动操作时候,使用方法进行返回
5
- */
6
- export default {
7
- style: [],
8
- content: [
9
- {
10
- label: '隐私政策:',
11
- ele: 'xd-site-news',
12
- valueKey: 'notice',
13
- value: {type: 'privacy'},
14
- className: 'input70',
15
- setting: {
16
- type: 'privacy',
17
- config: {
18
- sort: true,
19
- maxlen: 100,
20
- action: 'aliyun',
21
- size: 5,
22
- tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
23
- uploadType: 'aliyun',
24
- type: ['jpg', 'png', 'jpeg']
25
- },
26
- },
27
- handleCustom({action, data}) {
28
- if (data && data.params) {
29
- //当一个插件中出现多个内容分类时候需要设置code值,在页面引用时候(容器id + code)进行拼接获取数据列表
30
- data.params = Object.assign({}, data.params, {code: 'privacy_privacy'});
31
- }
32
-
33
- //获取返回参数(场景类型名称为必填)
34
- let loading = XdBus.getParentApi('loading')({});
35
-
36
- //获取显示内容
37
- if (action === 'screen') {
38
- XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_bucket_content_tip'})
39
- .then(res => {
40
- loading.close();
41
- data.cb(res['list'])
42
- })
43
- .catch(error => {
44
- console.error(error);
45
- loading.close();
46
- });
47
-
48
- }
49
-
50
- //获取返回参数(广告位高度必选项)
51
- if (action === 'getNewsInfo') {
52
- XdBus.getParentApi('cmsGetPublishEditxContent')(data.params)
53
- .then(res => {
54
- loading.close()
55
- data.cb({list: res.list, selectId: res.selected})
56
- })
57
- .catch(error => {
58
- loading.close()
59
- console.error(error);
60
- });
61
- }
62
-
63
- //获取产品业务线列表
64
- if (action === 'namespace') {
65
- XdBus.getParentApi('getOptionsNamespaces')({})
66
- .then(res => {
67
- loading.close()
68
- data.cb(res['list'])
69
- })
70
- .catch(error => {
71
- loading.close()
72
- console.error(error);
73
- });
74
- }
75
-
76
- //使用内容分类
77
- if (action === 'cmsPublishEditxContent') {
78
- XdBus.getParentApi('cmsPublishEditxContent')(data.params)
79
- .then(res => {
80
- console.log('cmsPublishEditxContent', res)
81
- loading.close();
82
- data.cb(res)
83
- })
84
- .catch(error => {
85
- loading.close();
86
- console.error(error);
87
- });
88
- }
89
-
90
- //位置列表
91
- if (action === 'getListPostion') {
92
- XdBus.getParentApi('getListNewsPosition')(data.params)
93
- .then(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 === 'addPostion') {
105
- XdBus.getParentApi('addNewsPosition')(data.params)
106
- .then(res => {
107
- loading.close();
108
- data.cb(true)
109
- })
110
- .catch(error => {
111
- console.error(error);
112
- loading.close();
113
- data.cb(false)
114
- });
115
- }
116
-
117
- //位置编辑
118
- if (action === 'editPostion') {
119
- XdBus.getParentApi('updateNewsPosition')(data.params)
120
- .then(res => {
121
- loading.close();
122
- data.cb(true)
123
- })
124
- .catch(error => {
125
- console.error(error);
126
- loading.close();
127
- data.cb(false)
128
- });
129
- }
130
-
131
- //位置删除
132
- if (action === 'deleltePostion') {
133
- XdBus.getParentApi('deleteNewsPosition')(data.params)
134
- .then(res => {
135
- loading.close();
136
- data.cb(true)
137
- })
138
- .catch(error => {
139
- console.error(error);
140
- loading.close();
141
- data.cb(false)
142
- });
143
- }
144
-
145
- //获取广告位内容列表
146
- if (action === 'getListContent') {
147
- XdBus.getParentApi('getListNewsContent')(data.params)
148
- .then(res => {
149
- loading.close();
150
- data.cb(res)
151
- })
152
- .catch(error => {
153
- loading.close();
154
- console.error(error);
155
- });
156
- }
157
-
158
- //广告内容创建
159
- if (action === 'addContent') {
160
- XdBus.getParentApi('addNewsContent')(data.params)
161
- .then(res => {
162
- loading.close();
163
- data.cb(true)
164
- })
165
- .catch(error => {
166
- console.error(error);
167
- loading.close();
168
- data.cb(false)
169
- });
170
- }
171
-
172
- //广告内容编辑
173
- if (action === 'editContent') {
174
- XdBus.getParentApi('updateNewsContent')(data.params)
175
- .then(res => {
176
- loading.close();
177
- data.cb(true)
178
- })
179
- .catch(error => {
180
- console.error(error);
181
- loading.close();
182
- data.cb(false)
183
- });
184
- }
185
-
186
- //广告内容删除
187
- if (action === 'deleteContent') {
188
- XdBus.getParentApi('deleteNewsContent')(data.params)
189
- .then(res => {
190
- loading.close();
191
- data.cb(true)
192
- })
193
- .catch(error => {
194
- console.error(error);
195
- loading.close();
196
- data.cb(false)
197
- });
198
- }
199
-
200
- //内容发布
201
- if (action === 'publish') {
202
- console.log('publish', data.params)
203
- XdBus.getParentApi('cmsPublishContent')(data.params)
204
- .then(res => {
205
- loading.close();
206
- data.cb(res)
207
- })
208
- .catch(error => {
209
- loading.close();
210
- console.error(error);
211
- });
212
- }
213
-
214
- //通知页面进行刷新
215
- if (action === 'update') {
216
- XdBus.getParentApi('getXdBusUpdateView')('onUpdateView', {});
217
- loading.close()
218
- }
219
- },
220
- inline: false,
221
- notice: '',
222
- },
223
- {
224
- label: '用户服务协议:',
225
- ele: 'xd-site-news',
226
- valueKey: 'notices',
227
- value: {type: 'privacy'},
228
- className: 'input70',
229
- setting: {
230
- config: {
231
- sort: true,
232
- maxlen: 100,
233
- action: 'aliyun',
234
- size: 5,
235
- tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
236
- uploadType: 'aliyun',
237
- type: ['jpg', 'png', 'jpeg']
238
- },
239
- },
240
- handleCustom({action, data}) {
241
- if (data && data.params) {
242
- //当一个插件中出现多个内容分类时候需要设置code值,在页面引用时候(容器id + code)进行拼接获取数据列表
243
- data.params = Object.assign({}, data.params, {code: 'privacy_service'});
244
- }
245
-
246
- //获取返回参数(场景类型名称为必填)
247
- let loading = XdBus.getParentApi('loading')({});
248
-
249
- //获取显示内容
250
- if (action === 'screen') {
251
- XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_bucket_content_tip'})
252
- .then(res => {
253
- loading.close();
254
- data.cb(res['list'])
255
- })
256
- .catch(error => {
257
- console.error(error);
258
- loading.close();
259
- });
260
-
261
- }
262
-
263
- //获取返回参数(广告位高度必选项)
264
- if (action === 'getNewsInfo') {
265
- XdBus.getParentApi('cmsGetPublishEditxContent')(data.params)
266
- .then(res => {
267
- loading.close()
268
- data.cb({list: res.list, selectId: res.selected})
269
- })
270
- .catch(error => {
271
- loading.close()
272
- console.error(error);
273
- });
274
- }
275
-
276
- //获取产品业务线列表
277
- if (action === 'namespace') {
278
- XdBus.getParentApi('getOptionsNamespaces')({})
279
- .then(res => {
280
- loading.close()
281
- data.cb(res['list'])
282
- })
283
- .catch(error => {
284
- loading.close()
285
- console.error(error);
286
- });
287
- }
288
-
289
- //使用内容分类
290
- if (action === 'cmsPublishEditxContent') {
291
- XdBus.getParentApi('cmsPublishEditxContent')(data.params)
292
- .then(res => {
293
- console.log('cmsPublishEditxContent', res)
294
- loading.close();
295
- data.cb(res)
296
- })
297
- .catch(error => {
298
- loading.close();
299
- console.error(error);
300
- });
301
- }
302
-
303
- //位置列表
304
- if (action === 'getListPostion') {
305
- XdBus.getParentApi('getListNewsPosition')(data.params)
306
- .then(res => {
307
- loading.close();
308
- data.cb(res)
309
- })
310
- .catch(error => {
311
- loading.close();
312
- console.error(error);
313
- });
314
- }
315
-
316
- //位置创建
317
- if (action === 'addPostion') {
318
- XdBus.getParentApi('addNewsPosition')(data.params)
319
- .then(res => {
320
- loading.close();
321
- data.cb(true)
322
- })
323
- .catch(error => {
324
- console.error(error);
325
- loading.close();
326
- data.cb(false)
327
- });
328
- }
329
-
330
- //位置编辑
331
- if (action === 'editPostion') {
332
- XdBus.getParentApi('updateNewsPosition')(data.params)
333
- .then(res => {
334
- loading.close();
335
- data.cb(true)
336
- })
337
- .catch(error => {
338
- console.error(error);
339
- loading.close();
340
- data.cb(false)
341
- });
342
- }
343
-
344
- //位置删除
345
- if (action === 'deleltePostion') {
346
- XdBus.getParentApi('deleteNewsPosition')(data.params)
347
- .then(res => {
348
- loading.close();
349
- data.cb(true)
350
- })
351
- .catch(error => {
352
- console.error(error);
353
- loading.close();
354
- data.cb(false)
355
- });
356
- }
357
-
358
- //获取广告位内容列表
359
- if (action === 'getListContent') {
360
- XdBus.getParentApi('getListNewsContent')(data.params)
361
- .then(res => {
362
- loading.close();
363
- data.cb(res)
364
- })
365
- .catch(error => {
366
- loading.close();
367
- console.error(error);
368
- });
369
- }
370
-
371
- //广告内容创建
372
- if (action === 'addContent') {
373
- XdBus.getParentApi('addNewsContent')(data.params)
374
- .then(res => {
375
- loading.close();
376
- data.cb(true)
377
- })
378
- .catch(error => {
379
- console.error(error);
380
- loading.close();
381
- data.cb(false)
382
- });
383
- }
384
-
385
- //广告内容编辑
386
- if (action === 'editContent') {
387
- XdBus.getParentApi('updateNewsContent')(data.params)
388
- .then(res => {
389
- loading.close();
390
- data.cb(true)
391
- })
392
- .catch(error => {
393
- console.error(error);
394
- loading.close();
395
- data.cb(false)
396
- });
397
- }
398
-
399
- //广告内容删除
400
- if (action === 'deleteContent') {
401
- XdBus.getParentApi('deleteNewsContent')(data.params)
402
- .then(res => {
403
- loading.close();
404
- data.cb(true)
405
- })
406
- .catch(error => {
407
- console.error(error);
408
- loading.close();
409
- data.cb(false)
410
- });
411
- }
412
-
413
- //内容发布
414
- if (action === 'publish') {
415
- console.log('publish', data.params)
416
- XdBus.getParentApi('cmsPublishContent')(data.params)
417
- .then(res => {
418
- loading.close();
419
- data.cb(res)
420
- })
421
- .catch(error => {
422
- loading.close();
423
- console.error(error);
424
- });
425
- }
426
-
427
- //通知页面进行刷新
428
- if (action === 'update') {
429
- XdBus.getParentApi('getXdBusUpdateView')('onUpdateView', {});
430
- loading.close()
431
- }
432
- },
433
- inline: false,
434
- notice: '',
435
- },
436
- ],
437
- advanced: [],
438
- };