jufubao-base 1.0.186 → 1.0.187-beta3

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 (34) hide show
  1. package/package.json +1 -1
  2. package/src/ICONS.js +1128 -0
  3. package/src/components/JfbBaseAddress/Attr.js +109 -1
  4. package/src/components/JfbBaseAddress/JfbBaseAddress.vue +153 -77
  5. package/src/components/JfbBaseAddress/XdTfkItem.vue +117 -0
  6. package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +4 -1
  7. package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +17 -5
  8. package/src/components/JfbBaseFastLink/Attr.js +22 -6
  9. package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +35 -20
  10. package/src/components/JfbBaseFastLink/XdFastNav.vue +1 -2
  11. package/src/components/JfbBaseFooter/Attr.js +141 -75
  12. package/src/components/JfbBaseFooter/JfbBaseFooter.vue +50 -15
  13. package/src/components/JfbBaseOrderDetail/Api.js +1 -0
  14. package/src/components/JfbBaseOrderDetail/Attr.js +201 -65
  15. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +168 -57
  16. package/src/components/JfbBaseOrderList/Attr.js +59 -2
  17. package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +139 -92
  18. package/src/components/JfbBaseOrderList/Mock.js +3 -0
  19. package/src/components/JfbBaseOrderList/XdTfkOrderItem.vue +267 -0
  20. package/src/components/JfbBasePhoneCollect/Attr.js +945 -411
  21. package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +307 -27
  22. package/src/components/JfbBasePhoneLogin/Attr.js +893 -405
  23. package/src/components/JfbBasePhoneLogin/JfbBasePhoneLogin.vue +609 -253
  24. package/src/components/JfbBaseSuccess/Attr.js +1 -1
  25. package/src/components/JfbBaseTfkCardDetail/JfbBaseTfkCardDetail.vue +4 -1
  26. package/src/components/JfbBaseTfkCardLogin/JfbBaseTfkCardLogin.vue +0 -1
  27. package/src/components/JfbBaseUserCenter/Attr.js +240 -48
  28. package/src/components/JfbBaseUserCenter/JfbBaseUserCenter.vue +101 -30
  29. package/src/components/JfbBaseUserInfo/Attr.js +179 -30
  30. package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +80 -44
  31. package/src/components/JfbBaseUserOrder/Attr.js +291 -25
  32. package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +172 -54
  33. package/src/components/JfbBaseWallet/Attr.js +344 -3
  34. package/src/components/JfbBaseWallet/JfbBaseWallet.vue +173 -49
@@ -3,458 +3,946 @@
3
3
  export default {
4
4
  style: [],
5
5
  advanced: [],
6
- content: [
7
- {
8
- label: '隐私政策:',
9
- ele: 'xd-site-news',
10
- valueKey: 'notice',
11
- groupKey:'content',
12
- value: {type: 'privacy'},
13
- className: 'input70',
14
- setting: {
15
- type: 'privacy',
16
- config: {
17
- sort: true,
18
- maxlen: 100,
19
- action: 'aliyun',
20
- size: 5,
21
- tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
22
- uploadType: 'aliyun',
23
- type: ['jpg', 'png', 'jpeg']
6
+ content: data => {
7
+ return [
8
+ {
9
+ label: '隐私政策:',
10
+ ele: 'xd-site-news',
11
+ valueKey: 'notice',
12
+ groupKey: 'content',
13
+ value: data['notice'] || { 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
+ },
24
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 = { close() { } }
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
+ loading = XdBus.getParentApi('loading')({});
79
+ XdBus.getParentApi('cmsPublishEditxContent')(data.params)
80
+ .then(res => {
81
+ console.log('cmsPublishEditxContent', res)
82
+ loading.close();
83
+ data.cb(res)
84
+ })
85
+ .catch(error => {
86
+ loading.close();
87
+ console.error(error);
88
+ });
89
+ }
90
+
91
+ //位置列表
92
+ if (action === 'getListPostion') {
93
+ loading = XdBus.getParentApi('loading')({});
94
+ XdBus.getParentApi('getListNewsPosition')(data.params)
95
+ .then(res => {
96
+ loading.close();
97
+ data.cb(res)
98
+ })
99
+ .catch(error => {
100
+ loading.close();
101
+ console.error(error);
102
+ });
103
+ }
104
+
105
+ //位置创建
106
+ if (action === 'addPostion') {
107
+ loading = XdBus.getParentApi('loading')({});
108
+ XdBus.getParentApi('addNewsPosition')(data.params)
109
+ .then(res => {
110
+ loading.close();
111
+ data.cb(true)
112
+ })
113
+ .catch(error => {
114
+ console.error(error);
115
+ loading.close();
116
+ data.cb(false)
117
+ });
118
+ }
119
+
120
+ //位置编辑
121
+ if (action === 'editPostion') {
122
+ loading = XdBus.getParentApi('loading')({});
123
+ XdBus.getParentApi('updateNewsPosition')(data.params)
124
+ .then(res => {
125
+ loading.close();
126
+ data.cb(true)
127
+ })
128
+ .catch(error => {
129
+ console.error(error);
130
+ loading.close();
131
+ data.cb(false)
132
+ });
133
+ }
134
+
135
+ //位置删除
136
+ if (action === 'deleltePostion') {
137
+ loading = XdBus.getParentApi('loading')({});
138
+ XdBus.getParentApi('deleteNewsPosition')(data.params)
139
+ .then(res => {
140
+ loading.close();
141
+ data.cb(true)
142
+ })
143
+ .catch(error => {
144
+ console.error(error);
145
+ loading.close();
146
+ data.cb(false)
147
+ });
148
+ }
149
+
150
+ //获取广告位内容列表
151
+ if (action === 'getListContent') {
152
+ loading = XdBus.getParentApi('loading')({});
153
+ XdBus.getParentApi('getListNewsContent')(data.params)
154
+ .then(res => {
155
+ loading.close();
156
+ data.cb(res)
157
+ })
158
+ .catch(error => {
159
+ loading.close();
160
+ console.error(error);
161
+ });
162
+ }
163
+
164
+ //广告内容创建
165
+ if (action === 'addContent') {
166
+ loading = XdBus.getParentApi('loading')({});
167
+ XdBus.getParentApi('addNewsContent')(data.params)
168
+ .then(res => {
169
+ loading.close();
170
+ data.cb(true)
171
+ })
172
+ .catch(error => {
173
+ console.error(error);
174
+ loading.close();
175
+ data.cb(false)
176
+ });
177
+ }
178
+
179
+ //广告内容编辑
180
+ if (action === 'editContent') {
181
+ loading = XdBus.getParentApi('loading')({});
182
+ XdBus.getParentApi('updateNewsContent')(data.params)
183
+ .then(res => {
184
+ loading.close();
185
+ data.cb(true)
186
+ })
187
+ .catch(error => {
188
+ console.error(error);
189
+ loading.close();
190
+ data.cb(false)
191
+ });
192
+ }
193
+
194
+ //广告内容删除
195
+ if (action === 'deleteContent') {
196
+ loading = XdBus.getParentApi('loading')({});
197
+ XdBus.getParentApi('deleteNewsContent')(data.params)
198
+ .then(res => {
199
+ loading.close();
200
+ data.cb(true)
201
+ })
202
+ .catch(error => {
203
+ console.error(error);
204
+ loading.close();
205
+ data.cb(false)
206
+ });
207
+ }
208
+
209
+ //内容发布
210
+ if (action === 'publish') {
211
+ loading = XdBus.getParentApi('loading')({});
212
+ console.log('publish', data.params)
213
+ XdBus.getParentApi('cmsPublishContent')(data.params)
214
+ .then(res => {
215
+ loading.close();
216
+ data.cb(res)
217
+ })
218
+ .catch(error => {
219
+ loading.close();
220
+ console.error(error);
221
+ });
222
+ }
223
+
224
+ //通知页面进行刷新
225
+ if (action === 'update') {
226
+ loading = XdBus.getParentApi('loading')({});
227
+ XdBus.getParentApi('getXdBusUpdateView')('onUpdateView', {});
228
+ loading.close()
229
+ }
230
+ },
231
+ inline: false,
232
+ notice: '',
25
233
  },
26
- handleCustom({action, data}) {
27
- if (data && data.params) {
28
- //当一个插件中出现多个内容分类时候需要设置code值,在页面引用时候(容器id + code)进行拼接获取数据列表
29
- data.params = Object.assign({}, data.params, {code: 'privacy_privacy'});
30
- }
31
-
32
- //获取返回参数(场景类型名称为必填)
33
- let loading = { close(){}}
34
-
35
- //获取显示内容
36
- if (action === 'screen') {
37
- XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_bucket_content_tip'})
38
- .then(res => {
39
- loading.close();
40
- data.cb(res['list'])
41
- })
42
- .catch(error => {
43
- console.error(error);
44
- loading.close();
45
- });
46
-
47
- }
48
-
49
- //获取返回参数(广告位高度必选项)
50
- if (action === 'getNewsInfo') {
51
- XdBus.getParentApi('cmsGetPublishEditxContent')(data.params)
52
- .then(res => {
53
- loading.close()
54
- data.cb({list: res.list, selectId: res.selected})
55
- })
56
- .catch(error => {
57
- loading.close()
58
- console.error(error);
59
- });
60
- }
61
-
62
- //获取产品业务线列表
63
- if (action === 'namespace') {
64
- XdBus.getParentApi('getOptionsNamespaces')({})
65
- .then(res => {
66
- loading.close()
67
- data.cb(res['list'])
68
- })
69
- .catch(error => {
70
- loading.close()
71
- console.error(error);
72
- });
73
- }
74
-
75
- //使用内容分类
76
- if (action === 'cmsPublishEditxContent') {
77
- loading = XdBus.getParentApi('loading')({});
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
- loading = XdBus.getParentApi('loading')({});
93
- XdBus.getParentApi('getListNewsPosition')(data.params)
94
- .then(res => {
95
- loading.close();
96
- data.cb(res)
97
- })
98
- .catch(error => {
99
- loading.close();
100
- console.error(error);
101
- });
102
- }
103
-
104
- //位置创建
105
- if (action === 'addPostion') {
106
- loading = XdBus.getParentApi('loading')({});
107
- XdBus.getParentApi('addNewsPosition')(data.params)
108
- .then(res => {
109
- loading.close();
110
- data.cb(true)
111
- })
112
- .catch(error => {
113
- console.error(error);
114
- loading.close();
115
- data.cb(false)
116
- });
117
- }
118
-
119
- //位置编辑
120
- if (action === 'editPostion') {
121
- loading = XdBus.getParentApi('loading')({});
122
- XdBus.getParentApi('updateNewsPosition')(data.params)
123
- .then(res => {
124
- loading.close();
125
- data.cb(true)
126
- })
127
- .catch(error => {
128
- console.error(error);
129
- loading.close();
130
- data.cb(false)
131
- });
132
- }
133
-
134
- //位置删除
135
- if (action === 'deleltePostion') {
136
- loading = XdBus.getParentApi('loading')({});
137
- XdBus.getParentApi('deleteNewsPosition')(data.params)
138
- .then(res => {
139
- loading.close();
140
- data.cb(true)
141
- })
142
- .catch(error => {
143
- console.error(error);
144
- loading.close();
145
- data.cb(false)
146
- });
147
- }
148
-
149
- //获取广告位内容列表
150
- if (action === 'getListContent') {
151
- loading = XdBus.getParentApi('loading')({});
152
- XdBus.getParentApi('getListNewsContent')(data.params)
153
- .then(res => {
154
- loading.close();
155
- data.cb(res)
156
- })
157
- .catch(error => {
158
- loading.close();
159
- console.error(error);
160
- });
161
- }
162
-
163
- //广告内容创建
164
- if (action === 'addContent') {
165
- loading = XdBus.getParentApi('loading')({});
166
- XdBus.getParentApi('addNewsContent')(data.params)
167
- .then(res => {
168
- loading.close();
169
- data.cb(true)
170
- })
171
- .catch(error => {
172
- console.error(error);
173
- loading.close();
174
- data.cb(false)
175
- });
176
- }
177
-
178
- //广告内容编辑
179
- if (action === 'editContent') {
180
- loading = XdBus.getParentApi('loading')({});
181
- XdBus.getParentApi('updateNewsContent')(data.params)
182
- .then(res => {
183
- loading.close();
184
- data.cb(true)
185
- })
186
- .catch(error => {
187
- console.error(error);
188
- loading.close();
189
- data.cb(false)
190
- });
191
- }
192
-
193
- //广告内容删除
194
- if (action === 'deleteContent') {
195
- loading = XdBus.getParentApi('loading')({});
196
- XdBus.getParentApi('deleteNewsContent')(data.params)
197
- .then(res => {
198
- loading.close();
199
- data.cb(true)
200
- })
201
- .catch(error => {
202
- console.error(error);
203
- loading.close();
204
- data.cb(false)
205
- });
206
- }
207
-
208
- //内容发布
209
- if (action === 'publish') {
210
- loading = XdBus.getParentApi('loading')({});
211
- console.log('publish', data.params)
212
- XdBus.getParentApi('cmsPublishContent')(data.params)
213
- .then(res => {
214
- loading.close();
215
- data.cb(res)
216
- })
217
- .catch(error => {
218
- loading.close();
219
- console.error(error);
220
- });
221
- }
222
-
223
- //通知页面进行刷新
224
- if (action === 'update') {
225
- loading = XdBus.getParentApi('loading')({});
226
- XdBus.getParentApi('getXdBusUpdateView')('onUpdateView', {});
227
- loading.close()
228
- }
229
- },
230
- inline: false,
231
- notice: '',
232
- },
233
- {
234
- label: '用户服务协议:',
235
- ele: 'xd-site-news',
236
- valueKey: 'notices',
237
- groupKey:'content',
238
- value: {type: 'privacy'},
239
- className: 'input70',
240
- setting: {
241
- config: {
242
- sort: true,
243
- maxlen: 100,
244
- action: 'aliyun',
245
- size: 5,
246
- tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
247
- uploadType: 'aliyun',
248
- type: ['jpg', 'png', 'jpeg']
234
+ {
235
+ label: '用户服务协议:',
236
+ ele: 'xd-site-news',
237
+ valueKey: 'notices',
238
+ groupKey: 'content',
239
+ value: data['notices'] || { type: 'privacy' },
240
+ className: 'input70',
241
+ setting: {
242
+ config: {
243
+ sort: true,
244
+ maxlen: 100,
245
+ action: 'aliyun',
246
+ size: 5,
247
+ tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
248
+ uploadType: 'aliyun',
249
+ type: ['jpg', 'png', 'jpeg']
250
+ },
251
+ },
252
+ handleCustom({ action, data }) {
253
+ if (data && data.params) {
254
+ //当一个插件中出现多个内容分类时候需要设置code值,在页面引用时候(容器id + code)进行拼接获取数据列表
255
+ data.params = Object.assign({}, data.params, { code: 'privacy_service' });
256
+ }
257
+
258
+ //获取返回参数(场景类型名称为必填)
259
+ //获取返回参数(场景类型名称为必填)
260
+ let loading = { close() { } }
261
+
262
+ //获取显示内容
263
+ if (action === 'screen') {
264
+ XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_bucket_content_tip' })
265
+ .then(res => {
266
+ loading.close();
267
+ data.cb(res['list'])
268
+ })
269
+ .catch(error => {
270
+ console.error(error);
271
+ loading.close();
272
+ });
273
+
274
+ }
275
+
276
+ //获取返回参数(广告位高度必选项)
277
+ if (action === 'getNewsInfo') {
278
+ XdBus.getParentApi('cmsGetPublishEditxContent')(data.params)
279
+ .then(res => {
280
+ loading.close()
281
+ data.cb({ list: res.list, selectId: res.selected })
282
+ })
283
+ .catch(error => {
284
+ loading.close()
285
+ console.error(error);
286
+ });
287
+ }
288
+
289
+ //获取产品业务线列表
290
+ if (action === 'namespace') {
291
+ XdBus.getParentApi('getOptionsNamespaces')({})
292
+ .then(res => {
293
+ loading.close()
294
+ data.cb(res['list'])
295
+ })
296
+ .catch(error => {
297
+ loading.close()
298
+ console.error(error);
299
+ });
300
+ }
301
+
302
+ //使用内容分类
303
+ if (action === 'cmsPublishEditxContent') {
304
+ loading = XdBus.getParentApi('loading')({});
305
+ XdBus.getParentApi('cmsPublishEditxContent')(data.params)
306
+ .then(res => {
307
+ console.log('cmsPublishEditxContent', res)
308
+ loading.close();
309
+ data.cb(res)
310
+ })
311
+ .catch(error => {
312
+ loading.close();
313
+ console.error(error);
314
+ });
315
+ }
316
+
317
+ //位置列表
318
+ if (action === 'getListPostion') {
319
+ loading = XdBus.getParentApi('loading')({});
320
+ XdBus.getParentApi('getListNewsPosition')(data.params)
321
+ .then(res => {
322
+ loading.close();
323
+ data.cb(res)
324
+ })
325
+ .catch(error => {
326
+ loading.close();
327
+ console.error(error);
328
+ });
329
+ }
330
+
331
+ //位置创建
332
+ if (action === 'addPostion') {
333
+ loading = XdBus.getParentApi('loading')({});
334
+ XdBus.getParentApi('addNewsPosition')(data.params)
335
+ .then(res => {
336
+ loading.close();
337
+ data.cb(true)
338
+ })
339
+ .catch(error => {
340
+ console.error(error);
341
+ loading.close();
342
+ data.cb(false)
343
+ });
344
+ }
345
+
346
+ //位置编辑
347
+ if (action === 'editPostion') {
348
+ loading = XdBus.getParentApi('loading')({});
349
+ XdBus.getParentApi('updateNewsPosition')(data.params)
350
+ .then(res => {
351
+ loading.close();
352
+ data.cb(true)
353
+ })
354
+ .catch(error => {
355
+ console.error(error);
356
+ loading.close();
357
+ data.cb(false)
358
+ });
359
+ }
360
+
361
+ //位置删除
362
+ if (action === 'deleltePostion') {
363
+ loading = XdBus.getParentApi('loading')({});
364
+ XdBus.getParentApi('deleteNewsPosition')(data.params)
365
+ .then(res => {
366
+ loading.close();
367
+ data.cb(true)
368
+ })
369
+ .catch(error => {
370
+ console.error(error);
371
+ loading.close();
372
+ data.cb(false)
373
+ });
374
+ }
375
+
376
+ //获取广告位内容列表
377
+ if (action === 'getListContent') {
378
+ loading = XdBus.getParentApi('loading')({});
379
+ XdBus.getParentApi('getListNewsContent')(data.params)
380
+ .then(res => {
381
+ loading.close();
382
+ data.cb(res)
383
+ })
384
+ .catch(error => {
385
+ loading.close();
386
+ console.error(error);
387
+ });
388
+ }
389
+
390
+ //广告内容创建
391
+ if (action === 'addContent') {
392
+ loading = XdBus.getParentApi('loading')({});
393
+ XdBus.getParentApi('addNewsContent')(data.params)
394
+ .then(res => {
395
+ loading.close();
396
+ data.cb(true)
397
+ })
398
+ .catch(error => {
399
+ console.error(error);
400
+ loading.close();
401
+ data.cb(false)
402
+ });
403
+ }
404
+
405
+ //广告内容编辑
406
+ if (action === 'editContent') {
407
+ loading = XdBus.getParentApi('loading')({});
408
+ XdBus.getParentApi('updateNewsContent')(data.params)
409
+ .then(res => {
410
+ loading.close();
411
+ data.cb(true)
412
+ })
413
+ .catch(error => {
414
+ console.error(error);
415
+ loading.close();
416
+ data.cb(false)
417
+ });
418
+ }
419
+
420
+ //广告内容删除
421
+ if (action === 'deleteContent') {
422
+ loading = XdBus.getParentApi('loading')({});
423
+ XdBus.getParentApi('deleteNewsContent')(data.params)
424
+ .then(res => {
425
+ loading.close();
426
+ data.cb(true)
427
+ })
428
+ .catch(error => {
429
+ console.error(error);
430
+ loading.close();
431
+ data.cb(false)
432
+ });
433
+ }
434
+
435
+ //内容发布
436
+ if (action === 'publish') {
437
+ loading = XdBus.getParentApi('loading')({});
438
+ console.log('publish', data.params)
439
+ XdBus.getParentApi('cmsPublishContent')(data.params)
440
+ .then(res => {
441
+ loading.close();
442
+ data.cb(res)
443
+ })
444
+ .catch(error => {
445
+ loading.close();
446
+ console.error(error);
447
+ });
448
+ }
449
+
450
+ //通知页面进行刷新
451
+ if (action === 'update') {
452
+ loading = XdBus.getParentApi('loading')({});
453
+ XdBus.getParentApi('getXdBusUpdateView')('onUpdateView', {});
454
+ loading.close()
455
+ }
249
456
  },
457
+ inline: false,
458
+ notice: '',
250
459
  },
251
- handleCustom({action, data}) {
252
- if (data && data.params) {
253
- //当一个插件中出现多个内容分类时候需要设置code值,在页面引用时候(容器id + code)进行拼接获取数据列表
254
- data.params = Object.assign({}, data.params, {code: 'privacy_service'});
255
- }
256
-
257
- //获取返回参数(场景类型名称为必填)
258
- //获取返回参数(场景类型名称为必填)
259
- let loading = { close(){}}
260
-
261
- //获取显示内容
262
- if (action === 'screen') {
263
- XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_bucket_content_tip'})
264
- .then(res => {
265
- loading.close();
266
- data.cb(res['list'])
267
- })
268
- .catch(error => {
269
- console.error(error);
270
- loading.close();
271
- });
272
-
273
- }
274
-
275
- //获取返回参数(广告位高度必选项)
276
- if (action === 'getNewsInfo') {
277
- XdBus.getParentApi('cmsGetPublishEditxContent')(data.params)
278
- .then(res => {
279
- loading.close()
280
- data.cb({list: res.list, selectId: res.selected})
281
- })
282
- .catch(error => {
283
- loading.close()
284
- console.error(error);
285
- });
286
- }
287
-
288
- //获取产品业务线列表
289
- if (action === 'namespace') {
290
- XdBus.getParentApi('getOptionsNamespaces')({})
291
- .then(res => {
292
- loading.close()
293
- data.cb(res['list'])
294
- })
295
- .catch(error => {
296
- loading.close()
297
- console.error(error);
298
- });
299
- }
300
-
301
- //使用内容分类
302
- if (action === 'cmsPublishEditxContent') {
303
- loading = XdBus.getParentApi('loading')({});
304
- XdBus.getParentApi('cmsPublishEditxContent')(data.params)
305
- .then(res => {
306
- console.log('cmsPublishEditxContent', 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 === 'getListPostion') {
318
- loading = XdBus.getParentApi('loading')({});
319
- XdBus.getParentApi('getListNewsPosition')(data.params)
460
+ {
461
+ label: "手机号自定义提示语:",
462
+ ele: 'el-input',
463
+ valueKey: 'phonePlaceholder',
464
+ value: data.phonePlaceholder || "",
465
+ groupKey: 'content',
466
+ placeholder: "请输入手机号自定义提示语",
467
+ className: 'input80',
468
+ },
469
+ {
470
+ label: "验证码自定义提示语:",
471
+ ele: 'el-input',
472
+ valueKey: 'codePlaceholder',
473
+ value: data.codePlaceholder || "",
474
+ groupKey: 'content',
475
+ placeholder: "请输入验证码自定义提示语",
476
+ className: 'input80',
477
+ },
478
+ {
479
+ ele: "title",
480
+ label: "表单样式配置",
481
+ size: "small",
482
+ groupKey: "style",
483
+ },
484
+ {
485
+ label: "输入框样式:",
486
+ ele: 'xd-radio',
487
+ valueKey: 'inputStyle',
488
+ value: data.inputStyle || "linear",
489
+ groupKey: 'style',
490
+ placeholder: "请选择输入框样式",
491
+ multiple: false,
492
+ className: 'input80',
493
+ list: [
494
+ { label: '线性', value: "linear" },
495
+ { label: '面性', value: "face" },
496
+ ],
497
+ },
498
+ {
499
+ label: "表单边框颜色:",
500
+ ele: 'xd-color',
501
+ valueKey: 'formBorderColor',
502
+ value: data.formBorderColor || "#F9F9F9",
503
+ groupKey: 'style',
504
+ placeholder: "请选择表单边框颜色",
505
+ },
506
+ {
507
+ label: "表单边框宽度:",
508
+ ele: 'el-input',
509
+ valueKey: 'formBorderWidth',
510
+ value: data.formBorderWidth || "1",
511
+ type: "number",
512
+ groupKey: 'style',
513
+ placeholder: "请输入表单边框宽度",
514
+ className: 'input60',
515
+ },
516
+ {
517
+ label: "表单背景颜色:",
518
+ ele: 'xd-color',
519
+ valueKey: 'formBgColor',
520
+ value: data.formBgColor || "#FFFFFF",
521
+ groupKey: 'style',
522
+ placeholder: "请选择表单背景颜色",
523
+ },
524
+ {
525
+ label: '表单容器设置内边距:',
526
+ groupKey: 'style',
527
+ ele: 'xd-margin-padding',
528
+ valueKey: 'formPadding',
529
+ value: data.formPadding || null,
530
+ setting: {
531
+ type: 'padding',
532
+ },
533
+ placeholder: '请设置边距',
534
+ inline: false,
535
+ notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
536
+ },
537
+ {
538
+ label: '表单容器设置外边距:',
539
+ ele: "xd-margin-padding",
540
+ valueKey: 'formMargin',
541
+ value: data.formMargin || {
542
+ top: 0,
543
+ right: 0,
544
+ bottom: 0,
545
+ left: 0
546
+ },
547
+ setting: {
548
+ type: 'margin',
549
+ },
550
+ groupKey:'style',
551
+ placeholder: '请设置边距',
552
+ inline: false,
553
+ notice: '设置外边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
554
+ },
555
+ {
556
+ label: "表单容器圆角",
557
+ ele: 'xd-site-select-list',
558
+ valueKey: 'formRadius',
559
+ value: data['formRadius'] || '0',
560
+ groupKey: 'style',
561
+ placeholder: '请选择内容圆角设置',
562
+ multiple: false,
563
+ className: 'input80',
564
+ handleCustom({ action, data }) {
565
+ XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
320
566
  .then(res => {
321
- loading.close();
322
- data.cb(res)
567
+ data.cb(res.list)
323
568
  })
324
569
  .catch(error => {
325
- loading.close();
326
570
  console.error(error);
327
571
  });
328
- }
329
-
330
- //位置创建
331
- if (action === 'addPostion') {
332
- loading = XdBus.getParentApi('loading')({});
333
- XdBus.getParentApi('addNewsPosition')(data.params)
572
+ },
573
+ },
574
+ {
575
+ label: "表单容器边框颜色:",
576
+ ele: 'xd-color',
577
+ valueKey: 'formWrapBorderColor',
578
+ value: data.formWrapBorderColor || "#F9F9F9",
579
+ groupKey: 'style',
580
+ placeholder: "请选择表单边框颜色",
581
+ },
582
+ {
583
+ label: "表单容器边框宽度:",
584
+ ele: 'el-input',
585
+ valueKey: 'formWrapBorderWidth',
586
+ value: data.formWrapBorderWidth || "1",
587
+ type: "number",
588
+ groupKey: 'style',
589
+ placeholder: "请输入表单边框宽度",
590
+ className: 'input60',
591
+ },
592
+ {
593
+ label: '表单容器投影颜色:',
594
+ ele: 'xd-color',
595
+ groupKey:'style',
596
+ valueKey: 'formShadowColor',
597
+ value: data['formShadowColor'] || '',
598
+ placeholder: '请选择投影颜色',
599
+ classNmae: 'input80',
600
+ },
601
+ {
602
+ label: '表单容器投影范围:',
603
+ groupKey:'style',
604
+ ele: 'xd-site-select-list',
605
+ valueKey: 'formShadowW',
606
+ value: data['formShadowW'] || '0',
607
+ placeholder: '请选择投影范围',
608
+ multiple: false,
609
+ className: 'input80',
610
+ handleCustom({action, data}) {
611
+ XdBus.getParentApi('getOptionsSettingList')({
612
+ setting_id: 'edtix_style_radius',
613
+ key: Date.now()
614
+ })
334
615
  .then(res => {
335
- loading.close();
336
- data.cb(true)
616
+ data.cb(res.list)
337
617
  })
338
618
  .catch(error => {
339
619
  console.error(error);
340
- loading.close();
341
- data.cb(false)
342
620
  });
343
- }
344
-
345
- //位置编辑
346
- if (action === 'editPostion') {
347
- loading = XdBus.getParentApi('loading')({});
348
- XdBus.getParentApi('updateNewsPosition')(data.params)
621
+ },
622
+ },
623
+ {
624
+ ele: 'title',
625
+ label: '标签样式配置',
626
+ size: 'small',
627
+ groupKey: 'style',
628
+ },
629
+ {
630
+ label: "标签文字对齐方式:",
631
+ ele: 'xd-radio',
632
+ valueKey: 'labelAlign',
633
+ value: data.labelAlign || "right",
634
+ groupKey: 'style',
635
+ placeholder: "请选择标签对齐方式",
636
+ multiple: false,
637
+ className: 'input80',
638
+ list: [
639
+ { label: '左对齐', value: "left" },
640
+ { label: '右对齐', value: "right" },
641
+ { label: '居中', value: "center" },
642
+ ],
643
+ },
644
+ {
645
+ label: "标签位置:",
646
+ ele: "xd-radio",
647
+ valueKey: "labelPosition",
648
+ value: data.labelPosition || "left",
649
+ groupKey: 'style',
650
+ placeholder: "请选择标签对齐方式",
651
+ multiple: false,
652
+ className: 'input80',
653
+ list: [
654
+ { label: '居左', value: "left" },
655
+ { label: '居上', value: "top" },
656
+ ],
657
+ },
658
+ {
659
+ label: "标签宽度:",
660
+ ele: 'el-input',
661
+ type: "number",
662
+ valueKey: 'labelWidth',
663
+ value: data.labelWidth || "180",
664
+ groupKey: 'style',
665
+ placeholder: "请输入标签宽度",
666
+ className: 'input60',
667
+ },
668
+ {
669
+ label: "手机号图标:",
670
+ ele: "el-input",
671
+ valueKey: "phoneIcon",
672
+ value: data.phoneIcon || "",
673
+ groupKey: 'style',
674
+ placeholder: "请输入手机号图标",
675
+ className: "input70",
676
+ },
677
+ {
678
+ label: "验证码图标:",
679
+ ele: "el-input",
680
+ valueKey: "codeIcon",
681
+ value: data.codeIcon || "",
682
+ groupKey: 'style',
683
+ placeholder: "请输入验证码图标",
684
+ className: "input70",
685
+ },
686
+ {
687
+ label: "标签字体样式设置:",
688
+ ele: "xd-font",
689
+ valueKey: "labelFont",
690
+ value: data.labelFont || {},
691
+ groupKey: 'style',
692
+ setting: {
693
+ align: false,
694
+ lineHeight: false,
695
+ },
696
+ handleCustom({ action, data }) {
697
+ XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_font_size' })
349
698
  .then(res => {
350
- loading.close();
351
- data.cb(true)
699
+ data.cb(res.list)
352
700
  })
353
701
  .catch(error => {
702
+ data.cb([])
354
703
  console.error(error);
355
- loading.close();
356
- data.cb(false)
357
704
  });
358
- }
359
-
360
- //位置删除
361
- if (action === 'deleltePostion') {
362
- loading = XdBus.getParentApi('loading')({});
363
- XdBus.getParentApi('deleteNewsPosition')(data.params)
705
+ },
706
+ inline: false,
707
+ notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
708
+ },
709
+ {
710
+ ele: 'title',
711
+ label: '输入框设置',
712
+ size: 'small',
713
+ groupKey: 'style',
714
+ },
715
+ {
716
+ label: "占位符字体样式设置:",
717
+ ele: "xd-font",
718
+ valueKey: "placeholderFont",
719
+ value: data.placeholderFont || {
720
+ color: '#d4d4d4',
721
+ fontSize: '24rpx',
722
+ fontWeight: "normal",
723
+ },
724
+ groupKey: 'style',
725
+ setting: {
726
+ align: false,
727
+ lineHeight: false,
728
+ },
729
+ handleCustom({ action, data }) {
730
+ XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_font_size' })
364
731
  .then(res => {
365
- loading.close();
366
- data.cb(true)
732
+ data.cb(res.list)
367
733
  })
368
734
  .catch(error => {
735
+ data.cb([])
369
736
  console.error(error);
370
- loading.close();
371
- data.cb(false)
372
737
  });
373
- }
374
-
375
- //获取广告位内容列表
376
- if (action === 'getListContent') {
377
- loading = XdBus.getParentApi('loading')({});
378
- XdBus.getParentApi('getListNewsContent')(data.params)
738
+ },
739
+ inline: false,
740
+ notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
741
+ },
742
+ {
743
+ label: "内容字体样式设置:",
744
+ ele: "xd-font",
745
+ valueKey: "contentFont",
746
+ value: data.contentFont || {},
747
+ groupKey: 'style',
748
+ setting: {
749
+ align: false,
750
+ lineHeight: false,
751
+ },
752
+ handleCustom({ action, data }) {
753
+ XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_font_size' })
379
754
  .then(res => {
380
- loading.close();
381
- data.cb(res)
755
+ data.cb(res.list)
382
756
  })
383
757
  .catch(error => {
384
- loading.close();
758
+ data.cb([])
385
759
  console.error(error);
386
760
  });
387
- }
388
-
389
- //广告内容创建
390
- if (action === 'addContent') {
391
- loading = XdBus.getParentApi('loading')({});
392
- XdBus.getParentApi('addNewsContent')(data.params)
761
+ },
762
+ inline: false,
763
+ notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
764
+ },
765
+ {
766
+ ele: 'title',
767
+ label: '获取验证码',
768
+ size: 'small',
769
+ groupKey: 'style',
770
+ },
771
+ {
772
+ label: "获取验证码字体样式设置:",
773
+ ele: "xd-font",
774
+ valueKey: "getCodeFont",
775
+ value: data.getCodeFont || {
776
+ color: "#ff5a39",
777
+ fontSize: "24rpx",
778
+ fontWeight: "normal",
779
+ },
780
+ groupKey: 'style',
781
+ setting: {
782
+ align: false,
783
+ lineHeight: false,
784
+ },
785
+ handleCustom({ action, data }) {
786
+ XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_font_size' })
393
787
  .then(res => {
394
- loading.close();
395
- data.cb(true)
788
+ data.cb(res.list)
396
789
  })
397
790
  .catch(error => {
791
+ data.cb([])
398
792
  console.error(error);
399
- loading.close();
400
- data.cb(false)
401
793
  });
402
- }
403
-
404
- //广告内容编辑
405
- if (action === 'editContent') {
406
- loading = XdBus.getParentApi('loading')({});
407
- XdBus.getParentApi('updateNewsContent')(data.params)
794
+ },
795
+ inline: false,
796
+ notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
797
+ },
798
+ {
799
+ label: "获取验证码展示方式:",
800
+ ele: 'xd-radio',
801
+ valueKey: 'getCodeShowType',
802
+ value: data.getCodeShowType || 'text',
803
+ groupKey: 'style',
804
+ multiple: false,
805
+ className: 'input80',
806
+ list: [
807
+ { label: '文字', value: 'text' },
808
+ { label: '按钮', value: 'button' },
809
+ ],
810
+ },
811
+ {
812
+ ele: 'title',
813
+ label: '按钮样式配置',
814
+ size: 'small',
815
+ groupKey: 'style',
816
+ },
817
+ // {
818
+ // label: "按钮颜色",
819
+ // ele: 'xd-color',
820
+ // valueKey: 'btnColor',
821
+ // value: data.btnColor || '',
822
+ // groupKey:'style',
823
+ // placeholder: "请选择按钮颜色",
824
+ // className: 'input60',
825
+ // },
826
+ {
827
+ label: "表单按钮外边距设置",
828
+ groupKey: 'style',
829
+ ele: 'xd-margin-padding',
830
+ valueKey: 'btnMargin',
831
+ value: data.btnMargin || null,
832
+ setting: {
833
+ type: 'padding',
834
+ },
835
+ placeholder: '请设置边距',
836
+ inline: false,
837
+ notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
838
+ },
839
+ {
840
+ label: "按钮圆角 - 通用",
841
+ ele: 'xd-site-select-list',
842
+ valueKey: 'btnRadius',
843
+ value: data['btnRadius'] || '20',
844
+ groupKey: 'style',
845
+ placeholder: '请选择内容圆角设置',
846
+ multiple: false,
847
+ className: 'input80',
848
+ handleCustom({ action, data }) {
849
+ XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
408
850
  .then(res => {
409
- loading.close();
410
- data.cb(true)
851
+ data.cb(res.list)
411
852
  })
412
853
  .catch(error => {
413
854
  console.error(error);
414
- loading.close();
415
- data.cb(false)
416
855
  });
417
- }
418
-
419
- //广告内容删除
420
- if (action === 'deleteContent') {
421
- loading = XdBus.getParentApi('loading')({});
422
- XdBus.getParentApi('deleteNewsContent')(data.params)
856
+ },
857
+ },
858
+ {
859
+ ele: 'title',
860
+ label: '条款协议 - 通用',
861
+ size: 'small',
862
+ groupKey: 'style',
863
+ },
864
+ {
865
+ label: "文字样式设置: ",
866
+ ele: "xd-font",
867
+ valueKey: "agreeFont",
868
+ value: data.agreeFont || {
869
+ color: "#666666",
870
+ fontSize: "24rpx",
871
+ fontWeight: "normal",
872
+ },
873
+ groupKey: 'style',
874
+ setting: {
875
+ align: false,
876
+ },
877
+ handleCustom({ action, data }) {
878
+ XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_font_size' })
423
879
  .then(res => {
424
- loading.close();
425
- data.cb(true)
880
+ data.cb(res.list)
426
881
  })
427
882
  .catch(error => {
883
+ data.cb([])
428
884
  console.error(error);
429
- loading.close();
430
- data.cb(false)
431
885
  });
432
- }
433
-
434
- //内容发布
435
- if (action === 'publish') {
436
- loading = XdBus.getParentApi('loading')({});
437
- console.log('publish', data.params)
438
- XdBus.getParentApi('cmsPublishContent')(data.params)
886
+ },
887
+ inline: false,
888
+ notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
889
+ },
890
+ {
891
+ label: "隐私条款链接字体设置:",
892
+ ele: "xd-font",
893
+ valueKey: "privacyFont",
894
+ value: data.privacyFont || {},
895
+ groupKey: 'style',
896
+ setting: {
897
+ align: false,
898
+ lineHeight: false,
899
+ fontSize: false,
900
+ },
901
+ handleCustom({ action, data }) {
902
+ XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_font_size' })
439
903
  .then(res => {
440
- loading.close();
441
- data.cb(res)
904
+ data.cb(res.list)
442
905
  })
443
906
  .catch(error => {
444
- loading.close();
907
+ data.cb([])
445
908
  console.error(error);
446
909
  });
447
- }
448
-
449
- //通知页面进行刷新
450
- if (action === 'update') {
451
- loading = XdBus.getParentApi('loading')({});
452
- XdBus.getParentApi('getXdBusUpdateView')('onUpdateView', {});
453
- loading.close()
454
- }
455
- },
456
- inline: false,
457
- notice: '',
458
- },
459
- ]
910
+ },
911
+ inline: false,
912
+ notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
913
+ },
914
+ {
915
+ label: "选择框垂直对齐方式:",
916
+ ele: 'xd-radio',
917
+ valueKey: 'agreementAlign',
918
+ value: data.agreementAlign || "center",
919
+ groupKey: 'style',
920
+ multiple: false,
921
+ className: 'input80',
922
+ list: [
923
+ { label: '居中', value: "center" },
924
+ { label: '顶部', value: "flex-start" },
925
+ { label: '底部', value: "flex-end" },
926
+ ]
927
+ },
928
+ {
929
+ label: "条款协议外边距设置 - 账号登录",
930
+ groupKey: 'style',
931
+ ele: 'xd-margin-padding',
932
+ valueKey: 'agreePadding',
933
+ value: data.agreePadding || {
934
+ top: 40,
935
+ left: 20,
936
+ right: 20,
937
+ bottom: 0
938
+ },
939
+ setting: {
940
+ type: 'padding',
941
+ },
942
+ placeholder: '请设置边距',
943
+ inline: false,
944
+ notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
945
+ },
946
+ ]
947
+ }
460
948
  }