jufubao-mall 2.0.18 → 2.0.20-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.
Files changed (48) hide show
  1. package/package.json +1 -1
  2. package/src/components/CusProduct/CusProduct.vue +1 -0
  3. package/src/components/JfbMallBrandWall/Attr.js +10 -449
  4. package/src/components/JfbMallBrandWall/JfbMallBrandWall.vue +734 -310
  5. package/src/components/JfbMallBrandWall/cusAttr/advanced.js +61 -0
  6. package/src/components/JfbMallBrandWall/cusAttr/brand.js +341 -0
  7. package/src/components/JfbMallBrandWall/cusAttr/content.js +249 -0
  8. package/src/components/JfbMallBrandWall/cusAttr/style.js +252 -0
  9. package/src/components/JfbMallBrandWall/cusAttr/tab.js +481 -0
  10. package/src/components/JfbMallHomeProductList/JfbMallHomeProductList.vue +3 -1
  11. package/src/components/JfbMallHomeProductList/cusAttr/content.js +1 -2
  12. package/src/components/JfbMallProductInfo/cusAttr/content.js +1 -1
  13. package/src/components/JfbMallProductInfoV2/Api.js +1 -1
  14. package/src/components/JfbMallProductInfoV2/Attr.js +134 -41
  15. package/src/components/JfbMallProductInfoV2/JfbMallProductInfoV2.vue +135 -126
  16. package/src/components/JfbMallProductInfoV2/Mock.js +38 -10
  17. package/src/components/JfbMallProductList/Attr.js +7 -762
  18. package/src/components/JfbMallProductList/ComFilterQuery.vue +931 -0
  19. package/src/components/JfbMallProductList/JfbMallProductList.vue +732 -795
  20. package/src/components/JfbMallProductList/Mock.js +157 -133
  21. package/src/components/JfbMallProductList/XdCateV1.vue +286 -121
  22. package/src/components/JfbMallProductList/XdCateV2.vue +117 -73
  23. package/src/components/JfbMallProductList/XdQueryCommon.vue +189 -0
  24. package/src/components/JfbMallProductList/XdQueryFilter.vue +94 -76
  25. package/src/components/JfbMallProductList/XdQuerySort.vue +100 -109
  26. package/src/components/JfbMallProductList/cateMixins.js +84 -0
  27. package/src/components/JfbMallProductList/{advanced.js → cusAttr/advanced.js} +12 -4
  28. package/src/components/JfbMallProductList/cusAttr/content.js +401 -0
  29. package/src/components/JfbMallProductList/cusAttr/filter.js +330 -0
  30. package/src/components/JfbMallProductList/cusAttr/font.js +114 -0
  31. package/src/components/JfbMallProductList/cusAttr/icon.js +229 -0
  32. package/src/components/JfbMallProductList/{style.js → cusAttr/style.js} +15 -50
  33. package/src/components/JfbMallRecommendProduct/Attr.js +8 -366
  34. package/src/components/JfbMallRecommendProduct/JfbMallRecommendProduct.vue +218 -187
  35. package/src/components/JfbMallRecommendProduct/Mock.js +236 -693
  36. package/src/components/JfbMallRecommendProduct/cusAttr/advanced.js +79 -0
  37. package/src/components/JfbMallRecommendProduct/cusAttr/content.js +202 -0
  38. package/src/components/JfbMallRecommendProduct/cusAttr/style.js +591 -0
  39. package/src/components/JfbMallResourceShopList/Mock.js +4 -6
  40. package/src/components/JfbMallShopVip/CusShops.vue +591 -0
  41. package/src/components/JfbMallShopVip/JfbMallShopVip.vue +1 -1
  42. package/src/components/JfbMallTestNormal/JfbMallTestNormal.vue +23 -2
  43. package/src/components/JfbMallTestNormal/data.js +152 -0
  44. package/src/mixins/componentsMixins.js +1 -0
  45. package/src/mixins/productCompMixins.js +29 -19
  46. package/src/components/JfbMallProductList/PosterAttr.js +0 -327
  47. package/src/components/JfbMallProductList/ProductAttr.js +0 -164
  48. package/src/components/JfbMallProductList/XdQueryBrand.vue +0 -150
@@ -1,30 +1,15 @@
1
1
  'use strict';
2
- import ProductAttr from "./ProductAttr";
2
+ import advanced from "./cusAttr/advanced";
3
+ import content from "./cusAttr/content";
4
+ import style from './cusAttr/style'
3
5
  import {isObject, oldTonNewBorAndSha, getRemoteOptions} from "@/utils/AttrTools";
4
6
 
5
7
  export default {
6
8
  style: [],
7
9
  advanced: [],
8
- content: data=>{
10
+ content: (data, gValue, gColor, oldData={})=>{
9
11
  console.log(data['row_num'],"data['row_num']");
10
12
 
11
- let titleStyleColor = '#333'
12
- if(data.titleColor) titleStyleColor = data.titleColor;
13
- if(isObject(data.titleStyle) && data.titleStyle.color) titleStyleColor = data.titleStyle.color;
14
- let options = getRemoteOptions('productList', data);
15
-
16
- let defContBorder = oldTonNewBorAndSha(
17
- data.contBorder,
18
- data.is_border,
19
- data.is_border_w,
20
- data.is_border_c,
21
- 'solid'
22
- );
23
- if(defContBorder.type === 'Y' && data.is_border ==='Y') {
24
- data.is_border = 'N'
25
- }
26
-
27
-
28
13
  let defContShadow = oldTonNewBorAndSha(
29
14
  data.contShadow,
30
15
  data.is_shadow,
@@ -37,749 +22,9 @@ export default {
37
22
 
38
23
 
39
24
  return [
40
- {
41
- label: "布局设置",
42
- groupKey:'content',
43
- ele: "xd-style-image",
44
- valueKey: "categoryLayout",
45
- value: data['categoryLayout'] || 'v1',
46
- handleCustom({action, data}) {
47
- data.cb([
48
- {label: "布局1", url:'/common/layout/JfbMallProductList/v1.png?v=1', value: "v1"},
49
- {label: "布局2",url:'/common/layout/JfbMallProductList/v2.png?v=1', value: "v2"},
50
- ])
51
- },
52
- },
53
- data['categoryLayout'] === 'v1' && {
54
- label: "展示方式",
55
- ele: "xd-radio",
56
- groupKey:'content',
57
- labelInline: true,
58
- valueKey: "categoryLayout1ShowType",
59
- value: data['categoryLayout1ShowType'] || 'all',
60
- isKey: true,
61
- list: [
62
- {label: "全部展示", value: "all"},
63
- {label: "只展示二级分类", value: "child"},
64
- ],
65
- },
66
- {
67
- label: '是否展示分类:',
68
- groupKey:'content',
69
- ele: 'xd-radio',
70
- valueKey: 'showCategory',
71
- value: data['showCategory'] ||'Y',
72
- labelInline: true,
73
- list: [
74
- {"label": "展示", "value": 'Y'},
75
- {"label": "隐藏", "value": 'N'},
76
- ]
77
- },
78
- {
79
- label: '是否展示条件筛选:',
80
- groupKey:'content',
81
- ele: 'xd-radio',
82
- valueKey: 'showQuery',
83
- value: data['showQuery'] ||'Y',
84
- labelInline: true,
85
- list: [
86
- {"label": "展示", "value": 'Y'},
87
- {"label": "隐藏", "value": 'N'},
88
- ]
89
- },
90
- data['showQuery'] ==='Y' && {
91
- label: '是否展示配送方式筛选项:',
92
- groupKey:'content',
93
- ele: 'xd-radio',
94
- valueKey: 'isShowDelivery',
95
- value: data['isShowDelivery'] ||'Y',
96
- indent: true,
97
- labelInline: true,
98
- list: [
99
- {"label": "展示", "value": 'Y'},
100
- {"label": "隐藏", "value": 'N'},
101
- ]
102
- },
103
- data['showQuery'] ==='Y' && {
104
- label: '品牌筛选',
105
- ele: 'xd-radio',
106
- valueKey: "showBrandFilter",
107
- value: data['showBrandFilter'] || 'in',
108
- groupKey:'content',
109
- labelInline: true,
110
- indent: true,
111
- list: [
112
- {"label": "筛选中展示", "value": 'in'},
113
- {"label": "列表展示", "value": 'out'},
114
- ]
115
- },
116
- ...options,
117
- {
118
- ele: 'line',
119
- label: '全部分类设置',
120
- size: 'small',
121
- groupKey:'content',
122
- },
123
- {
124
- label: "全部自定义名称:",
125
- ele: "el-input",
126
- valueKey: "allName",
127
- value: data.allName || "",
128
- labelInline: true,
129
- className: "input40",
130
- groupKey:'content',
131
- inline:false,
132
- notice:'设置全部自定义名称,默认值:<span style="color:red">全部</span>',
133
- rules: [
134
- {
135
- required: false,
136
- validator: (rule, value, callback) => {
137
- value = value.trim();
138
- if(value.length === 0) return callback()
139
- if (value.length < 2 || value.length > 4) callback('全部自定义名称长度为:1-4字符');
140
- else callback()
141
- },
142
- trigger: 'blur'
143
- }
144
- ],
145
- },
146
- {
147
- label: '全部图标:',
148
- ele: 'xd-upload',
149
- valueKey: 'allIcon',
150
- value: data['allIcon'] || {},
151
- defaultValue: data['allIcon'],
152
- slot: true,
153
- tipsformet: `上传文件格式:@imageType@,不超过@size@MB.,建议尺寸:<span style="color:red">128*128</span>像素。`,
154
- type: ['jpg', 'png', 'jpeg','gif'],
155
- styleType: 'one',
156
- uploadType: 'aliyun',
157
- groupKey:'content',
158
- size: .5,
159
- action: 'aliyun',
160
- oneWidth: 80,
161
- oneHeight: 80,
162
- },
163
-
164
- ...ProductAttr(data),
165
- {
166
- ele: 'title',
167
- label: '头部设置',
168
- size: 'small',
169
- groupKey:'style',
170
- },
171
-
172
-
173
- {
174
- ele: 'line',
175
- label: '一级分类配置',
176
- size: 'small',
177
- groupKey:'style',
178
- },
179
- {
180
- label: '背景颜色:',
181
- ele: 'xd-color',
182
- valueKey: 'titleBgColor',
183
- groupKey:'style',
184
- value: data['titleBgColor'] || '',
185
- placeholder: '请选择背景颜色',
186
- classNmae: 'input80',
187
- setting: {
188
- showAlpha: true
189
- },
190
- },
191
- {
192
- label: '分类名称样式设置:',
193
- ele: 'xd-text-and-bgc',
194
- groupKey:'style',
195
- valueKey: 'titleStyle',
196
- value: data['titleStyle'] || null,
197
- setting: {
198
- fontSize: true,
199
- weight:true,
200
- bgColor:false,
201
- selected:true,
202
- default:{
203
- color: titleStyleColor,
204
- fontSize:'30rpx',
205
- fontWeight:'normal',
206
- actFontSize:'36rpx',
207
- actFontWeight:'bold',
208
- }
209
- },
210
- handleCustom({action, data}) {
211
- XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
212
- .then(res => {
213
- data.cb(res.list)
214
- })
215
- .catch(error => {
216
- console.error(error);
217
- data.cb([])
218
- });
219
- },
220
- },
221
-
222
- //废弃不可删除(已做兼容)
223
- {
224
- label: '文字颜色:',
225
- ele: 'xd-color',
226
- valueKey: 'titleColor',
227
- groupKey:'style',
228
- value: data['titleColor'] || '',
229
- placeholder: '请选择文字颜色',
230
- classNmae: 'input80',
231
- hidden:true,
232
- },
233
- //废弃不可删除(已做兼容)
234
-
235
- {
236
- ele: 'line',
237
- label: '二级导航样式设置',
238
- size: 'small',
239
- groupKey:'style',
240
- },
241
- {
242
- label: '上边框设置:',
243
- ele: 'xd-border',
244
- groupKey:'style',
245
- valueKey: 'subTitleBorder',
246
- value: data['subTitleBorder'] || '',
247
- setting: {
248
- selected:'N',
249
- },
250
- hidden: !(data['categoryLayout'] === 'v1')
251
- },
252
- {
253
- label: '图标圆角设置:',
254
- ele: 'xd-site-select-list',
255
- valueKey: 'subTitleRadius',
256
- value: data['subTitleRadius'] || '50%',
257
- placeholder: '请选择圆角设置',
258
- multiple: false,
259
- className: 'input80',
260
- groupKey:'style',
261
- handleCustom({action, data}) {
262
- XdBus.getParentApi('getOptionsSettingList')({
263
- setting_id: 'edtix_style_radius',
264
- key: Date.now()
265
- })
266
- .then(res => {
267
- let list = (res.list || []).map(item=>{
268
- return {
269
- ...item,
270
- value: item.value + 'rpx',
271
- }
272
- }).concat([{label:'圆角',value: '50%'}]);
273
- data.cb(list)
274
- })
275
- .catch(error => {
276
- console.error(error);
277
- });
278
- },
279
- },
280
- {
281
- label: '图标框设置:',
282
- ele: 'xd-border',
283
- groupKey:'style',
284
- valueKey: 'subTitleIconBorder',
285
- value: data['subTitleIconBorder'],
286
- setting: {
287
- selected:'Y',
288
- color:'#eee'
289
- },
290
- },
291
- {
292
- label: '图标投影设置:',
293
- ele: 'xd-shadow',
294
- groupKey:'style',
295
- valueKey: 'subTitleIconShadow',
296
- value: data['subTitleIconShadow'] || '',
297
- setting: {
298
- selected: 'N',
299
- },
300
- handleCustom({action, data}) {
301
- XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
302
- .then(res => {
303
- data.cb(res.list)
304
- })
305
- .catch(error => {
306
- console.error(error);
307
- data.cb([])
308
- });
309
- },
310
- },
311
- {
312
- label: '二级导航背景颜色:',
313
- ele: 'xd-color',
314
- valueKey: 'level2BgcColor',
315
- value: data['level2BgcColor'] || '',
316
- placeholder: '请选择二级导航背景颜色',
317
- classNmae: 'input80',
318
- groupKey:'style',
319
- },
320
- {
321
- label: '二级导航文字颜色:',
322
- ele: 'xd-color',
323
- valueKey: 'level2Color',
324
- value: data['level2Color'] || '',
325
- placeholder: '请选择二级导航文字颜色',
326
- classNmae: 'input80',
327
- groupKey:'style',
328
- },
329
-
330
- {
331
- ele: 'line',
332
- label: '过滤条件设置',
333
- size: 'small',
334
- groupKey:'style',
335
- },
336
- {
337
- label: '上边框设置:',
338
- ele: 'xd-border',
339
- groupKey:'style',
340
- valueKey: 'filterTopBorder',
341
- value: data['filterTopBorder'] || '',
342
- setting: {
343
- selected:'D',
344
- isDef: true,
345
- },
346
- },
347
- {
348
- label: '背景颜色:',
349
- ele: 'xd-color',
350
- groupKey:'style',
351
- valueKey: 'filterBgcColor',
352
- value: data['filterBgcColor'] || '',
353
- placeholder: '请选择背景颜色',
354
- classNmae: 'input40',
355
- labelInline: true,
356
- setting: {
357
- showAlpha: true
358
- },
359
- },
360
- {
361
- label: '文字颜色:',
362
- ele: 'xd-color',
363
- groupKey:'style',
364
- valueKey: 'filterColor',
365
- value: data['filterColor'] || '',
366
- placeholder: '请选择文字颜色',
367
- classNmae: 'input40',
368
- setting: {
369
- showAlpha: true
370
- },
371
- labelInline: true,
372
- },
373
- {
374
- label: "下拉菜单行间距:",
375
- groupKey: 'style',
376
- ele: 'xd-slider',
377
- valueKey: "filterRowSpacing",
378
- value: data['filterRowSpacing'] === undefined?20: data['filterRowSpacing'],
379
- className: "input80",
380
- labelInline: true,
381
- setting:{
382
- min: 0,//最小值
383
- max: 100, //最小值
384
- step:1, //步长
385
- showStops:false,//显示间断点
386
- showInput:false,//显示输入框
387
- }
388
- },
389
- {
390
- label: '下拉菜单背景颜色:',
391
- ele: 'xd-color',
392
- groupKey:'style',
393
- valueKey: 'filterListColor',
394
- value: data['filterListColor'] || '',
395
- placeholder: '请选择列表背景颜色',
396
- classNmae: 'input40',
397
- labelInline: true,
398
- setting: {
399
- showAlpha: true
400
- },
401
- },
402
- {
403
- label: '下拉菜单文字设置:',
404
- ele: 'xd-text-and-bgc',
405
- groupKey:'style',
406
- valueKey: 'filterFontStyle',
407
- value: data['filterFontStyle'] || null,
408
- setting: {
409
- fontSize: true,
410
- weight:true,
411
- bgColor:true,
412
- selected:true,
413
- default:{
414
- color: '#333',
415
- bgColor: 'rgba(0,0,0,0)',
416
- fontSize:'26rpx',
417
- fontWeight:'normal',
418
- actFontSize:'26rpx',
419
- actFontWeight:'bold',
420
- actBgColor: 'rgba(0,0,0,0)',
421
- }
422
- },
423
- handleCustom({action, data}) {
424
- XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
425
- .then(res => {
426
- data.cb(res.list)
427
- })
428
- .catch(error => {
429
- console.error(error);
430
- data.cb([])
431
- });
432
- },
433
- },
434
-
435
- {
436
- ele: 'title',
437
- label: '内容设置',
438
- size: 'small',
439
- groupKey:'style',
440
- },
441
- {
442
- ele: 'line',
443
- label: '轮廓设置',
444
- size: 'small',
445
- groupKey:'style',
446
- },
447
- {
448
- label: '背景颜色:',
449
- ele: 'xd-color',
450
- groupKey:'style',
451
- valueKey: 'contentColor',
452
- value: data['contentColor'] || '',
453
- placeholder: '请选择背景颜色',
454
- classNmae: 'input80',
455
- setting: {
456
- showAlpha: true
457
- },
458
- inline: false,
459
- notice:'背景色建议使用<span style="color:red">浅色色系</span>',
460
- },
461
- {
462
- label: '列间距:',
463
- ele: 'el-input',
464
- type: 'number',
465
- labelInline: true,
466
- groupKey:'style',
467
- valueKey: 'columnSpacing',
468
- value: data['columnSpacing'] || '',
469
- notice: '列间距设置,单位:像素,默认值:<span style="color:red">20</span> px',
470
- inline: false,
471
- className: 'input60',
472
- },
473
- {
474
- label: '行间距:',
475
- ele: 'el-input',
476
- type: 'number',
477
- labelInline: true,
478
- groupKey:'style',
479
- valueKey: 'rowSpacing',
480
- value: data['rowSpacing'] || '',
481
- notice: '行间距设置,单位:像素,默认值:<span style="color:red">20</span> px',
482
- inline: false,
483
- className: 'input60',
484
- },
485
- {
486
- label: '边距设置:',
487
- ele: 'xd-margin-padding',
488
- groupKey:'style',
489
- valueKey: 'listPadding',
490
- value: data['listPadding'] || null,
491
- setting: {
492
- type: 'margin',
493
- },
494
- inline: false,
495
- notice: '边距设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
496
- },
497
-
498
- {
499
- ele: 'line',
500
- label: '商品设置',
501
- size: 'small',
502
- groupKey:'style',
503
- },
504
-
505
- {
506
- label: '背景颜色:',
507
- ele: 'xd-color',
508
- valueKey: 'itemBgcColor',
509
- value: data['itemBgcColor'] || '',
510
- placeholder: '请选择内容背景颜色',
511
- groupKey:'style',
512
- classNmae: 'input80',
513
- inline: false,
514
- notice:'商品背景色建议使用<span style="color:red">浅色色系</span>',
515
- labelInline: true,
516
- setting: {
517
- showAlpha: true,
518
- }
519
- },
520
- {
521
- label: '边距设置:',
522
- ele: 'xd-margin-padding',
523
- groupKey:'style',
524
- valueKey: 'itemPadding',
525
- value: data['itemPadding'] || null,
526
- setting: {
527
- type: 'margin',
528
- },
529
- inline: false,
530
- notice: '边距设置,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span> 像素',
531
- },
532
- {
533
- label: '品牌颜色:',
534
- ele: 'xd-color',
535
- labelInline: true,
536
- valueKey: 'brandColor',
537
- value: data['brandColor'] || '',
538
- placeholder: '请选择品牌颜色',
539
- classNmae: 'input80',
540
- groupKey:'style',
541
- setting: {
542
- showAlpha: true
543
- },
544
- },
545
- {
546
- label: "商品与信息之间间距:",
547
- groupKey: 'style',
548
- ele: 'xd-slider',
549
- valueKey: "itemSpacing",
550
- value: data['itemSpacing'] === undefined?20:data['itemSpacing'],
551
- className: "input80",
552
- labelInline: true,
553
- setting:{
554
- min: 0,//最小值
555
- max: 100, //最小值
556
- step:1, //步长
557
- showStops:false,//显示间断点
558
- showInput:false,//显示输入框
559
- }
560
- },
561
-
562
- {
563
- label: "圆角设置:",
564
- groupKey: 'style',
565
- ele: 'xd-slider',
566
- valueKey: "radius",
567
- value: data['radius'] === undefined?0:data['radius'],
568
- className: "input80",
569
- setting:{
570
- min: 0,
571
- max: 80,
572
- step:1,
573
- showStops:false,
574
- },
575
- labelInline: true,
576
- },
577
- {
578
- label: "图片圆角设置:",
579
- groupKey: 'style',
580
- ele: 'xd-slider',
581
- valueKey: "imageRadius",
582
- value: data['imageRadius'] === undefined?10:data['imageRadius'],
583
- className: "input80",
584
- setting:{
585
- min: 0,
586
- max: 80,
587
- step:1,
588
- showStops:false,
589
- },
590
- labelInline: true,
591
- },
592
- {
593
- label: '投影设置:',
594
- ele: 'xd-shadow',
595
- labelInline: true,
596
- groupKey:'style',
597
- valueKey: 'contShadow',
598
- value: defContShadow,
599
- setting: {
600
- selected: defContShadow.type,
601
- },
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
- data.cb([])
610
- });
611
- },
612
- },
613
- {
614
- label: '边框设置:',
615
- ele: 'xd-border',
616
- labelInline: true,
617
- groupKey:'style',
618
- valueKey: 'contBorder',
619
- value: defContBorder,
620
- setting: {
621
- selected:defContBorder.type
622
- },
623
- },
624
- {
625
- label: '商品名称样式设置:',
626
- ele: 'xd-text-and-bgc',
627
- groupKey:'style',
628
- valueKey: 'contStyle',
629
- value: data['contStyle'] || null,
630
- setting: {
631
- fontSize: true,
632
- weight:true,
633
- bgColor:false,
634
- selected:false,
635
- default:{
636
- color: '#333',
637
- fontSize: '28rpx',
638
- fontWeight: 'normal'
639
- }
640
- },
641
- handleCustom({action, data}) {
642
- XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
643
- .then(res => {
644
- data.cb(res.list)
645
- })
646
- .catch(error => {
647
- console.error(error);
648
- data.cb([])
649
- });
650
- },
651
- },
652
-
653
- //已废弃(勿删除)
654
- {
655
- label: '是否有投影:',
656
- ele: 'xd-radio',
657
- valueKey: 'is_shadow',
658
- value: data['is_shadow'] || 'N',
659
- placeholder: '请选择是否投影',
660
- groupKey:'style',
661
- multiple: false,
662
- hidden: true,
663
- className: 'input80',
664
- list: [
665
- {label: '是', value: 'Y'},
666
- {label: '否', value: 'N'},
667
- ]
668
- },
669
- {
670
- groupKey:'style',
671
- label: '投影颜色:',
672
- ele: 'xd-color',
673
- hidden: true,
674
- valueKey: 'is_shadow_bg',
675
- value: data['is_shadow_bg'] || '',
676
- placeholder: '请选择投影颜色',
677
- classNmae: 'input80',
678
- },
679
- {
680
- label: '投影范围:',
681
- groupKey:'style',
682
- ele: 'xd-site-select-list',
683
- valueKey: 'is_shadow_w',
684
- value: data['is_shadow_w'] || '10',
685
- placeholder: '请选择投影范围',
686
- multiple: false,
687
- hidden: true,
688
- className: 'input60',
689
- handleCustom({action, data}) {
690
- XdBus.getParentApi('getOptionsSettingList')({
691
- setting_id: 'edtix_style_radius',
692
- key: Date.now()
693
- })
694
- .then(res => {
695
- data.cb(res.list)
696
- })
697
- .catch(error => {
698
- console.error(error);
699
- });
700
- },
701
- },
702
- {
703
- label: '是否有边框:',
704
- ele: 'xd-radio',
705
- valueKey: 'is_border',
706
- value: data['is_border'] || 'N',
707
- placeholder: '请选择是否有边框',
708
- multiple: false,
709
- className: 'input80',
710
- hidden: true,
711
- groupKey:'style',
712
- list: [
713
- {label: '是', value: 'Y'},
714
- {label: '否', value: 'N'},
715
- ]
716
- },
717
- {
718
- groupKey:'style',
719
- label: '边框颜色:',
720
- ele: 'xd-color',
721
- valueKey: 'is_border_c',
722
- value: data['is_border_c'] || '',
723
- placeholder: '请选择边框颜色',
724
- classNmae: 'input80',
725
- hidden: true,
726
- },
727
- {
728
- groupKey:'style',
729
- label: '边框大小:',
730
- ele: 'el-input',
731
- type: 'number',
732
- valueKey: 'is_border_w',
733
- value: data['is_border_w'] || '',
734
- placeholder: '请输入边框大小',
735
- className: 'input60',
736
- hidden: true,
737
- },
738
- //已废弃(勿删除)
739
-
740
-
741
- //高级
742
- {
743
- label: "选择业务线",
744
- ele: "xd-choose-namespace",
745
- valueKey: "xnamespace",
746
- groupKey:'advanced',
747
- value: data['xnamespace'] || null,
748
- className: 'input60',
749
- handleCustom: (cb) => {
750
- XdBus.getParentApi('getOptionsNamespaces')()
751
- .then(res => {
752
- cb(res.list)
753
- })
754
- .catch();
755
- }
756
- },
757
- {
758
- label: '是否开启城市筛选:',
759
- ele: 'xd-radio',
760
- valueKey: 'isCityFilter',
761
- groupKey:'advanced',
762
- value: data['isCityFilter'] || 'N',
763
- placeholder: '请选择是否开启城市筛选',
764
- multiple: false,
765
- list: [
766
- {label: '是', value: 'Y'},
767
- {label: '否', value: 'N'},
768
- ]
769
- },
770
- {
771
- label: '商品详情跳转路径:',
772
- ele: 'xd-select-pages-path',
773
- valueKey: 'productInfoPath',
774
- placeholder: '请选择详情路径',
775
- groupKey:'advanced',
776
- value: data['productInfoPath'] || null,
777
- className: 'input100',
778
- setting: {
779
- router: XdBus.getParentApi('getPagesTree'),
780
- },
781
- inline: false,
782
- },
25
+ ...content(data, gValue, gColor, oldData),
26
+ ...style(data, gValue, gColor, oldData),
27
+ ...advanced(data)
783
28
  ].filter(i=>i)
784
29
  },
785
30
  }