jufubao-base 1.0.197-beta3 → 1.0.197-beta5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,469 +3,498 @@
3
3
  export default {
4
4
  style: [],
5
5
  advanced: [],
6
- content: [
7
- {
8
- label: '选择综合入口类型:',
9
- ele: 'xd-site-select-list',
10
- valueKey: 'entryGroupId',
11
- value: 'default',
12
- placeholder: '请选择综合入口类型',
13
- multiple: false,
14
- groupKey:'content',
15
- className: 'input50',
16
- rules: [
17
- {required: true, message: '请选择综合入口类型', trigger: ['blur', 'change']}
18
- ],
19
- handleCustom({action, data}) {
20
- XdBus.getParentApi('getEntryGroupOption')({key: Date.now()})
21
- .then(res => {
22
- data.cb(res.list)
23
- })
24
- .catch(error => {
25
- console.error(error);
26
- });
6
+ content: (data) => {
7
+ return [
8
+ {
9
+ label: "票券样式:",
10
+ ele: "xd-radio",
11
+ valueKey: "cardType",
12
+ value: data.cardType || "default",
13
+ list: [
14
+ { label: "样式1", value: "default" },
15
+ { label: "样式2", value: "style2" }
16
+ ],
17
+ groupKey: "content",
27
18
  },
28
- },
29
- {
30
- label: '提示内容:',
31
- ele: 'xd-site-news',
32
- valueKey: 'notice',
33
- groupKey:'content',
34
- value: null,
35
- className: 'input70',
36
- setting: {
37
- config: {
38
- sort: true,
39
- maxlen: 100,
40
- action: 'aliyun',
41
- size: 5,
42
- tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
43
- uploadType: 'aliyun',
44
- type: ['jpg', 'png', 'jpeg']
45
- },
46
- },
47
- handleCustom({action, data}) {
48
- if (data && data.params) {
49
- //当一个插件中出现使用内容分类时候需要设置code值,在页面引用时候容器id + code进行拼接
50
- //data.params = Object.assign({}, data.params, {code: 'g_test_id'});
51
- }
52
-
53
- //获取返回参数(场景类型名称为必填)
54
- //获取返回参数(场景类型名称为必填)
55
- let loading = { close(){}}
56
-
57
- //获取显示内容
58
- if (action === 'screen') {
59
- XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_bucket_content_tip'})
60
- .then(res => {
61
- loading.close();
62
- data.cb(res['list'])
63
- })
64
- .catch(error => {
65
- console.error(error);
66
- loading.close();
67
- });
68
-
69
- }
70
-
71
- //获取返回参数(广告位高度必选项)
72
- if (action === 'getNewsInfo') {
73
- XdBus.getParentApi('cmsGetPublishEditxContent')(data.params)
74
- .then(res => {
75
- loading.close()
76
- data.cb({list: res.list, selectId: res.selected})
77
- })
78
- .catch(error => {
79
- loading.close()
80
- console.error(error);
81
- });
82
- }
83
-
84
- //获取产品业务线列表
85
- if (action === 'namespace') {
86
- XdBus.getParentApi('getOptionsNamespaces')({})
87
- .then(res => {
88
- loading.close()
89
- data.cb(res['list'])
90
- })
91
- .catch(error => {
92
- loading.close()
93
- console.error(error);
94
- });
95
- }
96
-
97
- //使用内容分类
98
- if (action === 'cmsPublishEditxContent') {
99
- loading = XdBus.getParentApi('loading')({});
100
- XdBus.getParentApi('cmsPublishEditxContent')(data.params)
101
- .then(res => {
102
- console.log('cmsPublishEditxContent', res)
103
- loading.close();
104
- data.cb(res)
105
- })
106
- .catch(error => {
107
- loading.close();
108
- console.error(error);
109
- });
110
- }
111
-
112
- //位置列表
113
- if (action === 'getListPostion') {
114
- loading = XdBus.getParentApi('loading')({});
115
- XdBus.getParentApi('getListNewsPosition')(data.params)
116
- .then(res => {
117
- loading.close();
118
- data.cb(res)
119
- })
120
- .catch(error => {
121
- loading.close();
122
- console.error(error);
123
- });
124
- }
125
-
126
- //位置创建
127
- if (action === 'addPostion') {
128
- loading = XdBus.getParentApi('loading')({});
129
- XdBus.getParentApi('addNewsPosition')(data.params)
130
- .then(res => {
131
- loading.close();
132
- data.cb(true)
133
- })
134
- .catch(error => {
135
- console.error(error);
136
- loading.close();
137
- data.cb(false)
138
- });
139
- }
140
-
141
- //位置编辑
142
- if (action === 'editPostion') {
143
- loading = XdBus.getParentApi('loading')({});
144
- XdBus.getParentApi('updateNewsPosition')(data.params)
145
- .then(res => {
146
- loading.close();
147
- data.cb(true)
148
- })
149
- .catch(error => {
150
- console.error(error);
151
- loading.close();
152
- data.cb(false)
153
- });
154
- }
155
-
156
- //位置删除
157
- if (action === 'deleltePostion') {
158
- loading = XdBus.getParentApi('loading')({});
159
- XdBus.getParentApi('deleteNewsPosition')(data.params)
160
- .then(res => {
161
- loading.close();
162
- data.cb(true)
163
- })
164
- .catch(error => {
165
- console.error(error);
166
- loading.close();
167
- data.cb(false)
168
- });
169
- }
170
-
171
- //获取广告位内容列表
172
- if (action === 'getListContent') {
173
- loading = XdBus.getParentApi('loading')({});
174
- XdBus.getParentApi('getListNewsContent')(data.params)
175
- .then(res => {
176
- loading.close();
177
- data.cb(res)
178
- })
179
- .catch(error => {
180
- loading.close();
181
- console.error(error);
182
- });
183
- }
184
-
185
- //广告内容创建
186
- if (action === 'addContent') {
187
- loading = XdBus.getParentApi('loading')({});
188
- XdBus.getParentApi('addNewsContent')(data.params)
19
+ {
20
+ label: '选择综合入口类型:',
21
+ ele: 'xd-site-select-list',
22
+ valueKey: 'entryGroupId',
23
+ value: data.entryGroupId || 'default',
24
+ placeholder: '请选择综合入口类型',
25
+ multiple: false,
26
+ groupKey:'content',
27
+ className: 'input50',
28
+ rules: [
29
+ {required: true, message: '请选择综合入口类型', trigger: ['blur', 'change']}
30
+ ],
31
+ handleCustom({action, data}) {
32
+ XdBus.getParentApi('getEntryGroupOption')({key: Date.now()})
189
33
  .then(res => {
190
- loading.close();
191
- data.cb(true)
34
+ data.cb(res.list)
192
35
  })
193
36
  .catch(error => {
194
37
  console.error(error);
195
- loading.close();
196
- data.cb(false)
197
38
  });
198
- }
199
-
200
- //广告内容编辑
201
- if (action === 'editContent') {
202
- loading = XdBus.getParentApi('loading')({});
203
- XdBus.getParentApi('updateNewsContent')(data.params)
39
+ },
40
+ },
41
+ {
42
+ label: '提示内容:',
43
+ ele: 'xd-site-news',
44
+ valueKey: 'notice',
45
+ groupKey:'content',
46
+ value: data.notice || null,
47
+ className: 'input70',
48
+ setting: {
49
+ config: {
50
+ sort: true,
51
+ maxlen: 100,
52
+ action: 'aliyun',
53
+ size: 5,
54
+ tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
55
+ uploadType: 'aliyun',
56
+ type: ['jpg', 'png', 'jpeg']
57
+ },
58
+ },
59
+ handleCustom({action, data}) {
60
+ if (data && data.params) {
61
+ //当一个插件中出现使用内容分类时候需要设置code值,在页面引用时候容器id + code进行拼接
62
+ //data.params = Object.assign({}, data.params, {code: 'g_test_id'});
63
+ }
64
+
65
+ //获取返回参数(场景类型名称为必填)
66
+ //获取返回参数(场景类型名称为必填)
67
+ let loading = { close(){}}
68
+
69
+ //获取显示内容
70
+ if (action === 'screen') {
71
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_bucket_content_tip'})
72
+ .then(res => {
73
+ loading.close();
74
+ data.cb(res['list'])
75
+ })
76
+ .catch(error => {
77
+ console.error(error);
78
+ loading.close();
79
+ });
80
+
81
+ }
82
+
83
+ //获取返回参数(广告位高度必选项)
84
+ if (action === 'getNewsInfo') {
85
+ XdBus.getParentApi('cmsGetPublishEditxContent')(data.params)
86
+ .then(res => {
87
+ loading.close()
88
+ data.cb({list: res.list, selectId: res.selected})
89
+ })
90
+ .catch(error => {
91
+ loading.close()
92
+ console.error(error);
93
+ });
94
+ }
95
+
96
+ //获取产品业务线列表
97
+ if (action === 'namespace') {
98
+ XdBus.getParentApi('getOptionsNamespaces')({})
99
+ .then(res => {
100
+ loading.close()
101
+ data.cb(res['list'])
102
+ })
103
+ .catch(error => {
104
+ loading.close()
105
+ console.error(error);
106
+ });
107
+ }
108
+
109
+ //使用内容分类
110
+ if (action === 'cmsPublishEditxContent') {
111
+ loading = XdBus.getParentApi('loading')({});
112
+ XdBus.getParentApi('cmsPublishEditxContent')(data.params)
113
+ .then(res => {
114
+ console.log('cmsPublishEditxContent', res)
115
+ loading.close();
116
+ data.cb(res)
117
+ })
118
+ .catch(error => {
119
+ loading.close();
120
+ console.error(error);
121
+ });
122
+ }
123
+
124
+ //位置列表
125
+ if (action === 'getListPostion') {
126
+ loading = XdBus.getParentApi('loading')({});
127
+ XdBus.getParentApi('getListNewsPosition')(data.params)
128
+ .then(res => {
129
+ loading.close();
130
+ data.cb(res)
131
+ })
132
+ .catch(error => {
133
+ loading.close();
134
+ console.error(error);
135
+ });
136
+ }
137
+
138
+ //位置创建
139
+ if (action === 'addPostion') {
140
+ loading = XdBus.getParentApi('loading')({});
141
+ XdBus.getParentApi('addNewsPosition')(data.params)
142
+ .then(res => {
143
+ loading.close();
144
+ data.cb(true)
145
+ })
146
+ .catch(error => {
147
+ console.error(error);
148
+ loading.close();
149
+ data.cb(false)
150
+ });
151
+ }
152
+
153
+ //位置编辑
154
+ if (action === 'editPostion') {
155
+ loading = XdBus.getParentApi('loading')({});
156
+ XdBus.getParentApi('updateNewsPosition')(data.params)
157
+ .then(res => {
158
+ loading.close();
159
+ data.cb(true)
160
+ })
161
+ .catch(error => {
162
+ console.error(error);
163
+ loading.close();
164
+ data.cb(false)
165
+ });
166
+ }
167
+
168
+ //位置删除
169
+ if (action === 'deleltePostion') {
170
+ loading = XdBus.getParentApi('loading')({});
171
+ XdBus.getParentApi('deleteNewsPosition')(data.params)
172
+ .then(res => {
173
+ loading.close();
174
+ data.cb(true)
175
+ })
176
+ .catch(error => {
177
+ console.error(error);
178
+ loading.close();
179
+ data.cb(false)
180
+ });
181
+ }
182
+
183
+ //获取广告位内容列表
184
+ if (action === 'getListContent') {
185
+ loading = XdBus.getParentApi('loading')({});
186
+ XdBus.getParentApi('getListNewsContent')(data.params)
187
+ .then(res => {
188
+ loading.close();
189
+ data.cb(res)
190
+ })
191
+ .catch(error => {
192
+ loading.close();
193
+ console.error(error);
194
+ });
195
+ }
196
+
197
+ //广告内容创建
198
+ if (action === 'addContent') {
199
+ loading = XdBus.getParentApi('loading')({});
200
+ XdBus.getParentApi('addNewsContent')(data.params)
201
+ .then(res => {
202
+ loading.close();
203
+ data.cb(true)
204
+ })
205
+ .catch(error => {
206
+ console.error(error);
207
+ loading.close();
208
+ data.cb(false)
209
+ });
210
+ }
211
+
212
+ //广告内容编辑
213
+ if (action === 'editContent') {
214
+ loading = XdBus.getParentApi('loading')({});
215
+ XdBus.getParentApi('updateNewsContent')(data.params)
216
+ .then(res => {
217
+ loading.close();
218
+ data.cb(true)
219
+ })
220
+ .catch(error => {
221
+ console.error(error);
222
+ loading.close();
223
+ data.cb(false)
224
+ });
225
+ }
226
+
227
+ //广告内容删除
228
+ if (action === 'deleteContent') {
229
+ loading = XdBus.getParentApi('loading')({});
230
+ XdBus.getParentApi('deleteNewsContent')(data.params)
231
+ .then(res => {
232
+ loading.close();
233
+ data.cb(true)
234
+ })
235
+ .catch(error => {
236
+ console.error(error);
237
+ loading.close();
238
+ data.cb(false)
239
+ });
240
+ }
241
+
242
+ //内容发布
243
+ if (action === 'publish') {
244
+ loading = XdBus.getParentApi('loading')({});
245
+ console.log('publish', data.params)
246
+ XdBus.getParentApi('cmsPublishContent')(data.params)
247
+ .then(res => {
248
+ loading.close();
249
+ data.cb(res)
250
+ })
251
+ .catch(error => {
252
+ loading.close();
253
+ console.error(error);
254
+ });
255
+ }
256
+
257
+ //通知页面进行刷新
258
+ if (action === 'update') {
259
+ loading = XdBus.getParentApi('loading')({});
260
+ XdBus.getParentApi('getXdBusUpdateView')('onUpdateView', {});
261
+ loading.close()
262
+ }
263
+ },
264
+ inline: false,
265
+ notice: '请配置温馨提示内容,未配置的情况将不显示此模块',
266
+ },
267
+ {
268
+ label: '票券已登录文案:',
269
+ ele: 'el-input',
270
+ type: 'text',
271
+ valueKey: 'logged_name',
272
+ groupKey:'content',
273
+ value: data.logged_name || '',
274
+ placeholder: '请输入票券已登录文案',
275
+ className: 'input80',
276
+ inline: false,
277
+ notice: '当未设置文案时候,前台页面显示为"<span style="color:red">已登录</span>",建议不超过<span style="color:red">4</span>个汉字'
278
+ },
279
+ {
280
+ label: "是否展示核销二维码",
281
+ ele: "xd-radio",
282
+ valueKey: "isShowCode",
283
+ groupKey:'content',
284
+ value: data.isShowCode || "Y",
285
+ list: [
286
+ {label: "展示", value: "Y"},
287
+ {label: "隐藏", value: "N"},
288
+ ]
289
+ },
290
+ {
291
+ label: "是否展示绑定卡区域",
292
+ ele: "xd-radio",
293
+ valueKey: "bindCard",
294
+ groupKey:'content',
295
+ value: data.bindCard || "1",
296
+ list: [
297
+ {label: "展示", value: "1"},
298
+ {label: "隐藏", value: "2"},
299
+ ]
300
+ },
301
+ {
302
+ label: "票券背景颜色:",
303
+ ele: "xd-color",
304
+ valueKey: "cardBgColor",
305
+ groupKey:'content',
306
+ value: data.cardBgColor || '#00BD68',
307
+ hidden: data.cardType !== 'style2'
308
+ },
309
+ {
310
+ label: "票券字体颜色:",
311
+ ele: "xd-color",
312
+ valueKey: "cardFontColor",
313
+ groupKey:'content',
314
+ value: data.cardFontColor || '#FFFFFF',
315
+ hidden: data.cardType !== 'style2'
316
+ },
317
+ {
318
+ label: '失效卡列表地址:',
319
+ ele: 'xd-select-pages-path',
320
+ valueKey: 'disabled_url',
321
+ groupKey:'advanced',
322
+ placeholder: '请选择失效卡列表地址',
323
+ value: data.disabled_url || null,
324
+ setting: {
325
+ router: XdBus.getParentApi('getPagesTree'),
326
+ },
327
+ inline: false,
328
+ },
329
+ {
330
+ label: '票券详情地址:',
331
+ ele: 'xd-select-pages-path',
332
+ valueKey: 'detail_url',
333
+ groupKey:'advanced',
334
+ placeholder: '请选择票券详情地址',
335
+ value: data.detail_url || null,
336
+ setting: {
337
+ router: XdBus.getParentApi('getPagesTree'),
338
+ },
339
+ inline: false,
340
+ },
341
+ {
342
+ label: '票券转换地址:',
343
+ ele: 'xd-select-pages-path',
344
+ valueKey: 'change_url',
345
+ groupKey:'advanced',
346
+ placeholder: '请选择票券转换地址',
347
+ value: data.change_url || null,
348
+ setting: {
349
+ router: XdBus.getParentApi('getPagesTree'),
350
+ },
351
+ inline: false,
352
+ },
353
+ {
354
+ label: '转赠中票券详情地址:',
355
+ ele: 'xd-select-pages-path',
356
+ valueKey: 'give_url',
357
+ groupKey:'advanced',
358
+ placeholder: '请选择转赠中票券详情地址',
359
+ value: data.give_url || null,
360
+ setting: {
361
+ router: XdBus.getParentApi('getPagesTree'),
362
+ },
363
+ inline: false,
364
+ },
365
+ {
366
+ label: '票券密码绑定地址:',
367
+ ele: 'xd-select-pages-path',
368
+ valueKey: 'bind_url',
369
+ groupKey:'advanced',
370
+ placeholder: '请选择票券密码绑定地址',
371
+ value: data.bind_url || null,
372
+ setting: {
373
+ router: XdBus.getParentApi('getPagesTree'),
374
+ },
375
+ inline: false,
376
+ },
377
+ {
378
+ label: '扫码绑定票券确认地址:',
379
+ ele: 'xd-select-pages-path',
380
+ valueKey: 'confirm_url',
381
+ groupKey:'advanced',
382
+ placeholder: '请选择扫码绑定票券确认地址',
383
+ value: data.confirm_url || null,
384
+ setting: {
385
+ router: XdBus.getParentApi('getPagesTree'),
386
+ },
387
+ inline: false,
388
+ },
389
+ {
390
+ ele: "title",
391
+ label: "我的优惠券样式配置",
392
+ size: "small",
393
+ groupKey: "style",
394
+ },
395
+ {
396
+ label: "是否切换到优惠券",
397
+ ele: "xd-radio",
398
+ valueKey: "isShowCoupon",
399
+ groupKey:'style',
400
+ value: data.isShowCoupon || "N",
401
+ list: [
402
+ {label: "是", value: "Y"},
403
+ {label: "否", value: "N"},
404
+ ]
405
+ },
406
+ {
407
+ label: "优惠券左侧背景色设置:",
408
+ ele: "xd-gradient-color",
409
+ valueKey: "couponLeftBgColor",
410
+ value: data.couponLeftBgColor || 'linear-gradient(180deg, #FFA852 0%, #FF5733 100%)',
411
+ groupKey:'content',
412
+ },
413
+ {
414
+ label: "圆角设置",
415
+ ele: 'xd-site-select-list',
416
+ valueKey: 'couponRadius',
417
+ value: data.couponRadius || 16,
418
+ groupKey:'style',
419
+ placeholder: '请选择内容圆角设置',
420
+ multiple: false,
421
+ className: 'input80',
422
+ handleCustom({ action, data }) {
423
+ XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
204
424
  .then(res => {
205
- loading.close();
206
- data.cb(true)
425
+ data.cb(res.list)
207
426
  })
208
427
  .catch(error => {
209
428
  console.error(error);
210
- loading.close();
211
- data.cb(false)
212
429
  });
213
- }
214
-
215
- //广告内容删除
216
- if (action === 'deleteContent') {
217
- loading = XdBus.getParentApi('loading')({});
218
- XdBus.getParentApi('deleteNewsContent')(data.params)
430
+ },
431
+ },
432
+ {
433
+ label: "优惠券标题背景颜色设置:",
434
+ ele: "xd-color",
435
+ valueKey: "couponTitleBgColor",
436
+ value: data.couponTitleBgColor || null,
437
+ groupKey:'style',
438
+ setting: {
439
+ showAlpha: true,
440
+ // isAlpha: true
441
+ },
442
+ },
443
+ {
444
+ label: "去使用按钮文字背景色设置: ",
445
+ ele: "xd-text-and-bgc",
446
+ groupKey:'style',
447
+ valueKey: "couponBtnTextStyle",
448
+ value: data.couponBtnTextStyle || null,
449
+ setting: {
450
+ fontSize: true, //字体大小选择
451
+ color: true, //文字颜色选项
452
+ bgColor: true, //背景选项
453
+ weight: true, //文字粗细
454
+ },
455
+ handleCustom({action, data}) {
456
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
219
457
  .then(res => {
220
- loading.close();
221
- data.cb(true)
458
+ data.cb(res.list)
222
459
  })
223
460
  .catch(error => {
224
461
  console.error(error);
225
- loading.close();
226
- data.cb(false)
462
+ data.cb([])
227
463
  });
228
- }
229
-
230
- //内容发布
231
- if (action === 'publish') {
232
- loading = XdBus.getParentApi('loading')({});
233
- console.log('publish', data.params)
234
- XdBus.getParentApi('cmsPublishContent')(data.params)
464
+ },
465
+ },
466
+ {
467
+ label: "按钮内边距设置:",
468
+ groupKey:'style',
469
+ ele: 'xd-margin-padding',
470
+ valueKey: 'couponUseBtnPadding',
471
+ value: data.couponUseBtnPadding || null,
472
+ setting: {
473
+ type: 'padding',
474
+ },
475
+ placeholder: '请设置边距',
476
+ inline: false,
477
+ notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
478
+ },
479
+ {
480
+ label: "按钮圆角设置",
481
+ ele: 'xd-site-select-list',
482
+ valueKey: 'couponBtnRadius',
483
+ value: data.couponBtnRadius || 16,
484
+ groupKey:'style',
485
+ placeholder: '请选择内容圆角设置',
486
+ multiple: false,
487
+ className: 'input80',
488
+ handleCustom({ action, data }) {
489
+ XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
235
490
  .then(res => {
236
- loading.close();
237
- data.cb(res)
491
+ data.cb(res.list)
238
492
  })
239
493
  .catch(error => {
240
- loading.close();
241
494
  console.error(error);
242
495
  });
243
- }
244
-
245
- //通知页面进行刷新
246
- if (action === 'update') {
247
- loading = XdBus.getParentApi('loading')({});
248
- XdBus.getParentApi('getXdBusUpdateView')('onUpdateView', {});
249
- loading.close()
250
- }
251
- },
252
- inline: false,
253
- notice: '请配置温馨提示内容,未配置的情况将不显示此模块',
254
- },
255
- {
256
- label: '票券已登录文案:',
257
- ele: 'el-input',
258
- type: 'text',
259
- valueKey: 'logged_name',
260
- groupKey:'content',
261
- value: '',
262
- placeholder: '请输入票券已登录文案',
263
- className: 'input80',
264
- inline: false,
265
- notice: '当未设置文案时候,前台页面显示为"<span style="color:red">已登录</span>",建议不超过<span style="color:red">4</span>个汉字'
266
- },
267
- {
268
- label: "是否展示核销二维码",
269
- ele: "xd-radio",
270
- valueKey: "isShowCode",
271
- groupKey:'content',
272
- value:"Y",
273
- list: [
274
- {label: "是", value: "Y"},
275
- {label: "否", value: "N"},
276
- ]
277
- },
278
- {
279
- label: "是否展示绑定卡区域",
280
- ele: "xd-radio",
281
- valueKey: "bindCard",
282
- groupKey:'content',
283
- value: "1",
284
- list: [
285
- {label: "是", value: "1"},
286
- {label: "否", value: "2"},
287
- ]
288
- },
289
- {
290
- label: '失效卡列表地址:',
291
- ele: 'xd-select-pages-path',
292
- valueKey: 'disabled_url',
293
- groupKey:'advanced',
294
- placeholder: '请选择失效卡列表地址',
295
- value: null,
296
- setting: {
297
- router: XdBus.getParentApi('getPagesTree'),
298
- },
299
- inline: false,
300
- },
301
- {
302
- label: '票券详情地址:',
303
- ele: 'xd-select-pages-path',
304
- valueKey: 'detail_url',
305
- groupKey:'advanced',
306
- placeholder: '请选择票券详情地址',
307
- value: null,
308
- setting: {
309
- router: XdBus.getParentApi('getPagesTree'),
310
- },
311
- inline: false,
312
- },
313
- {
314
- label: '票券转换地址:',
315
- ele: 'xd-select-pages-path',
316
- valueKey: 'change_url',
317
- groupKey:'advanced',
318
- placeholder: '请选择票券转换地址',
319
- value: null,
320
- setting: {
321
- router: XdBus.getParentApi('getPagesTree'),
322
- },
323
- inline: false,
324
- },
325
- {
326
- label: '转赠中票券详情地址:',
327
- ele: 'xd-select-pages-path',
328
- valueKey: 'give_url',
329
- groupKey:'advanced',
330
- placeholder: '请选择转赠中票券详情地址',
331
- value: null,
332
- setting: {
333
- router: XdBus.getParentApi('getPagesTree'),
334
- },
335
- inline: false,
336
- },
337
- {
338
- label: '票券密码绑定地址:',
339
- ele: 'xd-select-pages-path',
340
- valueKey: 'bind_url',
341
- groupKey:'advanced',
342
- placeholder: '请选择票券密码绑定地址',
343
- value: null,
344
- setting: {
345
- router: XdBus.getParentApi('getPagesTree'),
346
- },
347
- inline: false,
348
- },
349
- {
350
- label: '扫码绑定票券确认地址:',
351
- ele: 'xd-select-pages-path',
352
- valueKey: 'confirm_url',
353
- groupKey:'advanced',
354
- placeholder: '请选择扫码绑定票券确认地址',
355
- value: null,
356
- setting: {
357
- router: XdBus.getParentApi('getPagesTree'),
358
- },
359
- inline: false,
360
- },
361
- {
362
- ele: "title",
363
- label: "我的优惠券样式配置",
364
- size: "small",
365
- groupKey: "style",
366
- },
367
- {
368
- label: "是否切换到优惠券",
369
- ele: "xd-radio",
370
- valueKey: "isShowCoupon",
371
- groupKey:'style',
372
- value:"N",
373
- list: [
374
- {label: "是", value: "Y"},
375
- {label: "否", value: "N"},
376
- ]
377
- },
378
- {
379
- label: "优惠券左侧背景色设置:",
380
- ele: "xd-gradient-color",
381
- valueKey: "couponLeftBgColor",
382
- value: 'linear-gradient(180deg, #FFA852 0%, #FF5733 100%)',
383
- groupKey:'style',
384
- },
385
- {
386
- label: "圆角设置",
387
- ele: 'xd-site-select-list',
388
- valueKey: 'couponRadius',
389
- value: 16,
390
- groupKey:'style',
391
- placeholder: '请选择内容圆角设置',
392
- multiple: false,
393
- className: 'input80',
394
- handleCustom({ action, data }) {
395
- XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
396
- .then(res => {
397
- data.cb(res.list)
398
- })
399
- .catch(error => {
400
- console.error(error);
401
- });
402
- },
403
- },
404
- {
405
- label: "优惠券标题背景颜色设置:",
406
- ele: "xd-color",
407
- valueKey: "couponTitleBgColor",
408
- value: null,
409
- groupKey:'style',
410
- setting: {
411
- showAlpha: true,
412
- isAlpha: true
413
- },
414
- },
415
- {
416
- label: "去使用按钮文字背景色设置: ",
417
- ele: "xd-text-and-bgc",
418
- groupKey:'style',
419
- valueKey: "couponBtnTextStyle",
420
- value: null,
421
- setting: {
422
- fontSize: true, //字体大小选择
423
- color: true, //文字颜色选项
424
- bgColor: true, //背景选项
425
- weight: true, //文字粗细
426
- },
427
- handleCustom({action, data}) {
428
- XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
429
- .then(res => {
430
- data.cb(res.list)
431
- })
432
- .catch(error => {
433
- console.error(error);
434
- data.cb([])
435
- });
436
- },
437
- },
438
- {
439
- label: "按钮内边距设置:",
440
- groupKey:'style',
441
- ele: 'xd-margin-padding',
442
- valueKey: 'couponUseBtnPadding',
443
- value: null,
444
- setting: {
445
- type: 'padding',
446
- },
447
- placeholder: '请设置边距',
448
- inline: false,
449
- notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
450
- },
451
- {
452
- label: "按钮圆角设置",
453
- ele: 'xd-site-select-list',
454
- valueKey: 'couponBtnRadius',
455
- value: 16,
456
- groupKey:'style',
457
- placeholder: '请选择内容圆角设置',
458
- multiple: false,
459
- className: 'input80',
460
- handleCustom({ action, data }) {
461
- XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
462
- .then(res => {
463
- data.cb(res.list)
464
- })
465
- .catch(error => {
466
- console.error(error);
467
- });
496
+ },
468
497
  },
469
- },
470
- ],
498
+ ]
499
+ },
471
500
  };