jufubao-base 1.0.169 → 1.0.171

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