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.
@@ -8,50 +8,382 @@ export default {
8
8
  content: (data) => {
9
9
  return [
10
10
  {
11
- label: '背景颜色:',
11
+ label: "展示模块(预览调试样式)",
12
+ ele: 'xd-radio',
13
+ valueKey: "previewCurrent",
14
+ value: data.previewCurrent || "main",
15
+ groupKey: "content",
16
+ list: [
17
+ { label: '票券信息', value: 'main' },
18
+ { label: '规则信息', value: 'rule' },
19
+ { label: "提货券", value: "pickup" },
20
+ ],
21
+ },
22
+ {
23
+ label: '服务展示',
24
+ ele: "xd-radio",
25
+ valueKey: "showBusinessList",
26
+ value: data.showBusinessList || 'Y',
27
+ groupKey: 'content',
28
+ list: [
29
+ { label: "隐藏业务线", value: "N" },
30
+ { label: "展示业务线", value: "Y" }
31
+ ],
32
+ },
33
+ {
34
+ label: '票券背景图:',
35
+ ele: 'xd-upload',
36
+ valueKey: 'cardImageUrl',
37
+ groupKey:'content',
38
+ value: data.cardImageUrl || {},
39
+ defaultValue: data.cardImageUrl || null,
40
+ slot: true,
41
+ oneWidth: 350,
42
+ oneHeight: 137,
43
+ elinputClassName: 'input40',
44
+ tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
45
+ type: ['jpg', 'png', 'jpeg'],
46
+ styleType: 'one',
47
+ uploadType: 'aliyun',
48
+ size: 5,
49
+ action: 'action',
50
+ sort: true,
51
+ maxlen: 100,
52
+ },
53
+ {
54
+ label: "票券信息样式配置",
55
+ ele: "title",
56
+ size: "small",
57
+ groupKey: 'style',
58
+ },
59
+ {
60
+ label: "字体颜色",
12
61
  ele: 'xd-color',
13
- valueKey: 'bgcolor',
14
- value: data.bgcolor || '',
15
- placeholder: '请输入占位框背景颜色',
16
- classNmae: 'input80',
17
- rules: [
18
- {
19
- required: true,
20
- message: '请输入占位框背景颜色',
21
- trigger: 'blur'
22
- },
23
- ]
62
+ valueKey: 'cardFontColor',
63
+ value: data.cardFontColor || '#303133',
64
+ groupKey:'style',
24
65
  },
25
66
  {
26
- label: '选中路径:',
27
- ele: 'xd-select-pages-path',
28
- valueKey: 'select-pages-path',
29
- value: data['select-pages-path'] || null,
67
+ label: "外边距设置",
68
+ groupKey:'style',
69
+ ele: 'xd-margin-padding',
70
+ valueKey: 'cardInfoMargin',
71
+ value: data.cardInfoMargin || {
72
+ top: 20,
73
+ left: 20,
74
+ right: 20,
75
+ bottom: 20
76
+ },
30
77
  setting: {
31
- router: XdBus.getParentApi('getPagesTree')
78
+ type: 'padding',
32
79
  },
80
+ placeholder: '请设置边距',
81
+ inline: false,
82
+ notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
33
83
  },
34
- data.bgcolor && {
35
- label: '高度:',
36
- ele: 'el-input',
84
+ {
85
+ label: "内边距设置",
86
+ groupKey:'style',
87
+ ele: 'xd-margin-padding',
88
+ valueKey: 'cardInfoPadding',
89
+ value: data.cardInfoPadding || {
90
+ top: 20,
91
+ left: 20,
92
+ right: 20,
93
+ bottom: 20
94
+ },
95
+ setting: {
96
+ type: 'padding',
97
+ },
98
+ placeholder: '请设置内边距',
99
+ inline: false,
100
+ notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
101
+ },
102
+ {
103
+ label: "票券高度",
104
+ ele: "el-input",
105
+ valueKey: 'cardHeight',
106
+ value: data.cardHeight || 260,
37
107
  type: 'number',
38
- valueKey: 'height',
39
- value: data.height || 100,
40
- placeholder: '请输入占位框高度,单位像素,默认:10px',
108
+ groupKey:'style',
109
+ placeholder: "请输入票券高度",
110
+ },
111
+ {
112
+ label: "票券圆角",
113
+ ele: 'xd-site-select-list',
114
+ valueKey: 'cardRadius',
115
+ value: data['cardRadius'] || 16,
116
+ groupKey:'style',
117
+ placeholder: '请选择内容圆角设置',
118
+ multiple: false,
41
119
  className: 'input80',
42
- rules: [
43
- {
44
- required: true,
45
- message: '请输入占位框高度',
46
- trigger: 'blur'
47
- },
48
- ]
120
+ handleCustom({ action, data }) {
121
+ XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
122
+ .then(res => {
123
+ data.cb(res.list)
124
+ })
125
+ .catch(error => {
126
+ console.error(error);
127
+ });
128
+ },
129
+ },
130
+ {
131
+ label: "业务板块样式配置",
132
+ ele: 'title',
133
+ size: 'small',
134
+ groupKey: 'style',
135
+ },
136
+ {
137
+ label: "业务板块外边距",
138
+ groupKey:'style',
139
+ ele: 'xd-margin-padding',
140
+ valueKey: 'bussTempMargin',
141
+ value: data.bussTempMargin || {
142
+ top: 30,
143
+ left: 0,
144
+ right: 0,
145
+ bottom: 0
146
+ },
147
+ setting: {
148
+ type: 'padding',
149
+ },
150
+ placeholder: '请设置内边距',
151
+ inline: false,
152
+ notice: '设置内边距,<span style="color: red">单位:像素</span>。',
153
+ },
154
+ {
155
+ label: "业务板块容器内边距",
156
+ groupKey:'style',
157
+ ele: 'xd-margin-padding',
158
+ valueKey: 'bussPadding',
159
+ value: data.bussPadding || {
160
+ top: 10,
161
+ left: 20,
162
+ right: 20,
163
+ bottom: 20
164
+ },
165
+ setting: {
166
+ type: 'padding',
167
+ },
168
+ placeholder: '请设置内边距',
169
+ inline: false,
170
+ notice: '设置内边距,<span style="color: red">单位:像素</span>。',
49
171
  },
50
172
  {
51
- label: '', //label
52
- ele: 'slot', //package 名称
53
- slot: 'is_reference',
173
+ label: "业务板块背景色",
174
+ groupKey:'style',
175
+ ele: 'xd-color',
176
+ valueKey: 'bussTempBgColor',
177
+ value: data.bussTempBgColor || '#ffffff',
54
178
  },
179
+ {
180
+ label: "单项业务外边距",
181
+ groupKey:'style',
182
+ ele: 'xd-margin-padding',
183
+ valueKey: 'bussMargin',
184
+ value: data.bussMargin || {
185
+ top: 30,
186
+ left: 30,
187
+ right: 30,
188
+ bottom: 30
189
+ },
190
+ setting: {
191
+ type: 'margin',
192
+ },
193
+ placeholder: '请设置外边距',
194
+ inline: false,
195
+ notice: '设置外边距,<span style="color: red">单位:像素</span>。',
196
+ },
197
+ {
198
+ label: "单项业务宽度",
199
+ groupKey:'style',
200
+ ele: 'el-input',
201
+ valueKey: 'bussWidth',
202
+ value: data.bussWidth || 100,
203
+ type: "number",
204
+ className: 'input70',
205
+ placeholder: "请输入单项业务宽度",
206
+ },
207
+ {
208
+ label: "使用规则、提货码样式配置",
209
+ ele: 'title',
210
+ size: 'small',
211
+ groupKey:'style',
212
+ },
213
+ {
214
+ label: "外边距",
215
+ groupKey:'style',
216
+ ele: 'xd-margin-padding',
217
+ valueKey: 'listColMargin',
218
+ value: data.listColMargin || {
219
+ top: 40,
220
+ left: 0,
221
+ right: 0,
222
+ bottom: 15
223
+ },
224
+ setting: {
225
+ type: 'margin',
226
+ },
227
+ placeholder: '请设置外边距',
228
+ inline: false,
229
+ notice: '设置外边距,<span style="color: red">单位:像素</span>。',
230
+ },
231
+ {
232
+ label: "单项内边距",
233
+ groupKey:'style',
234
+ ele: 'xd-margin-padding',
235
+ valueKey: 'listColPadding',
236
+ value: data.listColPadding || {
237
+ top: 20,
238
+ left: 20,
239
+ right: 20,
240
+ bottom: 20
241
+ },
242
+ setting: {
243
+ type: 'padding',
244
+ },
245
+ placeholder: '请设置内边距',
246
+ inline: false,
247
+ notice: '设置内边距,<span style="color: red">单位:像素</span>。'
248
+ },
249
+ {
250
+ label: "单项间隔距离",
251
+ ele: "el-input",
252
+ valueKey: 'listColSpace',
253
+ value: data.listColSpace || 10,
254
+ groupKey: 'style',
255
+ type: "number",
256
+ className: 'input70',
257
+ placeholder: "请输入间隔距离",
258
+ },
259
+ {
260
+ label: "提货码详情样式配置",
261
+ ele: 'title',
262
+ size: 'small',
263
+ groupKey:'style',
264
+ },
265
+ {
266
+ label: "提货码详情外边距",
267
+ groupKey:'style',
268
+ ele: 'xd-margin-padding',
269
+ valueKey: 'codeDetailMargin',
270
+ value: data.codeDetailMargin || {
271
+ top: 30,
272
+ left: 20,
273
+ right: 20,
274
+ bottom: 30
275
+ },
276
+ setting: {
277
+ type: 'margin',
278
+ },
279
+ placeholder: '请设置外边距',
280
+ inline: false,
281
+ notice: '设置外边距,<span style="color: red">单位:像素</span>'
282
+ },
283
+ {
284
+ label: "提货码详情内边距",
285
+ groupKey:'style',
286
+ ele: 'xd-margin-padding',
287
+ valueKey: 'codeDetailPadding',
288
+ value: data.codeDetailPadding || {
289
+ top: 20,
290
+ left: 20,
291
+ right: 20,
292
+ bottom: 20
293
+ },
294
+ setting: {
295
+ type: 'padding',
296
+ },
297
+ placeholder: '请设置内边距',
298
+ inline: false,
299
+ notice: '设置外边距,<span style="color: red">单位:像素</span>'
300
+ },
301
+ {
302
+ label: "提货码详情背景色",
303
+ groupKey:'style',
304
+ ele: 'xd-color',
305
+ valueKey: 'codeDetailBgColor',
306
+ value: data.codeDetailBgColor || '#ffffff',
307
+ },
308
+ {
309
+ label: "二维码长宽设置",
310
+ ele: "el-input",
311
+ valueKey: 'qrcodeWidth',
312
+ value: data.qrcodeWidth || 300,
313
+ groupKey: 'style',
314
+ type: "number",
315
+ className: 'input70',
316
+ placeholder: "请输入二维码长宽",
317
+ },
318
+ {
319
+ label: "向商家付款前置图标配置",
320
+ ele: 'el-input',
321
+ valueKey: 'payPreIcon',
322
+ value: data.payPreIcon || '',
323
+ groupKey: 'style',
324
+ type: "text",
325
+ className: 'input70',
326
+ placeholder: "请输入图标代码",
327
+ },
328
+ {
329
+ label: "刷新二维码图标配置",
330
+ ele: 'el-input',
331
+ valueKey: 'refreshIcon',
332
+ value: data.refreshIcon || '',
333
+ groupKey: 'style',
334
+ type: "text",
335
+ className: 'input70',
336
+ placeholder: "请输入图标代码",
337
+ },
338
+ {
339
+ label: "规则详情样式配置",
340
+ ele: 'title',
341
+ size: 'small',
342
+ groupKey:'style',
343
+ },
344
+ {
345
+ label: "规则详情外边距",
346
+ groupKey:'style',
347
+ ele: 'xd-margin-padding',
348
+ valueKey: 'ruleDetailMargin',
349
+ value: data.ruleDetailMargin || {
350
+ top: 0,
351
+ left: 20,
352
+ right: 20,
353
+ bottom: 15
354
+ },
355
+ setting: {
356
+ type: 'margin',
357
+ },
358
+ placeholder: '请设置外边距',
359
+ inline: false,
360
+ notice: '设置外边距,<span style="color: red">单位:像素</span>'
361
+ },
362
+ {
363
+ label: "规则详情内边距",
364
+ groupKey:'style',
365
+ ele: 'xd-margin-padding',
366
+ valueKey: 'ruleDetailPadding',
367
+ value: data.ruleDetailPadding || {
368
+ top: 20,
369
+ left: 15,
370
+ right: 15,
371
+ bottom: 20
372
+ },
373
+ setting: {
374
+ type: 'padding',
375
+ },
376
+ placeholder: '请设置内边距',
377
+ inline: false,
378
+ notice: '设置外边距,<span style="color: red">单位:像素</span>'
379
+ },
380
+ {
381
+ label: "规则详情背景色",
382
+ groupKey:'style',
383
+ ele: 'xd-color',
384
+ valueKey: 'ruleDetailBgColor',
385
+ value: data.ruleDetailBgColor || '#ffffff',
386
+ }
55
387
  ].filter(i=>i)
56
388
  },
57
389
  advanced: [],