jufubao-base 1.0.168 → 1.0.169-beta10

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/JfbBaseLogin/Attr.js +1147 -510
  3. package/src/components/JfbBaseLogin/JfbBaseLogin.vue +364 -63
  4. package/src/components/JfbBaseMapSearch/MapSearchMp.vue +1 -1
  5. package/src/components/JfbBaseOrderDetail/Api.js +12 -7
  6. package/src/components/JfbBaseOrderDetail/Attr.js +28 -14
  7. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +68 -18
  8. package/src/components/JfbBaseOrderDetail/Mock.js +3 -1
  9. package/src/components/JfbBaseTfkCardBind/Api.js +49 -30
  10. package/src/components/JfbBaseTfkCardBind/Attr.js +635 -38
  11. package/src/components/JfbBaseTfkCardBind/JfbBaseTfkCardBind.vue +617 -22
  12. package/src/components/JfbBaseTfkCardBind/Mock.js +19 -9
  13. package/src/components/JfbBaseTfkCardDetail/Api.js +19 -32
  14. package/src/components/JfbBaseTfkCardDetail/Attr.js +692 -33
  15. package/src/components/JfbBaseTfkCardDetail/JfbBaseTfkCardDetail.vue +630 -23
  16. package/src/components/JfbBaseTfkCardDetail/Mock.js +151 -11
  17. package/src/components/JfbBaseTfkCardLogin/Api.js +19 -34
  18. package/src/components/JfbBaseTfkCardLogin/Attr.js +898 -33
  19. package/src/components/JfbBaseTfkCardLogin/JfbBaseTfkCardLogin.vue +741 -17
  20. package/src/components/JfbBaseTfkCardLogin/Mock.js +677 -11
  21. package/src/components/JfbBaseTfkCardLogin/XdCouponItem.vue +271 -0
  22. package/src/components/JfbBaseTfkSearch/AllList.vue +232 -0
  23. package/src/components/JfbBaseTfkSearch/Api.js +11 -42
  24. package/src/components/JfbBaseTfkSearch/Attr.js +225 -33
  25. package/src/components/JfbBaseTfkSearch/ContentCinema.vue +157 -0
  26. package/src/components/JfbBaseTfkSearch/ContentFilm.vue +179 -0
  27. package/src/components/JfbBaseTfkSearch/ContentProduct.vue +308 -0
  28. package/src/components/JfbBaseTfkSearch/ContentShop.vue +184 -0
  29. package/src/components/JfbBaseTfkSearch/CusAttr.js +213 -0
  30. package/src/components/JfbBaseTfkSearch/CustomList.vue +402 -0
  31. package/src/components/JfbBaseTfkSearch/JfbBaseTfkSearch.vue +230 -26
  32. package/src/components/JfbBaseTfkSearch/Mock.js +90 -11
  33. package/src/components/JfbBaseTfkSearch/SkeletonCinema.vue +45 -0
  34. package/src/components/JfbBaseTfkSearch/SkeletonFilm.vue +109 -0
  35. package/src/components/JfbBaseTfkSearch/SkeletonProduct.vue +246 -0
  36. package/src/components/JfbBaseTfkSearch/SkeletonShop.vue +81 -0
  37. package/src/components/JfbBaseTfkSearch/handleKeyword.js +24 -0
  38. package/src/components/JfbBaseTfkSearch/listMixins.js +153 -0
  39. package/src/components/JfbBaseTfkSearch/search.js +293 -0
  40. package/src/mixins/colorCardMixins.js +71 -9
  41. package/src/mixins/componentsMixins.js +346 -23
@@ -3,554 +3,1191 @@
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
+ 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
+ }
120
+
121
+ //获取返回参数(场景类型名称为必填)
122
+ //获取返回参数(场景类型名称为必填)
123
+ let loading = { close(){}}
124
+
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
+ });
136
+
137
+ }
138
+
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
+ }
151
+
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
+ }
164
+
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
+ }
179
+
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
+ }
193
+
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
+ }
208
+
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
+ }
223
+
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
+ }
238
+
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
+ }
252
+
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
+ }
267
+
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
+ }
282
+
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
+ }
297
+
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
+ }
312
+
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
+ }
346
+
347
+ //获取返回参数(场景类型名称为必填)
348
+ let loading = { close(){}}
349
+
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
+ }
507
+
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: "xd-font",
781
+ valueKey: "labelFont",
782
+ value: data.labelFont || {},
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'})
349
790
  .then(res => {
350
- loading.close();
351
- data.cb(true)
791
+ data.cb(res.list)
352
792
  })
353
793
  .catch(error => {
794
+ data.cb([])
354
795
  console.error(error);
355
- loading.close();
356
- data.cb(false)
357
796
  });
358
- }
359
-
360
- //位置删除
361
- if (action === 'deleltePostion') {
362
- loading = XdBus.getParentApi('loading')({});
363
- XdBus.getParentApi('deleteNewsPosition')(data.params)
797
+ },
798
+ inline: false,
799
+ notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
800
+ hidden: data.previewCurrent !== "account",
801
+ },
802
+ {
803
+ ele: 'title',
804
+ label: '输入框设置',
805
+ size: 'small',
806
+ groupKey: 'style',
807
+ hidden: data.previewCurrent !== "account",
808
+ },
809
+ {
810
+ label: "占位符字体样式设置:",
811
+ ele: "xd-font",
812
+ valueKey: "placeholderFont",
813
+ value: data.placeholderFont || {
814
+ color: '#d4d4d4',
815
+ fontSize: '24rpx',
816
+ fontWeight: "normal",
817
+ },
818
+ groupKey:'style',
819
+ setting: {
820
+ align: false,
821
+ lineHeight: false,
822
+ },
823
+ handleCustom({action, data}) {
824
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
364
825
  .then(res => {
365
- loading.close();
366
- data.cb(true)
826
+ data.cb(res.list)
367
827
  })
368
828
  .catch(error => {
829
+ data.cb([])
369
830
  console.error(error);
370
- loading.close();
371
- data.cb(false)
372
831
  });
373
- }
374
-
375
- //获取广告位内容列表
376
- if (action === 'getListContent') {
377
- loading = XdBus.getParentApi('loading')({});
378
- XdBus.getParentApi('getListNewsContent')(data.params)
832
+ },
833
+ inline: false,
834
+ notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
835
+ hidden: data.previewCurrent !== "account",
836
+ },
837
+ {
838
+ label: "内容字体样式设置:",
839
+ ele: "xd-font",
840
+ valueKey: "contentFont",
841
+ value: data.contentFont || {},
842
+ groupKey:'style',
843
+ setting: {
844
+ align: false,
845
+ lineHeight: false,
846
+ },
847
+ handleCustom({action, data}) {
848
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
379
849
  .then(res => {
380
- loading.close();
381
- data.cb(res)
850
+ data.cb(res.list)
382
851
  })
383
852
  .catch(error => {
384
- loading.close();
853
+ data.cb([])
385
854
  console.error(error);
386
855
  });
387
- }
388
-
389
- //广告内容创建
390
- if (action === 'addContent') {
391
- loading = XdBus.getParentApi('loading')({});
392
- XdBus.getParentApi('addNewsContent')(data.params)
856
+ },
857
+ inline: false,
858
+ notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
859
+ hidden: data.previewCurrent !== "account",
860
+ },
861
+ {
862
+ ele: 'title',
863
+ label: '获取验证码',
864
+ size: 'small',
865
+ groupKey: 'style',
866
+ hidden: data.previewCurrent !== "account",
867
+ },
868
+ {
869
+ label: "获取验证码字体样式设置:",
870
+ ele: "xd-font",
871
+ valueKey: "getCodeFont",
872
+ value: data.getCodeFont || {
873
+ color: "#ff5a39",
874
+ fontSize: "24rpx",
875
+ fontWeight: "normal",
876
+ },
877
+ groupKey:'style',
878
+ setting: {
879
+ align: false,
880
+ lineHeight: false,
881
+ },
882
+ handleCustom({action, data}) {
883
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
393
884
  .then(res => {
394
- loading.close();
395
- data.cb(true)
885
+ data.cb(res.list)
396
886
  })
397
887
  .catch(error => {
888
+ data.cb([])
398
889
  console.error(error);
399
- loading.close();
400
- data.cb(false)
401
890
  });
402
- }
403
-
404
- //广告内容编辑
405
- if (action === 'editContent') {
406
- loading = XdBus.getParentApi('loading')({});
407
- XdBus.getParentApi('updateNewsContent')(data.params)
891
+ },
892
+ inline: false,
893
+ notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
894
+ hidden: data.previewCurrent !== "account",
895
+ },
896
+ {
897
+ label: "获取验证码展示方式:",
898
+ ele: 'xd-radio',
899
+ valueKey: 'getCodeShowType',
900
+ value: data.getCodeShowType || 'text',
901
+ groupKey: 'style',
902
+ multiple: false,
903
+ className: 'input80',
904
+ list: [
905
+ {label: '文字', value: 'text'},
906
+ {label: '按钮', value: 'button'},
907
+ ],
908
+ hidden: data.previewCurrent !== "account",
909
+ },
910
+ {
911
+ ele: 'title',
912
+ label: '按钮样式配置',
913
+ size: 'small',
914
+ groupKey: 'style',
915
+ },
916
+ // {
917
+ // label: "按钮颜色",
918
+ // ele: 'xd-color',
919
+ // valueKey: 'btnColor',
920
+ // value: data.btnColor || '',
921
+ // groupKey:'style',
922
+ // placeholder: "请选择按钮颜色",
923
+ // className: 'input60',
924
+ // },
925
+ {
926
+ label: "表单按钮外边距设置",
927
+ groupKey:'style',
928
+ ele: 'xd-margin-padding',
929
+ valueKey: 'btnMargin',
930
+ value: data.btnMargin || {
931
+ top: 20,
932
+ left: 20,
933
+ right: 20,
934
+ bottom: 20
935
+ },
936
+ setting: {
937
+ type: 'padding',
938
+ },
939
+ placeholder: '请设置边距',
940
+ inline: false,
941
+ notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
942
+ hidden: data.previewCurrent !== "account",
943
+ },
944
+ {
945
+ label: "按钮圆角 - 通用",
946
+ ele: 'xd-site-select-list',
947
+ valueKey: 'btnRadius',
948
+ value: data['btnRadius'] || '',
949
+ groupKey:'style',
950
+ placeholder: '请选择内容圆角设置',
951
+ multiple: false,
952
+ className: 'input80',
953
+ handleCustom({ action, data }) {
954
+ XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
408
955
  .then(res => {
409
- loading.close();
410
- data.cb(true)
956
+ data.cb(res.list)
411
957
  })
412
958
  .catch(error => {
413
959
  console.error(error);
414
- loading.close();
415
- data.cb(false)
416
960
  });
417
- }
418
-
419
- //广告内容删除
420
- if (action === 'deleteContent') {
421
- loading = XdBus.getParentApi('loading')({});
422
- XdBus.getParentApi('deleteNewsContent')(data.params)
961
+ },
962
+ },
963
+ {
964
+ ele: 'title',
965
+ label: '条款协议 - 通用',
966
+ size: 'small',
967
+ groupKey: 'style',
968
+ },
969
+ {
970
+ label: "文字样式设置: ",
971
+ ele: "xd-font",
972
+ valueKey: "agreeFont",
973
+ value: data.agreeFont || {
974
+ color: "#666666",
975
+ fontSize: "24rpx",
976
+ fontWeight: "normal",
977
+ },
978
+ groupKey:'style',
979
+ setting: {
980
+ align: false,
981
+ },
982
+ handleCustom({action, data}) {
983
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
423
984
  .then(res => {
424
- loading.close();
425
- data.cb(true)
985
+ data.cb(res.list)
426
986
  })
427
987
  .catch(error => {
988
+ data.cb([])
428
989
  console.error(error);
429
- loading.close();
430
- data.cb(false)
431
990
  });
432
- }
433
-
434
- //内容发布
435
- if (action === 'publish') {
436
- loading = XdBus.getParentApi('loading')({});
437
- console.log('publish', data.params)
438
- XdBus.getParentApi('cmsPublishContent')(data.params)
991
+ },
992
+ inline: false,
993
+ notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
994
+ },
995
+ {
996
+ label: "隐私条款链接字体设置:",
997
+ ele: "xd-font",
998
+ valueKey: "privacyFont",
999
+ value: data.privacyFont || {},
1000
+ groupKey:'style',
1001
+ setting: {
1002
+ align: false,
1003
+ lineHeight: false,
1004
+ fontSize: false,
1005
+ },
1006
+ handleCustom({action, data}) {
1007
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
439
1008
  .then(res => {
440
- loading.close();
441
- data.cb(res)
1009
+ data.cb(res.list)
442
1010
  })
443
1011
  .catch(error => {
444
- loading.close();
1012
+ data.cb([])
445
1013
  console.error(error);
446
1014
  });
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
- ]
1015
+ },
1016
+ inline: false,
1017
+ notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
1018
+ },
1019
+ {
1020
+ label: "选择框垂直对齐方式:",
1021
+ ele: 'xd-radio',
1022
+ valueKey: 'agreementAlign',
1023
+ value: data.agreementAlign || "center",
1024
+ groupKey:'style',
1025
+ multiple: false,
1026
+ className: 'input80',
1027
+ list: [
1028
+ {label: '居中', value: "center"},
1029
+ {label: '顶部', value: "flex-start"},
1030
+ {label: '底部', value: "flex-end"},
1031
+ ]
1032
+ },
1033
+ {
1034
+ label: "条款协议外边距设置 - 账号登录",
1035
+ groupKey:'style',
1036
+ ele: 'xd-margin-padding',
1037
+ valueKey: 'agreePadding',
1038
+ value: data.agreePadding || {
1039
+ top: 40,
1040
+ left: 20,
1041
+ right: 20,
1042
+ bottom: 0
1043
+ },
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
+ hidden: data.previewCurrent !== "account"
1051
+ },
1052
+ {
1053
+ ele: "title",
1054
+ label: "授权登录页设置",
1055
+ size: "small",
1056
+ groupKey: "style",
1057
+ hidden: data.previewCurrent !== "auth"
1058
+ },
1059
+ {
1060
+ label: "授权登录按钮组边距设置:",
1061
+ ele: "xd-margin-padding",
1062
+ valueKey: "authBtnPadding",
1063
+ value: data.authBtnPadding || {},
1064
+ groupKey:'style',
1065
+ setting: {
1066
+ type: 'padding',
1067
+ },
1068
+ placeholder: '请设置边距',
1069
+ inline: false,
1070
+ notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
1071
+ hidden: data.previewCurrent !== "auth"
1072
+ },
1073
+ {
1074
+ label: "隐私协议外边距设置:",
1075
+ ele: "xd-margin-padding",
1076
+ valueKey: "authAgreePadding",
1077
+ value: data.authAgreePadding || {},
1078
+ groupKey:'style',
1079
+ setting: {
1080
+ type: 'padding',
1081
+ },
1082
+ placeholder: '请设置边距',
1083
+ inline: false,
1084
+ notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
1085
+ hidden: data.previewCurrent !== "auth"
1086
+ },
1087
+ {
1088
+ ele: 'title',
1089
+ label: '其他',
1090
+ size: 'small',
1091
+ groupKey: 'style',
1092
+ },
1093
+ {
1094
+ label: "是否展示站点名称:",
1095
+ ele: 'xd-radio',
1096
+ valueKey: 'isShowSiteName',
1097
+ value: data.isShowSiteName || "Y",
1098
+ groupKey:'style',
1099
+ placeholder: "请选择是否展示站点名称",
1100
+ multiple: false,
1101
+ className: 'input80',
1102
+ list: [
1103
+ {label: '显示', value: "Y"},
1104
+ {label: '隐藏', value: "N"},
1105
+ ],
1106
+ hidden: data.previewCurrent !== "auth"
1107
+ },
1108
+ {
1109
+ label: '站点名称颜色:',
1110
+ ele: 'xd-color',
1111
+ valueKey: 'logoTextColor',
1112
+ value: data.logoTextColor ||'',
1113
+ groupKey:'style',
1114
+ placeholder: '请选择站点名称颜色',
1115
+ classNmae: 'input60',
1116
+ hidden: data.previewCurrent !== "auth"
1117
+ },
1118
+ {
1119
+ label: '快速授权失败访问地址:', //label
1120
+ ele: 'xd-select-pages-path', //package 名称
1121
+ valueKey: 'error_url', //form[valueKey]
1122
+ groupKey:'advanced',
1123
+ placeholder: '请选择快速授权失败访问地址',
1124
+ value: data.error_url || null,
1125
+ setting: {
1126
+ router: XdBus.getParentApi('getPagesTree'),
1127
+ },
1128
+ inline: false,
1129
+ },
1130
+ {
1131
+ label: '登录成功跳转地址:', //label
1132
+ ele: 'xd-select-pages-path', //package 名称
1133
+ valueKey: 'callback_url', //form[valueKey]
1134
+ groupKey:'advanced',
1135
+ placeholder: '请选择登录成功跳转地址',
1136
+ value: data.callback_url || null,
1137
+ setting: {
1138
+ router: XdBus.getParentApi('getPagesTree'),
1139
+ },
1140
+ inline: false,
1141
+ },
1142
+ {
1143
+ label: '手机号登录地址:', //label
1144
+ ele: 'xd-select-pages-path', //package 名称
1145
+ valueKey: 'phone_number_login_url', //form[valueKey]
1146
+ groupKey:'advanced',
1147
+ placeholder: '请选择手机号登录地址',
1148
+ value: data.phone_number_login_url || null,
1149
+ setting: {
1150
+ router: XdBus.getParentApi('getPagesTree'),
1151
+ },
1152
+ inline: false,
1153
+ },
1154
+ {
1155
+ label: '收集手机号地址:', //label
1156
+ ele: 'xd-select-pages-path', //package 名称
1157
+ valueKey: 'phone_number_collect_url', //form[valueKey]
1158
+ groupKey:'advanced',
1159
+ placeholder: '请选择收集手机号地址',
1160
+ value: data.phone_number_collect_url || null,
1161
+ setting: {
1162
+ router: XdBus.getParentApi('getPagesTree'),
1163
+ },
1164
+ inline: false,
1165
+ },
1166
+ {
1167
+ label: '忘记密码跳转地址:', //label
1168
+ ele: 'xd-select-pages-path', //package 名称
1169
+ valueKey: 'forget_pwd_url', //form[valueKey]
1170
+ groupKey:'advanced',
1171
+ placeholder: '请选择跳转地址',
1172
+ value: data.forget_pwd_url || null,
1173
+ setting: {
1174
+ router: XdBus.getParentApi('getPagesTree'),
1175
+ },
1176
+ inline: false,
1177
+ },
1178
+ {
1179
+ label: '小程序手机号授权登录地址:', //label
1180
+ ele: 'xd-select-pages-path', //package 名称
1181
+ valueKey: 'mpAuthPhoneUrl', //form[valueKey]
1182
+ groupKey: 'advanced',
1183
+ placeholder: '请选择跳转地址',
1184
+ value: data.mpAuthPhoneUrl || null,
1185
+ setting: {
1186
+ router: XdBus.getParentApi('getPagesTree'),
1187
+ },
1188
+ notice: "首次快捷登录,将自动跳转至该地址",
1189
+ inline: false,
1190
+ },
1191
+ ].filter(i => i)
1192
+ }
556
1193
  }