jufubao-base 1.0.190 → 1.0.192-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 (33) hide show
  1. package/commands.js +1 -1
  2. package/get.package.path.js +2 -2
  3. package/package.json +1 -1
  4. package/src/ICONS.js +1128 -0
  5. package/src/components/JfbBaseAddress/Attr.js +109 -1
  6. package/src/components/JfbBaseAddress/JfbBaseAddress.vue +153 -77
  7. package/src/components/JfbBaseAddress/XdTfkItem.vue +117 -0
  8. package/src/components/JfbBaseFastLink/Attr.js +22 -6
  9. package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +35 -20
  10. package/src/components/JfbBaseFooter/Attr.js +141 -75
  11. package/src/components/JfbBaseFooter/JfbBaseFooter.vue +50 -15
  12. package/src/components/JfbBaseLogin/Attr.js +3 -9
  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 +933 -411
  21. package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +307 -27
  22. package/src/components/JfbBasePhoneLogin/Attr.js +882 -405
  23. package/src/components/JfbBasePhoneLogin/JfbBasePhoneLogin.vue +609 -253
  24. package/src/components/JfbBaseSuccess/Attr.js +1 -1
  25. package/src/components/JfbBaseTfkCardLogin/JfbBaseTfkCardLogin.vue +0 -1
  26. package/src/components/JfbBaseUserCenter/Attr.js +240 -48
  27. package/src/components/JfbBaseUserCenter/JfbBaseUserCenter.vue +101 -30
  28. package/src/components/JfbBaseUserInfo/Attr.js +179 -30
  29. package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +80 -44
  30. package/src/components/JfbBaseUserOrder/Attr.js +291 -25
  31. package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +172 -54
  32. package/src/components/JfbBaseWallet/Attr.js +344 -3
  33. package/src/components/JfbBaseWallet/JfbBaseWallet.vue +173 -49
@@ -3,458 +3,935 @@
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 || null,
542
+ setting: {
543
+ type: 'margin',
544
+ },
545
+ groupKey:'style',
546
+ placeholder: '请设置边距',
547
+ inline: false,
548
+ notice: '设置外边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
549
+ },
550
+ {
551
+ label: "表单容器圆角",
552
+ ele: 'xd-site-select-list',
553
+ valueKey: 'formRadius',
554
+ value: data['formRadius'] || '0',
555
+ groupKey: 'style',
556
+ placeholder: '请选择内容圆角设置',
557
+ multiple: false,
558
+ className: 'input80',
559
+ handleCustom({ action, data }) {
560
+ XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
320
561
  .then(res => {
321
- loading.close();
322
- data.cb(res)
562
+ data.cb(res.list)
323
563
  })
324
564
  .catch(error => {
325
- loading.close();
326
565
  console.error(error);
327
566
  });
328
- }
329
-
330
- //位置创建
331
- if (action === 'addPostion') {
332
- loading = XdBus.getParentApi('loading')({});
333
- XdBus.getParentApi('addNewsPosition')(data.params)
567
+ },
568
+ },
569
+ {
570
+ label: "表单容器边框颜色:",
571
+ ele: 'xd-color',
572
+ valueKey: 'formWrapBorderColor',
573
+ value: data.formWrapBorderColor || "#F9F9F9",
574
+ groupKey: 'style',
575
+ placeholder: "请选择表单边框颜色",
576
+ },
577
+ {
578
+ label: "表单容器边框宽度:",
579
+ ele: 'el-input',
580
+ valueKey: 'formWrapBorderWidth',
581
+ value: data.formWrapBorderWidth || "1",
582
+ type: "number",
583
+ groupKey: 'style',
584
+ placeholder: "请输入表单边框宽度",
585
+ className: 'input60',
586
+ },
587
+ {
588
+ label: '表单容器投影颜色:',
589
+ ele: 'xd-color',
590
+ groupKey:'style',
591
+ valueKey: 'formShadowColor',
592
+ value: data['formShadowColor'] || '',
593
+ placeholder: '请选择投影颜色',
594
+ classNmae: 'input80',
595
+ },
596
+ {
597
+ label: '表单容器投影范围:',
598
+ groupKey:'style',
599
+ ele: 'xd-site-select-list',
600
+ valueKey: 'formShadowW',
601
+ value: data['formShadowW'] || '0',
602
+ placeholder: '请选择投影范围',
603
+ multiple: false,
604
+ className: 'input80',
605
+ handleCustom({action, data}) {
606
+ XdBus.getParentApi('getOptionsSettingList')({
607
+ setting_id: 'edtix_style_radius',
608
+ key: Date.now()
609
+ })
334
610
  .then(res => {
335
- loading.close();
336
- data.cb(true)
611
+ data.cb(res.list)
337
612
  })
338
613
  .catch(error => {
339
614
  console.error(error);
340
- loading.close();
341
- data.cb(false)
342
615
  });
343
- }
344
-
345
- //位置编辑
346
- if (action === 'editPostion') {
347
- loading = XdBus.getParentApi('loading')({});
348
- XdBus.getParentApi('updateNewsPosition')(data.params)
616
+ },
617
+ },
618
+ {
619
+ ele: 'title',
620
+ label: '标签样式配置',
621
+ size: 'small',
622
+ groupKey: 'style',
623
+ },
624
+ {
625
+ label: "标签文字对齐方式:",
626
+ ele: 'xd-radio',
627
+ valueKey: 'labelAlign',
628
+ value: data.labelAlign || "right",
629
+ groupKey: 'style',
630
+ placeholder: "请选择标签对齐方式",
631
+ multiple: false,
632
+ className: 'input80',
633
+ list: [
634
+ { label: '左对齐', value: "left" },
635
+ { label: '右对齐', value: "right" },
636
+ { label: '居中', value: "center" },
637
+ ],
638
+ },
639
+ {
640
+ label: "标签位置:",
641
+ ele: "xd-radio",
642
+ valueKey: "labelPosition",
643
+ value: data.labelPosition || "left",
644
+ groupKey: 'style',
645
+ placeholder: "请选择标签对齐方式",
646
+ multiple: false,
647
+ className: 'input80',
648
+ list: [
649
+ { label: '居左', value: "left" },
650
+ { label: '居上', value: "top" },
651
+ ],
652
+ },
653
+ {
654
+ label: "标签宽度:",
655
+ ele: 'el-input',
656
+ type: "number",
657
+ valueKey: 'labelWidth',
658
+ value: data.labelWidth || "180",
659
+ groupKey: 'style',
660
+ placeholder: "请输入标签宽度",
661
+ className: 'input60',
662
+ },
663
+ {
664
+ label: "手机号图标:",
665
+ ele: "el-input",
666
+ valueKey: "phoneIcon",
667
+ value: data.phoneIcon || "",
668
+ groupKey: 'style',
669
+ placeholder: "请输入手机号图标",
670
+ className: "input70",
671
+ },
672
+ {
673
+ label: "验证码图标:",
674
+ ele: "el-input",
675
+ valueKey: "codeIcon",
676
+ value: data.codeIcon || "",
677
+ groupKey: 'style',
678
+ placeholder: "请输入验证码图标",
679
+ className: "input70",
680
+ },
681
+ {
682
+ label: "标签字体样式设置:",
683
+ ele: "xd-font",
684
+ valueKey: "labelFont",
685
+ value: data.labelFont || {},
686
+ groupKey: 'style',
687
+ setting: {
688
+ align: false,
689
+ lineHeight: false,
690
+ },
691
+ handleCustom({ action, data }) {
692
+ XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_font_size' })
349
693
  .then(res => {
350
- loading.close();
351
- data.cb(true)
694
+ data.cb(res.list)
352
695
  })
353
696
  .catch(error => {
697
+ data.cb([])
354
698
  console.error(error);
355
- loading.close();
356
- data.cb(false)
357
699
  });
358
- }
359
-
360
- //位置删除
361
- if (action === 'deleltePostion') {
362
- loading = XdBus.getParentApi('loading')({});
363
- XdBus.getParentApi('deleteNewsPosition')(data.params)
700
+ },
701
+ inline: false,
702
+ },
703
+ {
704
+ ele: 'title',
705
+ label: '输入框设置',
706
+ size: 'small',
707
+ groupKey: 'style',
708
+ },
709
+ {
710
+ label: "占位符字体样式设置:",
711
+ ele: "xd-font",
712
+ valueKey: "placeholderFont",
713
+ value: data.placeholderFont || {
714
+ color: '#d4d4d4',
715
+ fontSize: '24rpx',
716
+ fontWeight: "normal",
717
+ },
718
+ groupKey: 'style',
719
+ setting: {
720
+ align: false,
721
+ lineHeight: false,
722
+ },
723
+ handleCustom({ action, data }) {
724
+ XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_font_size' })
364
725
  .then(res => {
365
- loading.close();
366
- data.cb(true)
726
+ data.cb(res.list)
367
727
  })
368
728
  .catch(error => {
729
+ data.cb([])
369
730
  console.error(error);
370
- loading.close();
371
- data.cb(false)
372
731
  });
373
- }
374
-
375
- //获取广告位内容列表
376
- if (action === 'getListContent') {
377
- loading = XdBus.getParentApi('loading')({});
378
- XdBus.getParentApi('getListNewsContent')(data.params)
732
+ },
733
+ inline: false,
734
+ },
735
+ {
736
+ label: "内容字体样式设置:",
737
+ ele: "xd-font",
738
+ valueKey: "contentFont",
739
+ value: data.contentFont || {},
740
+ groupKey: 'style',
741
+ setting: {
742
+ align: false,
743
+ lineHeight: false,
744
+ },
745
+ handleCustom({ action, data }) {
746
+ XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_font_size' })
379
747
  .then(res => {
380
- loading.close();
381
- data.cb(res)
748
+ data.cb(res.list)
382
749
  })
383
750
  .catch(error => {
384
- loading.close();
751
+ data.cb([])
385
752
  console.error(error);
386
753
  });
387
- }
388
-
389
- //广告内容创建
390
- if (action === 'addContent') {
391
- loading = XdBus.getParentApi('loading')({});
392
- XdBus.getParentApi('addNewsContent')(data.params)
754
+ },
755
+ inline: false,
756
+ },
757
+ {
758
+ ele: 'title',
759
+ label: '获取验证码',
760
+ size: 'small',
761
+ groupKey: 'style',
762
+ },
763
+ {
764
+ label: "获取验证码字体样式设置:",
765
+ ele: "xd-font",
766
+ valueKey: "getCodeFont",
767
+ value: data.getCodeFont || {
768
+ color: "#ff5a39",
769
+ fontSize: "24rpx",
770
+ fontWeight: "normal",
771
+ },
772
+ groupKey: 'style',
773
+ setting: {
774
+ align: false,
775
+ lineHeight: false,
776
+ },
777
+ handleCustom({ action, data }) {
778
+ XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_font_size' })
393
779
  .then(res => {
394
- loading.close();
395
- data.cb(true)
780
+ data.cb(res.list)
396
781
  })
397
782
  .catch(error => {
783
+ data.cb([])
398
784
  console.error(error);
399
- loading.close();
400
- data.cb(false)
401
785
  });
402
- }
403
-
404
- //广告内容编辑
405
- if (action === 'editContent') {
406
- loading = XdBus.getParentApi('loading')({});
407
- XdBus.getParentApi('updateNewsContent')(data.params)
786
+ },
787
+ inline: false,
788
+ },
789
+ {
790
+ label: "获取验证码展示方式:",
791
+ ele: 'xd-radio',
792
+ valueKey: 'getCodeShowType',
793
+ value: data.getCodeShowType || 'text',
794
+ groupKey: 'style',
795
+ multiple: false,
796
+ className: 'input80',
797
+ list: [
798
+ { label: '文字', value: 'text' },
799
+ { label: '按钮', value: 'button' },
800
+ ],
801
+ },
802
+ {
803
+ ele: 'title',
804
+ label: '按钮样式配置',
805
+ size: 'small',
806
+ groupKey: 'style',
807
+ },
808
+ // {
809
+ // label: "按钮颜色",
810
+ // ele: 'xd-color',
811
+ // valueKey: 'btnColor',
812
+ // value: data.btnColor || '',
813
+ // groupKey:'style',
814
+ // placeholder: "请选择按钮颜色",
815
+ // className: 'input60',
816
+ // },
817
+ {
818
+ label: "表单按钮外边距设置",
819
+ groupKey: 'style',
820
+ ele: 'xd-margin-padding',
821
+ valueKey: 'btnMargin',
822
+ value: data.btnMargin || null,
823
+ setting: {
824
+ type: 'padding',
825
+ },
826
+ placeholder: '请设置边距',
827
+ inline: false,
828
+ notice: '设置外边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
829
+ },
830
+ {
831
+ label: "按钮圆角 - 通用",
832
+ ele: 'xd-site-select-list',
833
+ valueKey: 'btnRadius',
834
+ value: data['btnRadius'] || '20',
835
+ groupKey: 'style',
836
+ placeholder: '请选择内容圆角设置',
837
+ multiple: false,
838
+ className: 'input80',
839
+ handleCustom({ action, data }) {
840
+ XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
408
841
  .then(res => {
409
- loading.close();
410
- data.cb(true)
842
+ data.cb(res.list)
411
843
  })
412
844
  .catch(error => {
413
845
  console.error(error);
414
- loading.close();
415
- data.cb(false)
416
846
  });
417
- }
418
-
419
- //广告内容删除
420
- if (action === 'deleteContent') {
421
- loading = XdBus.getParentApi('loading')({});
422
- XdBus.getParentApi('deleteNewsContent')(data.params)
847
+ },
848
+ },
849
+ {
850
+ ele: 'title',
851
+ label: '条款协议 - 通用',
852
+ size: 'small',
853
+ groupKey: 'style',
854
+ },
855
+ {
856
+ label: "文字样式设置: ",
857
+ ele: "xd-font",
858
+ valueKey: "agreeFont",
859
+ value: data.agreeFont || {
860
+ color: "#666666",
861
+ fontSize: "24rpx",
862
+ fontWeight: "normal",
863
+ },
864
+ groupKey: 'style',
865
+ setting: {
866
+ align: false,
867
+ },
868
+ handleCustom({ action, data }) {
869
+ XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_font_size' })
423
870
  .then(res => {
424
- loading.close();
425
- data.cb(true)
871
+ data.cb(res.list)
426
872
  })
427
873
  .catch(error => {
874
+ data.cb([])
428
875
  console.error(error);
429
- loading.close();
430
- data.cb(false)
431
876
  });
432
- }
433
-
434
- //内容发布
435
- if (action === 'publish') {
436
- loading = XdBus.getParentApi('loading')({});
437
- console.log('publish', data.params)
438
- XdBus.getParentApi('cmsPublishContent')(data.params)
877
+ },
878
+ inline: false,
879
+ },
880
+ {
881
+ label: "隐私条款链接字体设置:",
882
+ ele: "xd-font",
883
+ valueKey: "privacyFont",
884
+ value: data.privacyFont || {},
885
+ groupKey: 'style',
886
+ setting: {
887
+ align: false,
888
+ lineHeight: false,
889
+ fontSize: false,
890
+ },
891
+ handleCustom({ action, data }) {
892
+ XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_font_size' })
439
893
  .then(res => {
440
- loading.close();
441
- data.cb(res)
894
+ data.cb(res.list)
442
895
  })
443
896
  .catch(error => {
444
- loading.close();
897
+ data.cb([])
445
898
  console.error(error);
446
899
  });
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
- ]
900
+ },
901
+ inline: false,
902
+ },
903
+ {
904
+ label: "选择框垂直对齐方式:",
905
+ ele: 'xd-radio',
906
+ valueKey: 'agreementAlign',
907
+ value: data.agreementAlign || "center",
908
+ groupKey: 'style',
909
+ multiple: false,
910
+ className: 'input80',
911
+ list: [
912
+ { label: '居中', value: "center" },
913
+ { label: '顶部', value: "flex-start" },
914
+ { label: '底部', value: "flex-end" },
915
+ ]
916
+ },
917
+ {
918
+ label: "条款协议外边距设置 - 账号登录",
919
+ groupKey: 'style',
920
+ ele: 'xd-margin-padding',
921
+ valueKey: 'agreePadding',
922
+ value: data.agreePadding || {
923
+ top: 40,
924
+ left: 20,
925
+ right: 20,
926
+ bottom: 0
927
+ },
928
+ setting: {
929
+ type: 'padding',
930
+ },
931
+ placeholder: '请设置边距',
932
+ inline: false,
933
+ notice: '设置外边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
934
+ },
935
+ ]
936
+ }
460
937
  }