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