jufubao-base 1.0.168 → 1.0.169-beta1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/components/JfbBaseLogin/Attr.js +1109 -510
- package/src/components/JfbBaseLogin/JfbBaseLogin.vue +364 -63
- package/src/components/JfbBaseTfkCardBind/Attr.js +579 -33
- package/src/components/JfbBaseTfkCardBind/JfbBaseTfkCardBind.vue +453 -18
- package/src/components/JfbBaseTfkCardDetail/Api.js +5 -44
- package/src/components/JfbBaseTfkCardDetail/Attr.js +365 -33
- package/src/components/JfbBaseTfkCardDetail/JfbBaseTfkCardDetail.vue +416 -15
- package/src/components/JfbBaseTfkCardDetail/Mock.js +151 -11
- package/src/components/JfbBaseTfkCardLogin/Api.js +19 -34
- package/src/components/JfbBaseTfkCardLogin/Attr.js +602 -33
- package/src/components/JfbBaseTfkCardLogin/JfbBaseTfkCardLogin.vue +582 -17
- package/src/components/JfbBaseTfkCardLogin/Mock.js +721 -11
|
@@ -8,49 +8,618 @@ export default {
|
|
|
8
8
|
content: (data) => {
|
|
9
9
|
return [
|
|
10
10
|
{
|
|
11
|
-
label:
|
|
12
|
-
ele: 'xd-
|
|
13
|
-
valueKey:
|
|
14
|
-
value: data.
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
{
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
11
|
+
label: "当前展示项(预览调试样式):",
|
|
12
|
+
ele: 'xd-radio',
|
|
13
|
+
valueKey: "previewCurrent",
|
|
14
|
+
value: data.previewCurrent || "card",
|
|
15
|
+
groupKey: "content",
|
|
16
|
+
list: [
|
|
17
|
+
{ label: '我的票券包', value: 'card' },
|
|
18
|
+
{ label: '我的优惠券', value: 'coupon' },
|
|
19
|
+
],
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
label: '公告内容:',
|
|
23
|
+
ele: 'xd-site-news',
|
|
24
|
+
valueKey: 'notice',
|
|
25
|
+
groupKey:'content',
|
|
26
|
+
value: data.notice || null,
|
|
27
|
+
className: 'input70',
|
|
28
|
+
setting: {
|
|
29
|
+
config: {
|
|
30
|
+
sort: true,
|
|
31
|
+
maxlen: 100,
|
|
32
|
+
action: 'aliyun',
|
|
33
|
+
size: 5,
|
|
34
|
+
tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
|
|
35
|
+
uploadType: 'aliyun',
|
|
36
|
+
type: ['jpg', 'png', 'jpeg']
|
|
22
37
|
},
|
|
23
|
-
|
|
38
|
+
},
|
|
39
|
+
handleCustom({action, data}) {
|
|
40
|
+
if (data && data.params) {
|
|
41
|
+
//当一个插件中出现使用内容分类时候需要设置code值,在页面引用时候容器id + code进行拼接
|
|
42
|
+
//data.params = Object.assign({}, data.params, {code: 'g_test_id'});
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
//获取返回参数(场景类型名称为必填)
|
|
46
|
+
//获取返回参数(场景类型名称为必填)
|
|
47
|
+
let loading = { close(){}}
|
|
48
|
+
|
|
49
|
+
//获取显示内容
|
|
50
|
+
if (action === 'screen') {
|
|
51
|
+
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_bucket_content_tip'})
|
|
52
|
+
.then(res => {
|
|
53
|
+
loading.close();
|
|
54
|
+
data.cb(res['list'])
|
|
55
|
+
})
|
|
56
|
+
.catch(error => {
|
|
57
|
+
console.error(error);
|
|
58
|
+
loading.close();
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
//获取返回参数(广告位高度必选项)
|
|
64
|
+
if (action === 'getNewsInfo') {
|
|
65
|
+
XdBus.getParentApi('cmsGetPublishEditxContent')(data.params)
|
|
66
|
+
.then(res => {
|
|
67
|
+
loading.close()
|
|
68
|
+
data.cb({list: res.list, selectId: res.selected})
|
|
69
|
+
})
|
|
70
|
+
.catch(error => {
|
|
71
|
+
loading.close()
|
|
72
|
+
console.error(error);
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
//获取产品业务线列表
|
|
77
|
+
if (action === 'namespace') {
|
|
78
|
+
XdBus.getParentApi('getOptionsNamespaces')({})
|
|
79
|
+
.then(res => {
|
|
80
|
+
loading.close()
|
|
81
|
+
data.cb(res['list'])
|
|
82
|
+
})
|
|
83
|
+
.catch(error => {
|
|
84
|
+
loading.close()
|
|
85
|
+
console.error(error);
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
//使用内容分类
|
|
90
|
+
if (action === 'cmsPublishEditxContent') {
|
|
91
|
+
loading = XdBus.getParentApi('loading')({});
|
|
92
|
+
XdBus.getParentApi('cmsPublishEditxContent')(data.params)
|
|
93
|
+
.then(res => {
|
|
94
|
+
console.log('cmsPublishEditxContent', res)
|
|
95
|
+
loading.close();
|
|
96
|
+
data.cb(res)
|
|
97
|
+
})
|
|
98
|
+
.catch(error => {
|
|
99
|
+
loading.close();
|
|
100
|
+
console.error(error);
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
//位置列表
|
|
105
|
+
if (action === 'getListPostion') {
|
|
106
|
+
loading = XdBus.getParentApi('loading')({});
|
|
107
|
+
XdBus.getParentApi('getListNewsPosition')(data.params)
|
|
108
|
+
.then(res => {
|
|
109
|
+
loading.close();
|
|
110
|
+
data.cb(res)
|
|
111
|
+
})
|
|
112
|
+
.catch(error => {
|
|
113
|
+
loading.close();
|
|
114
|
+
console.error(error);
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
//位置创建
|
|
119
|
+
if (action === 'addPostion') {
|
|
120
|
+
loading = XdBus.getParentApi('loading')({});
|
|
121
|
+
XdBus.getParentApi('addNewsPosition')(data.params)
|
|
122
|
+
.then(res => {
|
|
123
|
+
loading.close();
|
|
124
|
+
data.cb(true)
|
|
125
|
+
})
|
|
126
|
+
.catch(error => {
|
|
127
|
+
console.error(error);
|
|
128
|
+
loading.close();
|
|
129
|
+
data.cb(false)
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
//位置编辑
|
|
134
|
+
if (action === 'editPostion') {
|
|
135
|
+
loading = XdBus.getParentApi('loading')({});
|
|
136
|
+
XdBus.getParentApi('updateNewsPosition')(data.params)
|
|
137
|
+
.then(res => {
|
|
138
|
+
loading.close();
|
|
139
|
+
data.cb(true)
|
|
140
|
+
})
|
|
141
|
+
.catch(error => {
|
|
142
|
+
console.error(error);
|
|
143
|
+
loading.close();
|
|
144
|
+
data.cb(false)
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
//位置删除
|
|
149
|
+
if (action === 'deleltePostion') {
|
|
150
|
+
loading = XdBus.getParentApi('loading')({});
|
|
151
|
+
XdBus.getParentApi('deleteNewsPosition')(data.params)
|
|
152
|
+
.then(res => {
|
|
153
|
+
loading.close();
|
|
154
|
+
data.cb(true)
|
|
155
|
+
})
|
|
156
|
+
.catch(error => {
|
|
157
|
+
console.error(error);
|
|
158
|
+
loading.close();
|
|
159
|
+
data.cb(false)
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
//获取广告位内容列表
|
|
164
|
+
if (action === 'getListContent') {
|
|
165
|
+
loading = XdBus.getParentApi('loading')({});
|
|
166
|
+
XdBus.getParentApi('getListNewsContent')(data.params)
|
|
167
|
+
.then(res => {
|
|
168
|
+
loading.close();
|
|
169
|
+
data.cb(res)
|
|
170
|
+
})
|
|
171
|
+
.catch(error => {
|
|
172
|
+
loading.close();
|
|
173
|
+
console.error(error);
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
//广告内容创建
|
|
178
|
+
if (action === 'addContent') {
|
|
179
|
+
loading = XdBus.getParentApi('loading')({});
|
|
180
|
+
XdBus.getParentApi('addNewsContent')(data.params)
|
|
181
|
+
.then(res => {
|
|
182
|
+
loading.close();
|
|
183
|
+
data.cb(true)
|
|
184
|
+
})
|
|
185
|
+
.catch(error => {
|
|
186
|
+
console.error(error);
|
|
187
|
+
loading.close();
|
|
188
|
+
data.cb(false)
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
//广告内容编辑
|
|
193
|
+
if (action === 'editContent') {
|
|
194
|
+
loading = XdBus.getParentApi('loading')({});
|
|
195
|
+
XdBus.getParentApi('updateNewsContent')(data.params)
|
|
196
|
+
.then(res => {
|
|
197
|
+
loading.close();
|
|
198
|
+
data.cb(true)
|
|
199
|
+
})
|
|
200
|
+
.catch(error => {
|
|
201
|
+
console.error(error);
|
|
202
|
+
loading.close();
|
|
203
|
+
data.cb(false)
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
//广告内容删除
|
|
208
|
+
if (action === 'deleteContent') {
|
|
209
|
+
loading = XdBus.getParentApi('loading')({});
|
|
210
|
+
XdBus.getParentApi('deleteNewsContent')(data.params)
|
|
211
|
+
.then(res => {
|
|
212
|
+
loading.close();
|
|
213
|
+
data.cb(true)
|
|
214
|
+
})
|
|
215
|
+
.catch(error => {
|
|
216
|
+
console.error(error);
|
|
217
|
+
loading.close();
|
|
218
|
+
data.cb(false)
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
//内容发布
|
|
223
|
+
if (action === 'publish') {
|
|
224
|
+
loading = XdBus.getParentApi('loading')({});
|
|
225
|
+
console.log('publish', data.params)
|
|
226
|
+
XdBus.getParentApi('cmsPublishContent')(data.params)
|
|
227
|
+
.then(res => {
|
|
228
|
+
loading.close();
|
|
229
|
+
data.cb(res)
|
|
230
|
+
})
|
|
231
|
+
.catch(error => {
|
|
232
|
+
loading.close();
|
|
233
|
+
console.error(error);
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
//通知页面进行刷新
|
|
238
|
+
if (action === 'update') {
|
|
239
|
+
loading = XdBus.getParentApi('loading')({});
|
|
240
|
+
XdBus.getParentApi('getXdBusUpdateView')('onUpdateView', {});
|
|
241
|
+
loading.close()
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
ele: "title",
|
|
247
|
+
label: "我的票券包内容配置",
|
|
248
|
+
size: "small",
|
|
249
|
+
groupKey: "content",
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
label: '票券背景图:',
|
|
253
|
+
ele: 'xd-upload',
|
|
254
|
+
valueKey: 'cardImageUrl',
|
|
255
|
+
groupKey:'content',
|
|
256
|
+
value: data.cardImageUrl || {},
|
|
257
|
+
defaultValue: data.cardImageUrl || null,
|
|
258
|
+
slot: true,
|
|
259
|
+
oneWidth: 350,
|
|
260
|
+
oneHeight: 137,
|
|
261
|
+
elinputClassName: 'input40',
|
|
262
|
+
tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
|
|
263
|
+
type: ['jpg', 'png', 'jpeg'],
|
|
264
|
+
styleType: 'one',
|
|
265
|
+
uploadType: 'aliyun',
|
|
266
|
+
size: 5,
|
|
267
|
+
action: 'action',
|
|
268
|
+
sort: true,
|
|
269
|
+
maxlen: 100,
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
ele: "title",
|
|
273
|
+
label: "我的优惠券内容配置",
|
|
274
|
+
size: "small",
|
|
275
|
+
groupKey: "content",
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
label: '优惠券背景图:',
|
|
279
|
+
ele: 'xd-upload',
|
|
280
|
+
valueKey: 'couponImageUrl',
|
|
281
|
+
groupKey:'content',
|
|
282
|
+
value: data.couponImageUrl || {},
|
|
283
|
+
defaultValue: data.couponImageUrl || null,
|
|
284
|
+
slot: true,
|
|
285
|
+
oneWidth: 265,
|
|
286
|
+
oneHeight: 150,
|
|
287
|
+
elinputClassName: 'input40',
|
|
288
|
+
tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
|
|
289
|
+
type: ['jpg', 'png', 'jpeg'],
|
|
290
|
+
styleType: 'one',
|
|
291
|
+
uploadType: 'aliyun',
|
|
292
|
+
size: 5,
|
|
293
|
+
action: 'action',
|
|
294
|
+
sort: true,
|
|
295
|
+
maxlen: 100,
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
ele: "title",
|
|
299
|
+
label: "列表容器配置",
|
|
300
|
+
size: "small",
|
|
301
|
+
groupKey: "style",
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
label: "列表容器内边距设置:",
|
|
305
|
+
groupKey:'style',
|
|
306
|
+
ele: 'xd-margin-padding',
|
|
307
|
+
valueKey: 'cardListPadding',
|
|
308
|
+
value: data.cardListPadding || {top: 20, left: 20, right: 20, bottom: 20},
|
|
309
|
+
setting: {
|
|
310
|
+
type: 'padding',
|
|
311
|
+
},
|
|
312
|
+
placeholder: '请设置边距',
|
|
313
|
+
inline: false,
|
|
314
|
+
notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
label: "列表间距设置:",
|
|
318
|
+
groupKey:'style',
|
|
319
|
+
ele: 'el-input',
|
|
320
|
+
valueKey: 'cardItemMargin',
|
|
321
|
+
value: data.cardItemMargin || 20,
|
|
322
|
+
type: "number",
|
|
323
|
+
className: "input40",
|
|
324
|
+
placeholder: '请输入列表间距',
|
|
325
|
+
inline: false,
|
|
326
|
+
notice: '设置列表间距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
ele: "title",
|
|
330
|
+
label: "标题菜单配置",
|
|
331
|
+
size: "small",
|
|
332
|
+
groupKey: "style",
|
|
24
333
|
},
|
|
25
334
|
{
|
|
26
|
-
label: '
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
335
|
+
label: '菜单容器内边距设置:',
|
|
336
|
+
groupKey:'style',
|
|
337
|
+
ele: 'xd-margin-padding',
|
|
338
|
+
valueKey: 'menuPadding',
|
|
339
|
+
value: data.menuPadding || null,
|
|
30
340
|
setting: {
|
|
31
|
-
|
|
341
|
+
type: 'padding',
|
|
32
342
|
},
|
|
343
|
+
placeholder: '请设置边距',
|
|
344
|
+
inline: false,
|
|
345
|
+
notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
|
|
33
346
|
},
|
|
34
|
-
|
|
35
|
-
label: '
|
|
347
|
+
{
|
|
348
|
+
label: '菜单单项内边距设置:',
|
|
349
|
+
groupKey:'style',
|
|
350
|
+
ele: 'xd-margin-padding',
|
|
351
|
+
valueKey: 'menuBtnPadding',
|
|
352
|
+
value: data.menuBtnPadding || null,
|
|
353
|
+
setting: {
|
|
354
|
+
type: 'padding',
|
|
355
|
+
},
|
|
356
|
+
placeholder: '请设置边距',
|
|
357
|
+
inline: false,
|
|
358
|
+
notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
label: "菜单间距设置:",
|
|
362
|
+
groupKey:'style',
|
|
36
363
|
ele: 'el-input',
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
364
|
+
valueKey: 'menuItemMargin',
|
|
365
|
+
value: data.menuItemMargin || 20,
|
|
366
|
+
type: "number",
|
|
367
|
+
className: "input40",
|
|
368
|
+
placeholder: '请输入菜单间距',
|
|
369
|
+
inline: false,
|
|
370
|
+
notice: '设置菜单间距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">40</span>像素',
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
label: '文字背景颜色设置:',
|
|
374
|
+
ele: 'xd-text-and-bgc',
|
|
375
|
+
groupKey:'style',
|
|
376
|
+
valueKey: 'menuTabColor',
|
|
377
|
+
value: data['menuTabColor'] || null,
|
|
378
|
+
setting: {
|
|
379
|
+
fontSize: true, //字体大小选择
|
|
380
|
+
color: true, //文字颜色选项
|
|
381
|
+
bgColor: true, //背景选项
|
|
382
|
+
weight: true, //文字粗细
|
|
383
|
+
},
|
|
384
|
+
handleCustom({action, data}) {
|
|
385
|
+
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
|
|
386
|
+
.then(res => {
|
|
387
|
+
data.cb(res.list)
|
|
388
|
+
})
|
|
389
|
+
.catch(error => {
|
|
390
|
+
console.error(error);
|
|
391
|
+
data.cb([])
|
|
392
|
+
});
|
|
393
|
+
},
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
label: "菜单底部横线粗细:",
|
|
397
|
+
ele: "el-input",
|
|
398
|
+
valueKey: "menuBorderWidth",
|
|
399
|
+
value: data.menuBorderWidth || 1,
|
|
400
|
+
groupKey: "style",
|
|
401
|
+
type: "number",
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
label: "右侧图标(跳转票券绑定):",
|
|
405
|
+
ele: "xd-font",
|
|
406
|
+
valueKey: "bindCardIcon",
|
|
407
|
+
value: data.bindCardIcon || {},
|
|
408
|
+
groupKey:'style',
|
|
409
|
+
setting: {
|
|
410
|
+
align: false,
|
|
411
|
+
lineHeight: false,
|
|
412
|
+
icon: true,
|
|
413
|
+
weight: false,
|
|
414
|
+
},
|
|
415
|
+
handleCustom({action, data}) {
|
|
416
|
+
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
|
|
417
|
+
.then(res => {
|
|
418
|
+
data.cb(res.list)
|
|
419
|
+
})
|
|
420
|
+
.catch(error => {
|
|
421
|
+
data.cb([])
|
|
422
|
+
console.error(error);
|
|
423
|
+
});
|
|
424
|
+
},
|
|
425
|
+
inline: false,
|
|
426
|
+
notice: '填充设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
ele: "title",
|
|
430
|
+
label: "我的票券包样式配置",
|
|
431
|
+
size: "small",
|
|
432
|
+
groupKey: "style",
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
label: "单项内边距设置:",
|
|
436
|
+
groupKey:'style',
|
|
437
|
+
ele: 'xd-margin-padding',
|
|
438
|
+
valueKey: 'cardPadding',
|
|
439
|
+
value: data.cardPadding || null,
|
|
440
|
+
setting: {
|
|
441
|
+
type: 'padding',
|
|
442
|
+
},
|
|
443
|
+
placeholder: '请设置边距',
|
|
444
|
+
inline: false,
|
|
445
|
+
notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
label: "圆角设置",
|
|
449
|
+
ele: 'xd-site-select-list',
|
|
450
|
+
valueKey: 'cardRadius',
|
|
451
|
+
value: data['cardRadius'] || 16,
|
|
452
|
+
groupKey:'style',
|
|
453
|
+
placeholder: '请选择内容圆角设置',
|
|
454
|
+
multiple: false,
|
|
41
455
|
className: 'input80',
|
|
42
|
-
|
|
43
|
-
{
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
456
|
+
handleCustom({ action, data }) {
|
|
457
|
+
XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
|
|
458
|
+
.then(res => {
|
|
459
|
+
data.cb(res.list)
|
|
460
|
+
})
|
|
461
|
+
.catch(error => {
|
|
462
|
+
console.error(error);
|
|
463
|
+
});
|
|
464
|
+
},
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
label: "登录按钮文字背景色设置:",
|
|
468
|
+
ele: "xd-text-and-bgc",
|
|
469
|
+
groupKey:'style',
|
|
470
|
+
valueKey: "cardBtnTextStyle",
|
|
471
|
+
value: data.cardBtnTextStyle || null,
|
|
472
|
+
setting: {
|
|
473
|
+
fontSize: true, //字体大小选择
|
|
474
|
+
color: true, //文字颜色选项
|
|
475
|
+
bgColor: true, //背景选项
|
|
476
|
+
weight: true, //文字粗细
|
|
477
|
+
},
|
|
478
|
+
handleCustom({action, data}) {
|
|
479
|
+
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
|
|
480
|
+
.then(res => {
|
|
481
|
+
data.cb(res.list)
|
|
482
|
+
})
|
|
483
|
+
.catch(error => {
|
|
484
|
+
console.error(error);
|
|
485
|
+
data.cb([])
|
|
486
|
+
});
|
|
487
|
+
},
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
label: "登录按钮圆角设置",
|
|
491
|
+
ele: 'xd-site-select-list',
|
|
492
|
+
valueKey: 'cardBtnRadius',
|
|
493
|
+
value: data['cardBtnRadius'] || 16,
|
|
494
|
+
groupKey:'style',
|
|
495
|
+
placeholder: '请选择内容圆角设置',
|
|
496
|
+
multiple: false,
|
|
497
|
+
className: 'input80',
|
|
498
|
+
handleCustom({ action, data }) {
|
|
499
|
+
XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
|
|
500
|
+
.then(res => {
|
|
501
|
+
data.cb(res.list)
|
|
502
|
+
})
|
|
503
|
+
.catch(error => {
|
|
504
|
+
console.error(error);
|
|
505
|
+
});
|
|
506
|
+
},
|
|
507
|
+
},
|
|
508
|
+
{
|
|
509
|
+
label: "登录按钮内边距设置:",
|
|
510
|
+
groupKey:'style',
|
|
511
|
+
ele: 'xd-margin-padding',
|
|
512
|
+
valueKey: 'cardBtnPadding',
|
|
513
|
+
value: data.cardBtnPadding || null,
|
|
514
|
+
setting: {
|
|
515
|
+
type: 'padding',
|
|
516
|
+
},
|
|
517
|
+
placeholder: '请设置边距',
|
|
518
|
+
inline: false,
|
|
519
|
+
notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
ele: "title",
|
|
523
|
+
label: "我的优惠券样式配置",
|
|
524
|
+
size: "small",
|
|
525
|
+
groupKey: "style",
|
|
526
|
+
},
|
|
527
|
+
{
|
|
528
|
+
label: "圆角设置",
|
|
529
|
+
ele: 'xd-site-select-list',
|
|
530
|
+
valueKey: 'couponRadius',
|
|
531
|
+
value: data['couponRadius'] || 16,
|
|
532
|
+
groupKey:'style',
|
|
533
|
+
placeholder: '请选择内容圆角设置',
|
|
534
|
+
multiple: false,
|
|
535
|
+
className: 'input80',
|
|
536
|
+
handleCustom({ action, data }) {
|
|
537
|
+
XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
|
|
538
|
+
.then(res => {
|
|
539
|
+
data.cb(res.list)
|
|
540
|
+
})
|
|
541
|
+
.catch(error => {
|
|
542
|
+
console.error(error);
|
|
543
|
+
});
|
|
544
|
+
},
|
|
545
|
+
},
|
|
546
|
+
{
|
|
547
|
+
label: "优惠券标题背景颜色设置:",
|
|
548
|
+
ele: "xd-color",
|
|
549
|
+
valueKey: "couponTitleBgColor",
|
|
550
|
+
value: data.couponTitleBgColor || null,
|
|
551
|
+
groupKey:'style',
|
|
552
|
+
setting: {
|
|
553
|
+
showAlpha: true,
|
|
554
|
+
isAlpha: true
|
|
555
|
+
}
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
label: "去使用按钮文字背景色设置: ",
|
|
559
|
+
ele: "xd-text-and-bgc",
|
|
560
|
+
groupKey:'style',
|
|
561
|
+
valueKey: "couponBtnTextStyle",
|
|
562
|
+
value: data.couponBtnTextStyle || null,
|
|
563
|
+
setting: {
|
|
564
|
+
fontSize: true, //字体大小选择
|
|
565
|
+
color: true, //文字颜色选项
|
|
566
|
+
bgColor: true, //背景选项
|
|
567
|
+
weight: true, //文字粗细
|
|
568
|
+
},
|
|
569
|
+
handleCustom({action, data}) {
|
|
570
|
+
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
|
|
571
|
+
.then(res => {
|
|
572
|
+
data.cb(res.list)
|
|
573
|
+
})
|
|
574
|
+
.catch(error => {
|
|
575
|
+
console.error(error);
|
|
576
|
+
data.cb([])
|
|
577
|
+
});
|
|
578
|
+
},
|
|
579
|
+
},
|
|
580
|
+
{
|
|
581
|
+
label: "按钮内边距设置:",
|
|
582
|
+
groupKey:'style',
|
|
583
|
+
ele: 'xd-margin-padding',
|
|
584
|
+
valueKey: 'couponUseBtnPadding',
|
|
585
|
+
value: data.couponUseBtnPadding || null,
|
|
586
|
+
setting: {
|
|
587
|
+
type: 'padding',
|
|
588
|
+
},
|
|
589
|
+
placeholder: '请设置边距',
|
|
590
|
+
inline: false,
|
|
591
|
+
notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
|
|
49
592
|
},
|
|
50
593
|
{
|
|
51
|
-
label:
|
|
52
|
-
ele: '
|
|
53
|
-
|
|
594
|
+
label: "按钮圆角设置",
|
|
595
|
+
ele: 'xd-site-select-list',
|
|
596
|
+
valueKey: 'couponBtnRadius',
|
|
597
|
+
value: data['couponBtnRadius'] || 16,
|
|
598
|
+
groupKey:'style',
|
|
599
|
+
placeholder: '请选择内容圆角设置',
|
|
600
|
+
multiple: false,
|
|
601
|
+
className: 'input80',
|
|
602
|
+
handleCustom({ action, data }) {
|
|
603
|
+
XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
|
|
604
|
+
.then(res => {
|
|
605
|
+
data.cb(res.list)
|
|
606
|
+
})
|
|
607
|
+
.catch(error => {
|
|
608
|
+
console.error(error);
|
|
609
|
+
});
|
|
610
|
+
},
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
label: '票券绑定跳转路径:', //label
|
|
614
|
+
ele: 'xd-select-pages-path', //package 名称
|
|
615
|
+
valueKey: 'cardBindPath', //form[valueKey]
|
|
616
|
+
placeholder: '请选择跳转路径',
|
|
617
|
+
value: data.cardBindPath || null,
|
|
618
|
+
groupKey:'advanced',
|
|
619
|
+
setting: {
|
|
620
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
621
|
+
},
|
|
622
|
+
inline: false,
|
|
54
623
|
},
|
|
55
624
|
].filter(i=>i)
|
|
56
625
|
},
|