jufubao-base 1.0.168 → 1.0.169-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.
@@ -3,554 +3,1153 @@
3
3
  export default {
4
4
  style: [],
5
5
  advanced: [],
6
- content: [
7
- {
8
- label: '隐私政策:',
9
- ele: 'xd-site-news',
10
- valueKey: 'notice',
11
- value: {type: 'privacy'},
12
- groupKey:'content',
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']
24
- },
25
- },
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']
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
- 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)
320
- .then(res => {
321
- loading.close();
322
- data.cb(res)
323
- })
324
- .catch(error => {
325
- loading.close();
326
- console.error(error);
327
- });
328
- }
329
-
330
- //位置创建
331
- if (action === 'addPostion') {
332
- loading = XdBus.getParentApi('loading')({});
333
- XdBus.getParentApi('addNewsPosition')(data.params)
6
+ content: (data) => {
7
+ return [
8
+ {
9
+ label: "当前展示项(预览调试样式):",
10
+ ele: 'xd-radio',
11
+ valueKey: "previewCurrent",
12
+ value: data.previewCurrent || "auth",
13
+ groupKey: "content",
14
+ list: [
15
+ { label: '授权登录页', value: 'auth' },
16
+ { label: '账号登录页', value: 'account' },
17
+ ],
18
+ },
19
+ {
20
+ ele: 'title',
21
+ label: '按钮内容配置',
22
+ size: 'small',
23
+ groupKey: 'content',
24
+ },
25
+ {
26
+ label: "授权登录按钮文案:",
27
+ ele: 'el-input',
28
+ valueKey: "authLoginBtnText",
29
+ value: data.authLoginBtnText ||"",
30
+ groupKey: "content",
31
+ className: "input70",
32
+ },
33
+ {
34
+ label: "授权登录按钮前缀图标:",
35
+ ele: 'el-input',
36
+ valueKey: "authLoginBtnIcon",
37
+ value: data.authLoginBtnIcon || "",
38
+ groupKey: "content",
39
+ className: "input70",
40
+ },
41
+ {
42
+ label: "账号登录按钮文案:",
43
+ ele: 'el-input',
44
+ valueKey: "accountLoginBtnText",
45
+ value: data.accountLoginBtnText ||"",
46
+ groupKey: "content",
47
+ className: "input70",
48
+ },
49
+ {
50
+ label: "账号登录按钮前缀图标:",
51
+ ele: 'el-input',
52
+ valueKey: "accountLoginBtnIcon",
53
+ value: data.accountLoginBtnIcon || "",
54
+ groupKey: "content",
55
+ className: "input70",
56
+ },
57
+ {
58
+ label: "手机号登录按钮文案:",
59
+ ele: 'el-input',
60
+ valueKey: "phoneLoginBtnText",
61
+ value: data.phoneLoginBtnText || "登录",
62
+ groupKey: "content",
63
+ className: "input70",
64
+ },
65
+ {
66
+ label: "手机号登录按钮前缀图标:",
67
+ ele: 'el-input',
68
+ valueKey: "phoneLoginBtnIcon",
69
+ value: data.phoneLoginBtnIcon || "",
70
+ groupKey: "content",
71
+ className: "input70",
72
+ },
73
+ {
74
+ ele: 'title',
75
+ label: '协议内容配置',
76
+ size: 'small',
77
+ groupKey: 'content',
78
+ },
79
+ {
80
+ label: "协议文案:",
81
+ ele: 'el-input',
82
+ valueKey: "agreementText",
83
+ value: data.agreementText || "",
84
+ groupKey: "content",
85
+ className: "input70",
86
+ type: "textarea",
87
+ inline: false,
88
+ notice: "{{privacy}}为隐私政策,{{service}}为用户服务协议",
89
+ },
90
+ {
91
+ label: '隐私政策:',
92
+ ele: 'xd-site-news',
93
+ valueKey: 'notice',
94
+ value: data.notice || {type: 'privacy'},
95
+ groupKey:'content',
96
+ className: 'input70',
97
+ setting: {
98
+ type: 'privacy',
99
+ config: {
100
+ sort: true,
101
+ maxlen: 100,
102
+ action: 'aliyun',
103
+ size: 5,
104
+ tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
105
+ uploadType: 'aliyun',
106
+ type: ['jpg', 'png', 'jpeg']
107
+ },
108
+ },
109
+ handleCustom({action, data}) {
110
+ if (data && data.params) {
111
+ //当一个插件中出现多个内容分类时候需要设置code值,在页面引用时候(容器id + code)进行拼接获取数据列表
112
+ data.params = Object.assign({}, data.params, {code: 'privacy_privacy'});
113
+ }
114
+
115
+ //获取返回参数(场景类型名称为必填)
116
+ //获取返回参数(场景类型名称为必填)
117
+ let loading = { close(){}}
118
+
119
+ //获取显示内容
120
+ if (action === 'screen') {
121
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_bucket_content_tip'})
122
+ .then(res => {
123
+ loading.close();
124
+ data.cb(res['list'])
125
+ })
126
+ .catch(error => {
127
+ console.error(error);
128
+ loading.close();
129
+ });
130
+
131
+ }
132
+
133
+ //获取返回参数(广告位高度必选项)
134
+ if (action === 'getNewsInfo') {
135
+ XdBus.getParentApi('cmsGetPublishEditxContent')(data.params)
136
+ .then(res => {
137
+ loading.close()
138
+ data.cb({list: res.list, selectId: res.selected})
139
+ })
140
+ .catch(error => {
141
+ loading.close()
142
+ console.error(error);
143
+ });
144
+ }
145
+
146
+ //获取产品业务线列表
147
+ if (action === 'namespace') {
148
+ XdBus.getParentApi('getOptionsNamespaces')({})
149
+ .then(res => {
150
+ loading.close()
151
+ data.cb(res['list'])
152
+ })
153
+ .catch(error => {
154
+ loading.close()
155
+ console.error(error);
156
+ });
157
+ }
158
+
159
+ //使用内容分类
160
+ if (action === 'cmsPublishEditxContent') {
161
+ loading = XdBus.getParentApi('loading')({});
162
+ XdBus.getParentApi('cmsPublishEditxContent')(data.params)
163
+ .then(res => {
164
+ console.log('cmsPublishEditxContent', res)
165
+ loading.close();
166
+ data.cb(res)
167
+ })
168
+ .catch(error => {
169
+ loading.close();
170
+ console.error(error);
171
+ });
172
+ }
173
+
174
+ //位置列表
175
+ if (action === 'getListPostion') {
176
+ loading = XdBus.getParentApi('loading')({});
177
+ XdBus.getParentApi('getListNewsPosition')(data.params)
178
+ .then(res => {
179
+ loading.close();
180
+ data.cb(res)
181
+ })
182
+ .catch(error => {
183
+ loading.close();
184
+ console.error(error);
185
+ });
186
+ }
187
+
188
+ //位置创建
189
+ if (action === 'addPostion') {
190
+ loading = XdBus.getParentApi('loading')({});
191
+ XdBus.getParentApi('addNewsPosition')(data.params)
192
+ .then(res => {
193
+ loading.close();
194
+ data.cb(true)
195
+ })
196
+ .catch(error => {
197
+ console.error(error);
198
+ loading.close();
199
+ data.cb(false)
200
+ });
201
+ }
202
+
203
+ //位置编辑
204
+ if (action === 'editPostion') {
205
+ loading = XdBus.getParentApi('loading')({});
206
+ XdBus.getParentApi('updateNewsPosition')(data.params)
207
+ .then(res => {
208
+ loading.close();
209
+ data.cb(true)
210
+ })
211
+ .catch(error => {
212
+ console.error(error);
213
+ loading.close();
214
+ data.cb(false)
215
+ });
216
+ }
217
+
218
+ //位置删除
219
+ if (action === 'deleltePostion') {
220
+ loading = XdBus.getParentApi('loading')({});
221
+ XdBus.getParentApi('deleteNewsPosition')(data.params)
222
+ .then(res => {
223
+ loading.close();
224
+ data.cb(true)
225
+ })
226
+ .catch(error => {
227
+ console.error(error);
228
+ loading.close();
229
+ data.cb(false)
230
+ });
231
+ }
232
+
233
+ //获取广告位内容列表
234
+ if (action === 'getListContent') {
235
+ loading = XdBus.getParentApi('loading')({});
236
+ XdBus.getParentApi('getListNewsContent')(data.params)
237
+ .then(res => {
238
+ loading.close();
239
+ data.cb(res)
240
+ })
241
+ .catch(error => {
242
+ loading.close();
243
+ console.error(error);
244
+ });
245
+ }
246
+
247
+ //广告内容创建
248
+ if (action === 'addContent') {
249
+ loading = XdBus.getParentApi('loading')({});
250
+ XdBus.getParentApi('addNewsContent')(data.params)
251
+ .then(res => {
252
+ loading.close();
253
+ data.cb(true)
254
+ })
255
+ .catch(error => {
256
+ console.error(error);
257
+ loading.close();
258
+ data.cb(false)
259
+ });
260
+ }
261
+
262
+ //广告内容编辑
263
+ if (action === 'editContent') {
264
+ loading = XdBus.getParentApi('loading')({});
265
+ XdBus.getParentApi('updateNewsContent')(data.params)
266
+ .then(res => {
267
+ loading.close();
268
+ data.cb(true)
269
+ })
270
+ .catch(error => {
271
+ console.error(error);
272
+ loading.close();
273
+ data.cb(false)
274
+ });
275
+ }
276
+
277
+ //广告内容删除
278
+ if (action === 'deleteContent') {
279
+ loading = XdBus.getParentApi('loading')({});
280
+ XdBus.getParentApi('deleteNewsContent')(data.params)
281
+ .then(res => {
282
+ loading.close();
283
+ data.cb(true)
284
+ })
285
+ .catch(error => {
286
+ console.error(error);
287
+ loading.close();
288
+ data.cb(false)
289
+ });
290
+ }
291
+
292
+ //内容发布
293
+ if (action === 'publish') {
294
+ loading = XdBus.getParentApi('loading')({});
295
+ console.log('publish', data.params)
296
+ XdBus.getParentApi('cmsPublishContent')(data.params)
297
+ .then(res => {
298
+ loading.close();
299
+ data.cb(res)
300
+ })
301
+ .catch(error => {
302
+ loading.close();
303
+ console.error(error);
304
+ });
305
+ }
306
+
307
+ //通知页面进行刷新
308
+ if (action === 'update') {
309
+ loading = XdBus.getParentApi('loading')({});
310
+ XdBus.getParentApi('getXdBusUpdateView')('onUpdateView', {});
311
+ loading.close()
312
+ }
313
+ },
314
+ inline: false,
315
+ notice: '',
316
+ },
317
+ {
318
+ label: '用户服务协议:',
319
+ ele: 'xd-site-news',
320
+ valueKey: 'notices',
321
+ groupKey:'content',
322
+ value: data.notices || {type: 'privacy'},
323
+ className: 'input70',
324
+ setting: {
325
+ config: {
326
+ sort: true,
327
+ maxlen: 100,
328
+ action: 'aliyun',
329
+ size: 5,
330
+ tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
331
+ uploadType: 'aliyun',
332
+ type: ['jpg', 'png', 'jpeg']
333
+ },
334
+ },
335
+ handleCustom({action, data}) {
336
+ if (data && data.params) {
337
+ //当一个插件中出现多个内容分类时候需要设置code值,在页面引用时候(容器id + code)进行拼接获取数据列表
338
+ data.params = Object.assign({}, data.params, {code: 'privacy_service'});
339
+ }
340
+
341
+ //获取返回参数(场景类型名称为必填)
342
+ let loading = { close(){}}
343
+
344
+ //获取显示内容
345
+ if (action === 'screen') {
346
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_bucket_content_tip'})
347
+ .then(res => {
348
+ loading.close();
349
+ data.cb(res['list'])
350
+ })
351
+ .catch(error => {
352
+ console.error(error);
353
+ loading.close();
354
+ });
355
+
356
+ }
357
+
358
+ //获取返回参数(广告位高度必选项)
359
+ if (action === 'getNewsInfo') {
360
+ XdBus.getParentApi('cmsGetPublishEditxContent')(data.params)
361
+ .then(res => {
362
+ loading.close()
363
+ data.cb({list: res.list, selectId: res.selected})
364
+ })
365
+ .catch(error => {
366
+ loading.close()
367
+ console.error(error);
368
+ });
369
+ }
370
+
371
+ //获取产品业务线列表
372
+ if (action === 'namespace') {
373
+ XdBus.getParentApi('getOptionsNamespaces')({})
374
+ .then(res => {
375
+ loading.close()
376
+ data.cb(res['list'])
377
+ })
378
+ .catch(error => {
379
+ loading.close()
380
+ console.error(error);
381
+ });
382
+ }
383
+
384
+ //使用内容分类
385
+ if (action === 'cmsPublishEditxContent') {
386
+ loading = XdBus.getParentApi('loading')({});
387
+ XdBus.getParentApi('cmsPublishEditxContent')(data.params)
388
+ .then(res => {
389
+ console.log('cmsPublishEditxContent', res)
390
+ loading.close();
391
+ data.cb(res)
392
+ })
393
+ .catch(error => {
394
+ loading.close();
395
+ console.error(error);
396
+ });
397
+ }
398
+
399
+ //位置列表
400
+ if (action === 'getListPostion') {
401
+ loading = XdBus.getParentApi('loading')({});
402
+ XdBus.getParentApi('getListNewsPosition')(data.params)
403
+ .then(res => {
404
+ loading.close();
405
+ data.cb(res)
406
+ })
407
+ .catch(error => {
408
+ loading.close();
409
+ console.error(error);
410
+ });
411
+ }
412
+
413
+ //位置创建
414
+ if (action === 'addPostion') {
415
+ loading = XdBus.getParentApi('loading')({});
416
+ XdBus.getParentApi('addNewsPosition')(data.params)
417
+ .then(res => {
418
+ loading.close();
419
+ data.cb(true)
420
+ })
421
+ .catch(error => {
422
+ console.error(error);
423
+ loading.close();
424
+ data.cb(false)
425
+ });
426
+ }
427
+
428
+ //位置编辑
429
+ if (action === 'editPostion') {
430
+ loading = XdBus.getParentApi('loading')({});
431
+ XdBus.getParentApi('updateNewsPosition')(data.params)
432
+ .then(res => {
433
+ loading.close();
434
+ data.cb(true)
435
+ })
436
+ .catch(error => {
437
+ console.error(error);
438
+ loading.close();
439
+ data.cb(false)
440
+ });
441
+ }
442
+
443
+ //位置删除
444
+ if (action === 'deleltePostion') {
445
+ loading = XdBus.getParentApi('loading')({});
446
+ XdBus.getParentApi('deleteNewsPosition')(data.params)
447
+ .then(res => {
448
+ loading.close();
449
+ data.cb(true)
450
+ })
451
+ .catch(error => {
452
+ console.error(error);
453
+ loading.close();
454
+ data.cb(false)
455
+ });
456
+ }
457
+
458
+ //获取广告位内容列表
459
+ if (action === 'getListContent') {
460
+ loading = XdBus.getParentApi('loading')({});
461
+ XdBus.getParentApi('getListNewsContent')(data.params)
462
+ .then(res => {
463
+ loading.close();
464
+ data.cb(res)
465
+ })
466
+ .catch(error => {
467
+ loading.close();
468
+ console.error(error);
469
+ });
470
+ }
471
+
472
+ //广告内容创建
473
+ if (action === 'addContent') {
474
+ loading = XdBus.getParentApi('loading')({});
475
+ XdBus.getParentApi('addNewsContent')(data.params)
476
+ .then(res => {
477
+ loading.close();
478
+ data.cb(true)
479
+ })
480
+ .catch(error => {
481
+ console.error(error);
482
+ loading.close();
483
+ data.cb(false)
484
+ });
485
+ }
486
+
487
+ //广告内容编辑
488
+ if (action === 'editContent') {
489
+ loading = XdBus.getParentApi('loading')({});
490
+ XdBus.getParentApi('updateNewsContent')(data.params)
491
+ .then(res => {
492
+ loading.close();
493
+ data.cb(true)
494
+ })
495
+ .catch(error => {
496
+ console.error(error);
497
+ loading.close();
498
+ data.cb(false)
499
+ });
500
+ }
501
+
502
+ //广告内容删除
503
+ if (action === 'deleteContent') {
504
+ loading = XdBus.getParentApi('loading')({});
505
+ XdBus.getParentApi('deleteNewsContent')(data.params)
506
+ .then(res => {
507
+ loading.close();
508
+ data.cb(true)
509
+ })
510
+ .catch(error => {
511
+ console.error(error);
512
+ loading.close();
513
+ data.cb(false)
514
+ });
515
+ }
516
+
517
+ //内容发布
518
+ if (action === 'publish') {
519
+ loading = XdBus.getParentApi('loading')({});
520
+ console.log('publish', data.params)
521
+ XdBus.getParentApi('cmsPublishContent')(data.params)
522
+ .then(res => {
523
+ loading.close();
524
+ data.cb(res)
525
+ })
526
+ .catch(error => {
527
+ loading.close();
528
+ console.error(error);
529
+ });
530
+ }
531
+
532
+ //通知页面进行刷新
533
+ if (action === 'update') {
534
+ loading = XdBus.getParentApi('loading')({});
535
+ XdBus.getParentApi('getXdBusUpdateView')('onUpdateView', {});
536
+ loading.close()
537
+ }
538
+ },
539
+ inline: false,
540
+ notice: '',
541
+ },
542
+ {
543
+ ele: 'title',
544
+ label: '账号登录内容配置',
545
+ size: 'small',
546
+ groupKey: 'content',
547
+ },
548
+ {
549
+ label: "手机号自定义提示语:",
550
+ ele: 'el-input',
551
+ valueKey: 'phonePlaceholder',
552
+ value: data.phonePlaceholder || "",
553
+ groupKey:'content',
554
+ placeholder: "请输入手机号自定义提示语",
555
+ className: 'input80',
556
+ },
557
+ {
558
+ label: "验证码自定义提示语:",
559
+ ele: 'el-input',
560
+ valueKey: 'codePlaceholder',
561
+ value: data.codePlaceholder ||"",
562
+ groupKey:'content',
563
+ placeholder: "请输入验证码自定义提示语",
564
+ className: 'input80',
565
+ },
566
+ {
567
+ label: '是否使用体验码功能:',
568
+ ele: 'xd-radio',
569
+ valueKey: 'isPreview',
570
+ groupKey: 'content',
571
+ value: data.isPreview || 'N',
572
+ placeholder: '请选择是否使用体验码功能',
573
+ multiple: false,
574
+ className: 'input80',
575
+ list: [
576
+ {label: '是', value: 'Y'},
577
+ {label: '否', value: 'N'},
578
+ ]
579
+ },
580
+ {
581
+ ele: 'title',
582
+ label: 'logo样式配置',
583
+ size: 'small',
584
+ groupKey: 'style',
585
+ },
586
+ {
587
+ label: "logo区域高度:",
588
+ ele: 'el-input',
589
+ valueKey: 'logoWrapHeight',
590
+ value: data.logoWrapHeight || "480",
591
+ type: "number",
592
+ groupKey:'style',
593
+ placeholder: "请输入logo区域高度",
594
+ className: 'input60',
595
+ },
596
+ {
597
+ label: "logo图片高度:",
598
+ ele: 'el-input',
599
+ valueKey: 'logoHeight',
600
+ value: data.logoHeight || "180",
601
+ type: "number",
602
+ groupKey:'style',
603
+ placeholder: "请输入logo图片高度",
604
+ className: 'input60',
605
+ },
606
+ {
607
+ label: 'logo圆角设置:',
608
+ ele: 'xd-site-select-list',
609
+ valueKey: 'logoRadius',
610
+ value: data.logoRadius ||'',
611
+ groupKey:'style',
612
+ placeholder: '请选择logo圆角设置',
613
+ multiple: false,
614
+ className: 'input80',
615
+ handleCustom({ action, data }) {
616
+ XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
334
617
  .then(res => {
335
- loading.close();
336
- data.cb(true)
618
+ data.cb(res.list)
337
619
  })
338
620
  .catch(error => {
339
621
  console.error(error);
340
- loading.close();
341
- data.cb(false)
342
622
  });
343
- }
344
-
345
- //位置编辑
346
- if (action === 'editPostion') {
347
- loading = XdBus.getParentApi('loading')({});
348
- XdBus.getParentApi('updateNewsPosition')(data.params)
623
+ },
624
+ },
625
+ {
626
+ ele: "title",
627
+ label: "表单样式配置",
628
+ size: "small",
629
+ groupKey: "style",
630
+ },
631
+ {
632
+ label: "输入框样式:",
633
+ ele: 'xd-radio',
634
+ valueKey: 'inputStyle',
635
+ value: data.inputStyle || "linear",
636
+ groupKey:'style',
637
+ placeholder: "请选择输入框样式",
638
+ multiple: false,
639
+ className: 'input80',
640
+ list: [
641
+ {label: '线性', value: "linear"},
642
+ {label: '面性', value: "face"},
643
+ ]
644
+ },
645
+ data.inputStyle === 'linear' && {
646
+ label: "表单边框颜色:",
647
+ ele: 'xd-color',
648
+ valueKey: 'formBorderColor',
649
+ value: data.formBorderColor || "#F9F9F9",
650
+ groupKey:'style',
651
+ placeholder: "请选择表单边框颜色",
652
+ },
653
+ data.inputStyle === 'linear' && {
654
+ label: "表单边框宽度:",
655
+ ele: 'el-input',
656
+ valueKey: 'formBorderWidth',
657
+ value: data.formBorderWidth || "1",
658
+ type: "number",
659
+ groupKey:'style',
660
+ placeholder: "请输入表单边框宽度",
661
+ className: 'input60',
662
+ },
663
+ {
664
+ label: "表单背景颜色:",
665
+ ele: 'xd-color',
666
+ valueKey: 'formBgColor',
667
+ value: data.formBgColor || "#FFFFFF",
668
+ groupKey:'style',
669
+ placeholder: "请选择表单背景颜色",
670
+ },
671
+ {
672
+ label: '表单容器设置内边距:',
673
+ groupKey:'style',
674
+ ele: 'xd-margin-padding',
675
+ valueKey: 'formPadding',
676
+ value: data.formPadding || null,
677
+ setting: {
678
+ type: 'padding',
679
+ },
680
+ placeholder: '请设置边距',
681
+ inline: false,
682
+ notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
683
+ },
684
+ {
685
+ ele: 'title',
686
+ label: '标签样式配置',
687
+ size: 'small',
688
+ groupKey: 'style',
689
+ },
690
+ data.inputStyle === 'linear' && {
691
+ label: "标签文字对齐方式:",
692
+ ele: 'xd-radio',
693
+ valueKey: 'labelAlign',
694
+ value: data.labelAlign || "right",
695
+ groupKey:'style',
696
+ placeholder: "请选择标签对齐方式",
697
+ multiple: false,
698
+ className: 'input80',
699
+ list: [
700
+ {label: '左对齐', value: "left"},
701
+ {label: '右对齐', value: "right"},
702
+ {label: '居中', value: "center"},
703
+ ]
704
+ },
705
+ data.inputStyle === 'linear' && {
706
+ label: "标签位置:",
707
+ ele: "xd-radio",
708
+ valueKey: "labelPosition",
709
+ value: data.labelPosition || "left",
710
+ groupKey:'style',
711
+ placeholder: "请选择标签对齐方式",
712
+ multiple: false,
713
+ className: 'input80',
714
+ list: [
715
+ {label: '居左', value: "left"},
716
+ {label: '居上', value: "top"},
717
+ ]
718
+ },
719
+ data.inputStyle === 'linear' && {
720
+ label: "标签宽度:",
721
+ ele: 'el-input',
722
+ type: "number",
723
+ valueKey: 'labelWidth',
724
+ value: data.labelWidth || "180",
725
+ groupKey:'style',
726
+ placeholder: "请输入标签宽度",
727
+ className: 'input60',
728
+ },
729
+ {
730
+ label: "手机号图标:",
731
+ ele: "el-input",
732
+ valueKey: "phoneIcon",
733
+ value: data.phoneIcon ||"",
734
+ groupKey:'style',
735
+ placeholder: "请输入手机号图标",
736
+ className: "input70",
737
+ },
738
+ {
739
+ label: "验证码图标:",
740
+ ele: "el-input",
741
+ valueKey: "codeIcon",
742
+ value: data.codeIcon || "",
743
+ groupKey:'style',
744
+ placeholder: "请输入验证码图标",
745
+ className: "input70",
746
+ },
747
+ {
748
+ label: "标签字体样式设置:",
749
+ ele: "xd-font",
750
+ valueKey: "labelFont",
751
+ value: data.labelFont || {},
752
+ groupKey:'style',
753
+ setting: {
754
+ align: false,
755
+ lineHeight: false,
756
+ //color:true, //颜色
757
+ //fontSize: true, //字体大小
758
+ //style:true, //字体:nomarl|italic
759
+ //align:true, //左,中,右
760
+ //weight: true, //粗细
761
+ //lineHeight: true, //行高
762
+ //decoration: true, //样式,none |underline |line-through | overline
763
+ },
764
+ handleCustom({action, data}) {
765
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
349
766
  .then(res => {
350
- loading.close();
351
- data.cb(true)
767
+ data.cb(res.list)
352
768
  })
353
769
  .catch(error => {
770
+ data.cb([])
354
771
  console.error(error);
355
- loading.close();
356
- data.cb(false)
357
772
  });
358
- }
359
-
360
- //位置删除
361
- if (action === 'deleltePostion') {
362
- loading = XdBus.getParentApi('loading')({});
363
- XdBus.getParentApi('deleteNewsPosition')(data.params)
773
+ },
774
+ inline: false,
775
+ notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
776
+ },
777
+ {
778
+ ele: 'title',
779
+ label: '输入框设置',
780
+ size: 'small',
781
+ groupKey: 'style',
782
+ },
783
+ {
784
+ label: "占位符字体样式设置:",
785
+ ele: "xd-font",
786
+ valueKey: "placeholderFont",
787
+ value: data.placeholderFont || {
788
+ color: '#d4d4d4',
789
+ fontSize: '24rpx',
790
+ fontWeight: "normal",
791
+ },
792
+ groupKey:'style',
793
+ setting: {
794
+ align: false,
795
+ lineHeight: false,
796
+ },
797
+ handleCustom({action, data}) {
798
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
364
799
  .then(res => {
365
- loading.close();
366
- data.cb(true)
800
+ data.cb(res.list)
367
801
  })
368
802
  .catch(error => {
803
+ data.cb([])
369
804
  console.error(error);
370
- loading.close();
371
- data.cb(false)
372
805
  });
373
- }
374
-
375
- //获取广告位内容列表
376
- if (action === 'getListContent') {
377
- loading = XdBus.getParentApi('loading')({});
378
- XdBus.getParentApi('getListNewsContent')(data.params)
806
+ },
807
+ inline: false,
808
+ notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
809
+ },
810
+ {
811
+ label: "内容字体样式设置:",
812
+ ele: "xd-font",
813
+ valueKey: "contentFont",
814
+ value: data.contentFont || {},
815
+ groupKey:'style',
816
+ setting: {
817
+ align: false,
818
+ lineHeight: false,
819
+ },
820
+ handleCustom({action, data}) {
821
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
379
822
  .then(res => {
380
- loading.close();
381
- data.cb(res)
823
+ data.cb(res.list)
382
824
  })
383
825
  .catch(error => {
384
- loading.close();
826
+ data.cb([])
385
827
  console.error(error);
386
828
  });
387
- }
388
-
389
- //广告内容创建
390
- if (action === 'addContent') {
391
- loading = XdBus.getParentApi('loading')({});
392
- XdBus.getParentApi('addNewsContent')(data.params)
829
+ },
830
+ inline: false,
831
+ notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
832
+ },
833
+ {
834
+ ele: 'title',
835
+ label: '获取验证码',
836
+ size: 'small',
837
+ groupKey: 'style',
838
+ },
839
+ {
840
+ label: "获取验证码字体样式设置:",
841
+ ele: "xd-font",
842
+ valueKey: "getCodeFont",
843
+ value: data.getCodeFont || {
844
+ color: "#ff5a39",
845
+ fontSize: "24rpx",
846
+ fontWeight: "normal",
847
+ },
848
+ groupKey:'style',
849
+ setting: {
850
+ align: false,
851
+ lineHeight: false,
852
+ },
853
+ handleCustom({action, data}) {
854
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
393
855
  .then(res => {
394
- loading.close();
395
- data.cb(true)
856
+ data.cb(res.list)
396
857
  })
397
858
  .catch(error => {
859
+ data.cb([])
398
860
  console.error(error);
399
- loading.close();
400
- data.cb(false)
401
861
  });
402
- }
403
-
404
- //广告内容编辑
405
- if (action === 'editContent') {
406
- loading = XdBus.getParentApi('loading')({});
407
- XdBus.getParentApi('updateNewsContent')(data.params)
862
+ },
863
+ inline: false,
864
+ notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
865
+ },
866
+ {
867
+ label: "获取验证码展示方式:",
868
+ ele: 'xd-radio',
869
+ valueKey: 'getCodeShowType',
870
+ value: data.getCodeShowType || 'text',
871
+ groupKey: 'style',
872
+ multiple: false,
873
+ className: 'input80',
874
+ list: [
875
+ {label: '文字', value: 'text'},
876
+ {label: '按钮', value: 'button'},
877
+ ]
878
+ },
879
+ {
880
+ ele: 'title',
881
+ label: '按钮样式配置',
882
+ size: 'small',
883
+ groupKey: 'style',
884
+ },
885
+ // {
886
+ // label: "按钮颜色",
887
+ // ele: 'xd-color',
888
+ // valueKey: 'btnColor',
889
+ // value: data.btnColor || '',
890
+ // groupKey:'style',
891
+ // placeholder: "请选择按钮颜色",
892
+ // className: 'input60',
893
+ // },
894
+ {
895
+ label: "表单按钮外边距设置",
896
+ groupKey:'style',
897
+ ele: 'xd-margin-padding',
898
+ valueKey: 'btnMargin',
899
+ value: data.btnMargin || {
900
+ top: 20,
901
+ left: 20,
902
+ right: 20,
903
+ bottom: 20
904
+ },
905
+ setting: {
906
+ type: 'padding',
907
+ },
908
+ placeholder: '请设置边距',
909
+ inline: false,
910
+ notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
911
+ },
912
+ {
913
+ label: "按钮圆角",
914
+ ele: 'xd-site-select-list',
915
+ valueKey: 'btnRadius',
916
+ value: data['btnRadius'] || '',
917
+ groupKey:'style',
918
+ placeholder: '请选择内容圆角设置',
919
+ multiple: false,
920
+ className: 'input80',
921
+ handleCustom({ action, data }) {
922
+ XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
408
923
  .then(res => {
409
- loading.close();
410
- data.cb(true)
924
+ data.cb(res.list)
411
925
  })
412
926
  .catch(error => {
413
927
  console.error(error);
414
- loading.close();
415
- data.cb(false)
416
928
  });
417
- }
418
-
419
- //广告内容删除
420
- if (action === 'deleteContent') {
421
- loading = XdBus.getParentApi('loading')({});
422
- XdBus.getParentApi('deleteNewsContent')(data.params)
929
+ },
930
+ },
931
+ {
932
+ ele: 'title',
933
+ label: '条款协议',
934
+ size: 'small',
935
+ groupKey: 'style',
936
+ },
937
+ {
938
+ label: "文字样式设置: ",
939
+ ele: "xd-font",
940
+ valueKey: "agreeFont",
941
+ value: data.agreeFont || {
942
+ color: "#666666",
943
+ fontSize: "24rpx",
944
+ fontWeight: "normal",
945
+ },
946
+ groupKey:'style',
947
+ setting: {
948
+ align: false,
949
+ },
950
+ handleCustom({action, data}) {
951
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
423
952
  .then(res => {
424
- loading.close();
425
- data.cb(true)
953
+ data.cb(res.list)
426
954
  })
427
955
  .catch(error => {
956
+ data.cb([])
428
957
  console.error(error);
429
- loading.close();
430
- data.cb(false)
431
958
  });
432
- }
433
-
434
- //内容发布
435
- if (action === 'publish') {
436
- loading = XdBus.getParentApi('loading')({});
437
- console.log('publish', data.params)
438
- XdBus.getParentApi('cmsPublishContent')(data.params)
959
+ },
960
+ inline: false,
961
+ notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
962
+ },
963
+ {
964
+ label: "隐私条款链接字体设置:",
965
+ ele: "xd-font",
966
+ valueKey: "privacyFont",
967
+ value: data.privacyFont || {},
968
+ groupKey:'style',
969
+ setting: {
970
+ align: false,
971
+ lineHeight: false,
972
+ fontSize: false,
973
+ },
974
+ handleCustom({action, data}) {
975
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
439
976
  .then(res => {
440
- loading.close();
441
- data.cb(res)
977
+ data.cb(res.list)
442
978
  })
443
979
  .catch(error => {
444
- loading.close();
980
+ data.cb([])
445
981
  console.error(error);
446
982
  });
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: 'isPreview',
463
- groupKey:'content',
464
- value: 'N',
465
- placeholder: '请选择是否使用体验码功能',
466
- multiple: false,
467
- className: 'input80',
468
- list: [
469
- {label: '', value: 'Y'},
470
- {label: '否', value: 'N'},
471
- ]
472
- },
473
- {
474
- label: '站点名称颜色:',
475
- ele: 'xd-color',
476
- valueKey: 'logoTextColor',
477
- groupKey:'style',
478
- value: '',
479
- placeholder: '请选择站点名称颜色',
480
- classNmae: 'input60',
481
- },
482
- {
483
- label: '快速授权失败访问地址:', //label
484
- ele: 'xd-select-pages-path', //package 名称
485
- valueKey: 'error_url', //form[valueKey]
486
- groupKey:'advanced',
487
- placeholder: '请选择快速授权失败访问地址',
488
- value: null,
489
- setting: {
490
- router: XdBus.getParentApi('getPagesTree'),
491
- },
492
- inline: false,
493
- },
494
- {
495
- label: '登录成功跳转地址:', //label
496
- ele: 'xd-select-pages-path', //package 名称
497
- valueKey: 'callback_url', //form[valueKey]
498
- groupKey:'advanced',
499
- placeholder: '请选择登录成功跳转地址',
500
- value: null,
501
- setting: {
502
- router: XdBus.getParentApi('getPagesTree'),
503
- },
504
- inline: false,
505
- },
506
- {
507
- label: '手机号登录地址:', //label
508
- ele: 'xd-select-pages-path', //package 名称
509
- valueKey: 'phone_number_login_url', //form[valueKey]
510
- groupKey:'advanced',
511
- placeholder: '请选择手机号登录地址',
512
- value: null,
513
- setting: {
514
- router: XdBus.getParentApi('getPagesTree'),
515
- },
516
- inline: false,
517
- },
518
- {
519
- label: '收集手机号地址:', //label
520
- ele: 'xd-select-pages-path', //package 名称
521
- valueKey: 'phone_number_collect_url', //form[valueKey]
522
- groupKey:'advanced',
523
- placeholder: '请选择收集手机号地址',
524
- value: null,
525
- setting: {
526
- router: XdBus.getParentApi('getPagesTree'),
527
- },
528
- inline: false,
529
- },
530
- {
531
- label: '忘记密码跳转地址:', //label
532
- ele: 'xd-select-pages-path', //package 名称
533
- valueKey: 'forget_pwd_url', //form[valueKey]
534
- groupKey:'advanced',
535
- placeholder: '请选择跳转地址',
536
- value: null,
537
- setting: {
538
- router: XdBus.getParentApi('getPagesTree'),
539
- },
540
- inline: false,
541
- },
542
- {
543
- label: '小程序手机号授权登录地址:', //label
544
- ele: 'xd-select-pages-path', //package 名称
545
- valueKey: 'mpAuthPhoneUrl', //form[valueKey]
546
- groupKey: 'advanced',
547
- placeholder: '请选择跳转地址',
548
- value: null,
549
- setting: {
550
- router: XdBus.getParentApi('getPagesTree'),
551
- },
552
- notice: "首次快捷登录,将自动跳转至该地址",
553
- inline: false,
554
- },
555
- ]
983
+ },
984
+ inline: false,
985
+ notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
986
+ },
987
+ {
988
+ label: "选择框垂直对齐方式:",
989
+ ele: 'xd-radio',
990
+ valueKey: 'agreementAlign',
991
+ value: data.agreementAlign || "center",
992
+ groupKey:'style',
993
+ multiple: false,
994
+ className: 'input80',
995
+ list: [
996
+ {label: '居中', value: "center"},
997
+ {label: '顶部', value: "flex-start"},
998
+ {label: '底部', value: "flex-end"},
999
+ ]
1000
+ },
1001
+ {
1002
+ label: "外边距设置:",
1003
+ groupKey:'style',
1004
+ ele: 'xd-margin-padding',
1005
+ valueKey: 'agreePadding',
1006
+ value: data.agreePadding || {
1007
+ top: 40,
1008
+ left: 20,
1009
+ right: 20,
1010
+ bottom: 0
1011
+ },
1012
+ setting: {
1013
+ type: 'padding',
1014
+ },
1015
+ placeholder: '请设置边距',
1016
+ inline: false,
1017
+ notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
1018
+ },
1019
+ {
1020
+ ele: "title",
1021
+ label: "授权登录页设置",
1022
+ size: "small",
1023
+ groupKey: "style",
1024
+ },
1025
+ {
1026
+ label: "授权登录按钮组边距设置:",
1027
+ ele: "xd-margin-padding",
1028
+ valueKey: "authBtnPadding",
1029
+ value: data.authBtnPadding || {},
1030
+ groupKey:'style',
1031
+ setting: {
1032
+ type: 'padding',
1033
+ },
1034
+ placeholder: '请设置边距',
1035
+ inline: false,
1036
+ notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
1037
+ },
1038
+ {
1039
+ label: "隐私协议外边距设置:",
1040
+ ele: "xd-margin-padding",
1041
+ valueKey: "authAgreePadding",
1042
+ value: data.authAgreePadding || {},
1043
+ groupKey:'style',
1044
+ setting: {
1045
+ type: 'padding',
1046
+ },
1047
+ placeholder: '请设置边距',
1048
+ inline: false,
1049
+ notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
1050
+ },
1051
+ {
1052
+ ele: 'title',
1053
+ label: '其他',
1054
+ size: 'small',
1055
+ groupKey: 'style',
1056
+ },
1057
+ {
1058
+ label: "是否展示站点名称:",
1059
+ ele: 'xd-radio',
1060
+ valueKey: 'isShowSiteName',
1061
+ value: data.isShowSiteName || "Y",
1062
+ groupKey:'style',
1063
+ placeholder: "请选择是否展示站点名称",
1064
+ multiple: false,
1065
+ className: 'input80',
1066
+ list: [
1067
+ {label: '显示', value: "Y"},
1068
+ {label: '隐藏', value: "N"},
1069
+ ]
1070
+ },
1071
+ {
1072
+ label: '站点名称颜色:',
1073
+ ele: 'xd-color',
1074
+ valueKey: 'logoTextColor',
1075
+ value: data.logoTextColor ||'',
1076
+ groupKey:'style',
1077
+ placeholder: '请选择站点名称颜色',
1078
+ classNmae: 'input60',
1079
+ },
1080
+ {
1081
+ label: '快速授权失败访问地址:', //label
1082
+ ele: 'xd-select-pages-path', //package 名称
1083
+ valueKey: 'error_url', //form[valueKey]
1084
+ groupKey:'advanced',
1085
+ placeholder: '请选择快速授权失败访问地址',
1086
+ value: data.error_url || null,
1087
+ setting: {
1088
+ router: XdBus.getParentApi('getPagesTree'),
1089
+ },
1090
+ inline: false,
1091
+ },
1092
+ {
1093
+ label: '登录成功跳转地址:', //label
1094
+ ele: 'xd-select-pages-path', //package 名称
1095
+ valueKey: 'callback_url', //form[valueKey]
1096
+ groupKey:'advanced',
1097
+ placeholder: '请选择登录成功跳转地址',
1098
+ value: data.callback_url || null,
1099
+ setting: {
1100
+ router: XdBus.getParentApi('getPagesTree'),
1101
+ },
1102
+ inline: false,
1103
+ },
1104
+ {
1105
+ label: '手机号登录地址:', //label
1106
+ ele: 'xd-select-pages-path', //package 名称
1107
+ valueKey: 'phone_number_login_url', //form[valueKey]
1108
+ groupKey:'advanced',
1109
+ placeholder: '请选择手机号登录地址',
1110
+ value: data.phone_number_login_url || null,
1111
+ setting: {
1112
+ router: XdBus.getParentApi('getPagesTree'),
1113
+ },
1114
+ inline: false,
1115
+ },
1116
+ {
1117
+ label: '收集手机号地址:', //label
1118
+ ele: 'xd-select-pages-path', //package 名称
1119
+ valueKey: 'phone_number_collect_url', //form[valueKey]
1120
+ groupKey:'advanced',
1121
+ placeholder: '请选择收集手机号地址',
1122
+ value: data.phone_number_collect_url || null,
1123
+ setting: {
1124
+ router: XdBus.getParentApi('getPagesTree'),
1125
+ },
1126
+ inline: false,
1127
+ },
1128
+ {
1129
+ label: '忘记密码跳转地址:', //label
1130
+ ele: 'xd-select-pages-path', //package 名称
1131
+ valueKey: 'forget_pwd_url', //form[valueKey]
1132
+ groupKey:'advanced',
1133
+ placeholder: '请选择跳转地址',
1134
+ value: data.forget_pwd_url || null,
1135
+ setting: {
1136
+ router: XdBus.getParentApi('getPagesTree'),
1137
+ },
1138
+ inline: false,
1139
+ },
1140
+ {
1141
+ label: '小程序手机号授权登录地址:', //label
1142
+ ele: 'xd-select-pages-path', //package 名称
1143
+ valueKey: 'mpAuthPhoneUrl', //form[valueKey]
1144
+ groupKey: 'advanced',
1145
+ placeholder: '请选择跳转地址',
1146
+ value: data.mpAuthPhoneUrl || null,
1147
+ setting: {
1148
+ router: XdBus.getParentApi('getPagesTree'),
1149
+ },
1150
+ notice: "首次快捷登录,将自动跳转至该地址",
1151
+ inline: false,
1152
+ },
1153
+ ].filter(i => i)
1154
+ }
556
1155
  }