jufubao-base 1.0.169-beta1 → 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.
- package/package.json +1 -1
- package/src/components/JfbBaseLogin/Attr.js +54 -16
- package/src/components/JfbBaseMapSearch/MapSearchMp.vue +1 -1
- package/src/components/JfbBaseOrderDetail/Api.js +12 -7
- package/src/components/JfbBaseOrderDetail/Attr.js +28 -14
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +68 -18
- package/src/components/JfbBaseOrderDetail/Mock.js +3 -1
- package/src/components/JfbBaseTfkCardBind/Api.js +49 -30
- package/src/components/JfbBaseTfkCardBind/Attr.js +61 -10
- package/src/components/JfbBaseTfkCardBind/JfbBaseTfkCardBind.vue +169 -9
- package/src/components/JfbBaseTfkCardBind/Mock.js +19 -9
- package/src/components/JfbBaseTfkCardDetail/Api.js +26 -0
- package/src/components/JfbBaseTfkCardDetail/Attr.js +336 -9
- package/src/components/JfbBaseTfkCardDetail/JfbBaseTfkCardDetail.vue +236 -30
- package/src/components/JfbBaseTfkCardDetail/Mock.js +2 -2
- package/src/components/JfbBaseTfkCardLogin/Attr.js +301 -5
- package/src/components/JfbBaseTfkCardLogin/JfbBaseTfkCardLogin.vue +317 -158
- package/src/components/JfbBaseTfkCardLogin/Mock.js +2 -46
- package/src/components/JfbBaseTfkCardLogin/XdCouponItem.vue +271 -0
- package/src/components/JfbBaseTfkSearch/AllList.vue +232 -0
- package/src/components/JfbBaseTfkSearch/Api.js +11 -42
- package/src/components/JfbBaseTfkSearch/Attr.js +225 -33
- package/src/components/JfbBaseTfkSearch/ContentCinema.vue +157 -0
- package/src/components/JfbBaseTfkSearch/ContentFilm.vue +179 -0
- package/src/components/JfbBaseTfkSearch/ContentProduct.vue +308 -0
- package/src/components/JfbBaseTfkSearch/ContentShop.vue +184 -0
- package/src/components/JfbBaseTfkSearch/CusAttr.js +213 -0
- package/src/components/JfbBaseTfkSearch/CustomList.vue +402 -0
- package/src/components/JfbBaseTfkSearch/JfbBaseTfkSearch.vue +230 -26
- package/src/components/JfbBaseTfkSearch/Mock.js +90 -11
- package/src/components/JfbBaseTfkSearch/SkeletonCinema.vue +45 -0
- package/src/components/JfbBaseTfkSearch/SkeletonFilm.vue +109 -0
- package/src/components/JfbBaseTfkSearch/SkeletonProduct.vue +246 -0
- package/src/components/JfbBaseTfkSearch/SkeletonShop.vue +81 -0
- package/src/components/JfbBaseTfkSearch/handleKeyword.js +24 -0
- package/src/components/JfbBaseTfkSearch/listMixins.js +153 -0
- package/src/components/JfbBaseTfkSearch/search.js +293 -0
- package/src/mixins/colorCardMixins.js +71 -9
- package/src/mixins/componentsMixins.js +346 -23
|
@@ -16,4 +16,30 @@ module.exports = [
|
|
|
16
16
|
},
|
|
17
17
|
disabled: true,
|
|
18
18
|
},
|
|
19
|
+
{
|
|
20
|
+
mapFnName: 'loginTfkCardBind',
|
|
21
|
+
isRule: false,
|
|
22
|
+
title: '登录卡',
|
|
23
|
+
prefix: 'login',
|
|
24
|
+
path: '/card/v1/card-bind/login-card',
|
|
25
|
+
data: {
|
|
26
|
+
card_number: ['卡号', 'String', '必选'],
|
|
27
|
+
},
|
|
28
|
+
disabled: true,
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
mapFnName: 'getListBaseNewsContent', //自定义方法名字(必选)
|
|
32
|
+
title: '获取内容',
|
|
33
|
+
path: '/cms/v1/news-content',
|
|
34
|
+
isRule: false,
|
|
35
|
+
params: {
|
|
36
|
+
scene: ['使用场景', 'String', '选填'],
|
|
37
|
+
container_id: ['插件ID', 'String', '必填'],
|
|
38
|
+
page_id: ['页面ID', 'String', '必填'],
|
|
39
|
+
page_size: ['记录条数', 'Number', '必填', 1],
|
|
40
|
+
code: ['业务线id', 'String', '选填'],
|
|
41
|
+
},
|
|
42
|
+
isConsole: true,
|
|
43
|
+
disabled: true,
|
|
44
|
+
},
|
|
19
45
|
];
|
|
@@ -29,6 +29,7 @@ export default {
|
|
|
29
29
|
{ label: "隐藏业务线", value: "N" },
|
|
30
30
|
{ label: "展示业务线", value: "Y" }
|
|
31
31
|
],
|
|
32
|
+
hidden: data.previewCurrent !== 'main'
|
|
32
33
|
},
|
|
33
34
|
{
|
|
34
35
|
label: '票券背景图:',
|
|
@@ -38,10 +39,10 @@ export default {
|
|
|
38
39
|
value: data.cardImageUrl || {},
|
|
39
40
|
defaultValue: data.cardImageUrl || null,
|
|
40
41
|
slot: true,
|
|
41
|
-
oneWidth:
|
|
42
|
-
oneHeight:
|
|
42
|
+
oneWidth: 355,
|
|
43
|
+
oneHeight: 170,
|
|
43
44
|
elinputClassName: 'input40',
|
|
44
|
-
tipsformet: '
|
|
45
|
+
tipsformet: '上传格式:@imageType@不超过@size@MB.建议尺寸710*340',
|
|
45
46
|
type: ['jpg', 'png', 'jpeg'],
|
|
46
47
|
styleType: 'one',
|
|
47
48
|
uploadType: 'aliyun',
|
|
@@ -49,12 +50,238 @@ export default {
|
|
|
49
50
|
action: 'action',
|
|
50
51
|
sort: true,
|
|
51
52
|
maxlen: 100,
|
|
53
|
+
hidden: data.previewCurrent !== 'main'
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
label: "票券使用规则",
|
|
57
|
+
ele: 'xd-site-news',
|
|
58
|
+
valueKey: 'cardRule',
|
|
59
|
+
groupKey:'content',
|
|
60
|
+
value: data.cardRule || null,
|
|
61
|
+
className: 'input70',
|
|
62
|
+
setting: {
|
|
63
|
+
config: {
|
|
64
|
+
sort: true,
|
|
65
|
+
maxlen: 100,
|
|
66
|
+
action: 'aliyun',
|
|
67
|
+
size: 5,
|
|
68
|
+
tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
|
|
69
|
+
uploadType: 'aliyun',
|
|
70
|
+
type: ['jpg', 'png', 'jpeg']
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
handleCustom({action, data}) {
|
|
74
|
+
if (data && data.params) {
|
|
75
|
+
//当一个插件中出现使用内容分类时候需要设置code值,在页面引用时候容器id + code进行拼接
|
|
76
|
+
//data.params = Object.assign({}, data.params, {code: 'g_test_id'});
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
//获取返回参数(场景类型名称为必填)
|
|
80
|
+
//获取返回参数(场景类型名称为必填)
|
|
81
|
+
let loading = { close(){}}
|
|
82
|
+
|
|
83
|
+
//获取显示内容
|
|
84
|
+
if (action === 'screen') {
|
|
85
|
+
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_bucket_content_tip'})
|
|
86
|
+
.then(res => {
|
|
87
|
+
loading.close();
|
|
88
|
+
data.cb(res['list'])
|
|
89
|
+
})
|
|
90
|
+
.catch(error => {
|
|
91
|
+
console.error(error);
|
|
92
|
+
loading.close();
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
//获取返回参数(广告位高度必选项)
|
|
98
|
+
if (action === 'getNewsInfo') {
|
|
99
|
+
XdBus.getParentApi('cmsGetPublishEditxContent')(data.params)
|
|
100
|
+
.then(res => {
|
|
101
|
+
loading.close()
|
|
102
|
+
data.cb({list: res.list, selectId: res.selected})
|
|
103
|
+
})
|
|
104
|
+
.catch(error => {
|
|
105
|
+
loading.close()
|
|
106
|
+
console.error(error);
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
//获取产品业务线列表
|
|
111
|
+
if (action === 'namespace') {
|
|
112
|
+
XdBus.getParentApi('getOptionsNamespaces')({})
|
|
113
|
+
.then(res => {
|
|
114
|
+
loading.close()
|
|
115
|
+
data.cb(res['list'])
|
|
116
|
+
})
|
|
117
|
+
.catch(error => {
|
|
118
|
+
loading.close()
|
|
119
|
+
console.error(error);
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
//使用内容分类
|
|
124
|
+
if (action === 'cmsPublishEditxContent') {
|
|
125
|
+
loading = XdBus.getParentApi('loading')({});
|
|
126
|
+
XdBus.getParentApi('cmsPublishEditxContent')(data.params)
|
|
127
|
+
.then(res => {
|
|
128
|
+
console.log('cmsPublishEditxContent', 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 === 'getListPostion') {
|
|
140
|
+
loading = XdBus.getParentApi('loading')({});
|
|
141
|
+
XdBus.getParentApi('getListNewsPosition')(data.params)
|
|
142
|
+
.then(res => {
|
|
143
|
+
loading.close();
|
|
144
|
+
data.cb(res)
|
|
145
|
+
})
|
|
146
|
+
.catch(error => {
|
|
147
|
+
loading.close();
|
|
148
|
+
console.error(error);
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
//位置创建
|
|
153
|
+
if (action === 'addPostion') {
|
|
154
|
+
loading = XdBus.getParentApi('loading')({});
|
|
155
|
+
XdBus.getParentApi('addNewsPosition')(data.params)
|
|
156
|
+
.then(res => {
|
|
157
|
+
loading.close();
|
|
158
|
+
data.cb(true)
|
|
159
|
+
})
|
|
160
|
+
.catch(error => {
|
|
161
|
+
console.error(error);
|
|
162
|
+
loading.close();
|
|
163
|
+
data.cb(false)
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
//位置编辑
|
|
168
|
+
if (action === 'editPostion') {
|
|
169
|
+
loading = XdBus.getParentApi('loading')({});
|
|
170
|
+
XdBus.getParentApi('updateNewsPosition')(data.params)
|
|
171
|
+
.then(res => {
|
|
172
|
+
loading.close();
|
|
173
|
+
data.cb(true)
|
|
174
|
+
})
|
|
175
|
+
.catch(error => {
|
|
176
|
+
console.error(error);
|
|
177
|
+
loading.close();
|
|
178
|
+
data.cb(false)
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
//位置删除
|
|
183
|
+
if (action === 'deleltePostion') {
|
|
184
|
+
loading = XdBus.getParentApi('loading')({});
|
|
185
|
+
XdBus.getParentApi('deleteNewsPosition')(data.params)
|
|
186
|
+
.then(res => {
|
|
187
|
+
loading.close();
|
|
188
|
+
data.cb(true)
|
|
189
|
+
})
|
|
190
|
+
.catch(error => {
|
|
191
|
+
console.error(error);
|
|
192
|
+
loading.close();
|
|
193
|
+
data.cb(false)
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
//获取广告位内容列表
|
|
198
|
+
if (action === 'getListContent') {
|
|
199
|
+
loading = XdBus.getParentApi('loading')({});
|
|
200
|
+
XdBus.getParentApi('getListNewsContent')(data.params)
|
|
201
|
+
.then(res => {
|
|
202
|
+
loading.close();
|
|
203
|
+
data.cb(res)
|
|
204
|
+
})
|
|
205
|
+
.catch(error => {
|
|
206
|
+
loading.close();
|
|
207
|
+
console.error(error);
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
//广告内容创建
|
|
212
|
+
if (action === 'addContent') {
|
|
213
|
+
loading = XdBus.getParentApi('loading')({});
|
|
214
|
+
XdBus.getParentApi('addNewsContent')(data.params)
|
|
215
|
+
.then(res => {
|
|
216
|
+
loading.close();
|
|
217
|
+
data.cb(true)
|
|
218
|
+
})
|
|
219
|
+
.catch(error => {
|
|
220
|
+
console.error(error);
|
|
221
|
+
loading.close();
|
|
222
|
+
data.cb(false)
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
//广告内容编辑
|
|
227
|
+
if (action === 'editContent') {
|
|
228
|
+
loading = XdBus.getParentApi('loading')({});
|
|
229
|
+
XdBus.getParentApi('updateNewsContent')(data.params)
|
|
230
|
+
.then(res => {
|
|
231
|
+
loading.close();
|
|
232
|
+
data.cb(true)
|
|
233
|
+
})
|
|
234
|
+
.catch(error => {
|
|
235
|
+
console.error(error);
|
|
236
|
+
loading.close();
|
|
237
|
+
data.cb(false)
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
//广告内容删除
|
|
242
|
+
if (action === 'deleteContent') {
|
|
243
|
+
loading = XdBus.getParentApi('loading')({});
|
|
244
|
+
XdBus.getParentApi('deleteNewsContent')(data.params)
|
|
245
|
+
.then(res => {
|
|
246
|
+
loading.close();
|
|
247
|
+
data.cb(true)
|
|
248
|
+
})
|
|
249
|
+
.catch(error => {
|
|
250
|
+
console.error(error);
|
|
251
|
+
loading.close();
|
|
252
|
+
data.cb(false)
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
//内容发布
|
|
257
|
+
if (action === 'publish') {
|
|
258
|
+
loading = XdBus.getParentApi('loading')({});
|
|
259
|
+
console.log('publish', data.params)
|
|
260
|
+
XdBus.getParentApi('cmsPublishContent')(data.params)
|
|
261
|
+
.then(res => {
|
|
262
|
+
loading.close();
|
|
263
|
+
data.cb(res)
|
|
264
|
+
})
|
|
265
|
+
.catch(error => {
|
|
266
|
+
loading.close();
|
|
267
|
+
console.error(error);
|
|
268
|
+
});
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
//通知页面进行刷新
|
|
272
|
+
if (action === 'update') {
|
|
273
|
+
loading = XdBus.getParentApi('loading')({});
|
|
274
|
+
XdBus.getParentApi('getXdBusUpdateView')('onUpdateView', {});
|
|
275
|
+
loading.close()
|
|
276
|
+
}
|
|
277
|
+
},
|
|
52
278
|
},
|
|
53
279
|
{
|
|
54
280
|
label: "票券信息样式配置",
|
|
55
281
|
ele: "title",
|
|
56
282
|
size: "small",
|
|
57
283
|
groupKey: 'style',
|
|
284
|
+
hidden: data.previewCurrent !== 'main'
|
|
58
285
|
},
|
|
59
286
|
{
|
|
60
287
|
label: "字体颜色",
|
|
@@ -62,6 +289,7 @@ export default {
|
|
|
62
289
|
valueKey: 'cardFontColor',
|
|
63
290
|
value: data.cardFontColor || '#303133',
|
|
64
291
|
groupKey:'style',
|
|
292
|
+
hidden: data.previewCurrent !== 'main'
|
|
65
293
|
},
|
|
66
294
|
{
|
|
67
295
|
label: "外边距设置",
|
|
@@ -80,6 +308,7 @@ export default {
|
|
|
80
308
|
placeholder: '请设置边距',
|
|
81
309
|
inline: false,
|
|
82
310
|
notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
|
|
311
|
+
hidden: data.previewCurrent !== 'main'
|
|
83
312
|
},
|
|
84
313
|
{
|
|
85
314
|
label: "内边距设置",
|
|
@@ -98,6 +327,7 @@ export default {
|
|
|
98
327
|
placeholder: '请设置内边距',
|
|
99
328
|
inline: false,
|
|
100
329
|
notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
|
|
330
|
+
hidden: data.previewCurrent !== 'main'
|
|
101
331
|
},
|
|
102
332
|
{
|
|
103
333
|
label: "票券高度",
|
|
@@ -107,6 +337,7 @@ export default {
|
|
|
107
337
|
type: 'number',
|
|
108
338
|
groupKey:'style',
|
|
109
339
|
placeholder: "请输入票券高度",
|
|
340
|
+
hidden: data.previewCurrent !== 'main'
|
|
110
341
|
},
|
|
111
342
|
{
|
|
112
343
|
label: "票券圆角",
|
|
@@ -126,12 +357,14 @@ export default {
|
|
|
126
357
|
console.error(error);
|
|
127
358
|
});
|
|
128
359
|
},
|
|
360
|
+
hidden: data.previewCurrent !== 'main'
|
|
129
361
|
},
|
|
130
362
|
{
|
|
131
363
|
label: "业务板块样式配置",
|
|
132
364
|
ele: 'title',
|
|
133
365
|
size: 'small',
|
|
134
366
|
groupKey: 'style',
|
|
367
|
+
hidden: data.previewCurrent !== 'main'
|
|
135
368
|
},
|
|
136
369
|
{
|
|
137
370
|
label: "业务板块外边距",
|
|
@@ -150,6 +383,7 @@ export default {
|
|
|
150
383
|
placeholder: '请设置内边距',
|
|
151
384
|
inline: false,
|
|
152
385
|
notice: '设置内边距,<span style="color: red">单位:像素</span>。',
|
|
386
|
+
hidden: data.previewCurrent !== 'main'
|
|
153
387
|
},
|
|
154
388
|
{
|
|
155
389
|
label: "业务板块容器内边距",
|
|
@@ -168,13 +402,15 @@ export default {
|
|
|
168
402
|
placeholder: '请设置内边距',
|
|
169
403
|
inline: false,
|
|
170
404
|
notice: '设置内边距,<span style="color: red">单位:像素</span>。',
|
|
405
|
+
hidden: data.previewCurrent !== 'main'
|
|
171
406
|
},
|
|
172
407
|
{
|
|
173
408
|
label: "业务板块背景色",
|
|
174
409
|
groupKey:'style',
|
|
175
410
|
ele: 'xd-color',
|
|
176
411
|
valueKey: 'bussTempBgColor',
|
|
177
|
-
value: data.bussTempBgColor || '
|
|
412
|
+
value: data.bussTempBgColor || '',
|
|
413
|
+
hidden: data.previewCurrent !== 'main'
|
|
178
414
|
},
|
|
179
415
|
{
|
|
180
416
|
label: "单项业务外边距",
|
|
@@ -193,6 +429,7 @@ export default {
|
|
|
193
429
|
placeholder: '请设置外边距',
|
|
194
430
|
inline: false,
|
|
195
431
|
notice: '设置外边距,<span style="color: red">单位:像素</span>。',
|
|
432
|
+
hidden: data.previewCurrent !== 'main' || data.showBusinessList !== 'Y'
|
|
196
433
|
},
|
|
197
434
|
{
|
|
198
435
|
label: "单项业务宽度",
|
|
@@ -203,12 +440,14 @@ export default {
|
|
|
203
440
|
type: "number",
|
|
204
441
|
className: 'input70',
|
|
205
442
|
placeholder: "请输入单项业务宽度",
|
|
443
|
+
hidden: data.previewCurrent !== 'main' || data.showBusinessList !== 'Y'
|
|
206
444
|
},
|
|
207
445
|
{
|
|
208
446
|
label: "使用规则、提货码样式配置",
|
|
209
447
|
ele: 'title',
|
|
210
448
|
size: 'small',
|
|
211
449
|
groupKey:'style',
|
|
450
|
+
hidden: data.previewCurrent !== 'main'
|
|
212
451
|
},
|
|
213
452
|
{
|
|
214
453
|
label: "外边距",
|
|
@@ -227,6 +466,7 @@ export default {
|
|
|
227
466
|
placeholder: '请设置外边距',
|
|
228
467
|
inline: false,
|
|
229
468
|
notice: '设置外边距,<span style="color: red">单位:像素</span>。',
|
|
469
|
+
hidden: data.previewCurrent !== 'main'
|
|
230
470
|
},
|
|
231
471
|
{
|
|
232
472
|
label: "单项内边距",
|
|
@@ -244,7 +484,8 @@ export default {
|
|
|
244
484
|
},
|
|
245
485
|
placeholder: '请设置内边距',
|
|
246
486
|
inline: false,
|
|
247
|
-
notice: '设置内边距,<span style="color: red">单位:像素</span>。'
|
|
487
|
+
notice: '设置内边距,<span style="color: red">单位:像素</span>。',
|
|
488
|
+
hidden: data.previewCurrent !== 'main'
|
|
248
489
|
},
|
|
249
490
|
{
|
|
250
491
|
label: "单项间隔距离",
|
|
@@ -255,12 +496,14 @@ export default {
|
|
|
255
496
|
type: "number",
|
|
256
497
|
className: 'input70',
|
|
257
498
|
placeholder: "请输入间隔距离",
|
|
499
|
+
hidden: data.previewCurrent !== 'main'
|
|
258
500
|
},
|
|
259
501
|
{
|
|
260
502
|
label: "提货码详情样式配置",
|
|
261
503
|
ele: 'title',
|
|
262
504
|
size: 'small',
|
|
263
505
|
groupKey:'style',
|
|
506
|
+
hidden: data.previewCurrent !== 'pickup'
|
|
264
507
|
},
|
|
265
508
|
{
|
|
266
509
|
label: "提货码详情外边距",
|
|
@@ -278,7 +521,8 @@ export default {
|
|
|
278
521
|
},
|
|
279
522
|
placeholder: '请设置外边距',
|
|
280
523
|
inline: false,
|
|
281
|
-
notice: '设置外边距,<span style="color: red">单位:像素</span>'
|
|
524
|
+
notice: '设置外边距,<span style="color: red">单位:像素</span>',
|
|
525
|
+
hidden: data.previewCurrent !== 'pickup'
|
|
282
526
|
},
|
|
283
527
|
{
|
|
284
528
|
label: "提货码详情内边距",
|
|
@@ -296,7 +540,8 @@ export default {
|
|
|
296
540
|
},
|
|
297
541
|
placeholder: '请设置内边距',
|
|
298
542
|
inline: false,
|
|
299
|
-
notice: '设置外边距,<span style="color: red">单位:像素</span>'
|
|
543
|
+
notice: '设置外边距,<span style="color: red">单位:像素</span>',
|
|
544
|
+
hidden: data.previewCurrent !== 'pickup'
|
|
300
545
|
},
|
|
301
546
|
{
|
|
302
547
|
label: "提货码详情背景色",
|
|
@@ -304,6 +549,53 @@ export default {
|
|
|
304
549
|
ele: 'xd-color',
|
|
305
550
|
valueKey: 'codeDetailBgColor',
|
|
306
551
|
value: data.codeDetailBgColor || '#ffffff',
|
|
552
|
+
hidden: data.previewCurrent !== 'pickup'
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
label: "提货码详情圆角",
|
|
556
|
+
ele: 'xd-site-select-list',
|
|
557
|
+
valueKey: 'codeDetailRadius',
|
|
558
|
+
value: data['codeDetailRadius'] || 16,
|
|
559
|
+
groupKey:'style',
|
|
560
|
+
placeholder: '请选择内容圆角设置',
|
|
561
|
+
multiple: false,
|
|
562
|
+
className: 'input80',
|
|
563
|
+
handleCustom({ action, data }) {
|
|
564
|
+
XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
|
|
565
|
+
.then(res => {
|
|
566
|
+
data.cb(res.list)
|
|
567
|
+
})
|
|
568
|
+
.catch(error => {
|
|
569
|
+
console.error(error);
|
|
570
|
+
});
|
|
571
|
+
},
|
|
572
|
+
hidden: data.previewCurrent !== 'pickup'
|
|
573
|
+
},
|
|
574
|
+
{
|
|
575
|
+
label: "提货码详情边框",
|
|
576
|
+
ele: "xd-border",
|
|
577
|
+
valueKey: 'codeDetailBorder',
|
|
578
|
+
value: data.codeDetailBorder || null,
|
|
579
|
+
groupKey:'style',
|
|
580
|
+
hidden: data.previewCurrent !== 'pickup'
|
|
581
|
+
},
|
|
582
|
+
{
|
|
583
|
+
label: "提货码详情边框阴影",
|
|
584
|
+
ele: "xd-shadow",
|
|
585
|
+
valueKey: 'codeDetailShadow',
|
|
586
|
+
value: data.codeDetailShadow || null,
|
|
587
|
+
groupKey:'style',
|
|
588
|
+
handleCustom({action, data}) {
|
|
589
|
+
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
|
|
590
|
+
.then(res => {
|
|
591
|
+
data.cb(res.list)
|
|
592
|
+
})
|
|
593
|
+
.catch(error => {
|
|
594
|
+
console.error(error);
|
|
595
|
+
data.cb([])
|
|
596
|
+
});
|
|
597
|
+
},
|
|
598
|
+
hidden: data.previewCurrent !== 'pickup'
|
|
307
599
|
},
|
|
308
600
|
{
|
|
309
601
|
label: "二维码长宽设置",
|
|
@@ -314,6 +606,7 @@ export default {
|
|
|
314
606
|
type: "number",
|
|
315
607
|
className: 'input70',
|
|
316
608
|
placeholder: "请输入二维码长宽",
|
|
609
|
+
hidden: data.previewCurrent !== 'pickup'
|
|
317
610
|
},
|
|
318
611
|
{
|
|
319
612
|
label: "向商家付款前置图标配置",
|
|
@@ -324,6 +617,7 @@ export default {
|
|
|
324
617
|
type: "text",
|
|
325
618
|
className: 'input70',
|
|
326
619
|
placeholder: "请输入图标代码",
|
|
620
|
+
hidden: data.previewCurrent !== 'pickup'
|
|
327
621
|
},
|
|
328
622
|
{
|
|
329
623
|
label: "刷新二维码图标配置",
|
|
@@ -334,12 +628,14 @@ export default {
|
|
|
334
628
|
type: "text",
|
|
335
629
|
className: 'input70',
|
|
336
630
|
placeholder: "请输入图标代码",
|
|
631
|
+
hidden: data.previewCurrent !== 'pickup'
|
|
337
632
|
},
|
|
338
633
|
{
|
|
339
634
|
label: "规则详情样式配置",
|
|
340
635
|
ele: 'title',
|
|
341
636
|
size: 'small',
|
|
342
637
|
groupKey:'style',
|
|
638
|
+
hidden: data.previewCurrent !== 'rule'
|
|
343
639
|
},
|
|
344
640
|
{
|
|
345
641
|
label: "规则详情外边距",
|
|
@@ -357,7 +653,8 @@ export default {
|
|
|
357
653
|
},
|
|
358
654
|
placeholder: '请设置外边距',
|
|
359
655
|
inline: false,
|
|
360
|
-
notice: '设置外边距,<span style="color: red">单位:像素</span>'
|
|
656
|
+
notice: '设置外边距,<span style="color: red">单位:像素</span>',
|
|
657
|
+
hidden: data.previewCurrent !== 'rule'
|
|
361
658
|
},
|
|
362
659
|
{
|
|
363
660
|
label: "规则详情内边距",
|
|
@@ -375,7 +672,8 @@ export default {
|
|
|
375
672
|
},
|
|
376
673
|
placeholder: '请设置内边距',
|
|
377
674
|
inline: false,
|
|
378
|
-
notice: '设置外边距,<span style="color: red">单位:像素</span>'
|
|
675
|
+
notice: '设置外边距,<span style="color: red">单位:像素</span>',
|
|
676
|
+
hidden: data.previewCurrent !== 'rule'
|
|
379
677
|
},
|
|
380
678
|
{
|
|
381
679
|
label: "规则详情背景色",
|
|
@@ -383,6 +681,35 @@ export default {
|
|
|
383
681
|
ele: 'xd-color',
|
|
384
682
|
valueKey: 'ruleDetailBgColor',
|
|
385
683
|
value: data.ruleDetailBgColor || '#ffffff',
|
|
684
|
+
hidden: data.previewCurrent !== 'rule'
|
|
685
|
+
},
|
|
686
|
+
{
|
|
687
|
+
label: "规则字体颜色",
|
|
688
|
+
groupKey:'style',
|
|
689
|
+
ele: 'xd-color',
|
|
690
|
+
valueKey: 'ruleDetailFontColor',
|
|
691
|
+
value: data.ruleDetailFontColor || '#303133',
|
|
692
|
+
hidden: data.previewCurrent !== 'rule'
|
|
693
|
+
},
|
|
694
|
+
{
|
|
695
|
+
label: "规则信息边框圆角",
|
|
696
|
+
ele: 'xd-site-select-list',
|
|
697
|
+
valueKey: 'ruleDetailRadius',
|
|
698
|
+
value: data.ruleDetailRadius || '0',
|
|
699
|
+
groupKey:'style',
|
|
700
|
+
placeholder: '请选择内容圆角设置',
|
|
701
|
+
multiple: false,
|
|
702
|
+
className: 'input80',
|
|
703
|
+
handleCustom({ action, data }) {
|
|
704
|
+
XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
|
|
705
|
+
.then(res => {
|
|
706
|
+
data.cb(res.list)
|
|
707
|
+
})
|
|
708
|
+
.catch(error => {
|
|
709
|
+
console.error(error);
|
|
710
|
+
});
|
|
711
|
+
},
|
|
712
|
+
hidden: data.previewCurrent !== 'rule'
|
|
386
713
|
}
|
|
387
714
|
].filter(i=>i)
|
|
388
715
|
},
|