jufubao-mall 2.0.35-beta4 → 2.0.35-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.
@@ -1,14 +1,6 @@
1
1
  'use strict';
2
2
 
3
- import {
4
- oldTonNewBorAndSha,
5
- getBorOrShaHeight,
6
- getPMarginRLTB,
7
- checkValue, clone
8
- } from '@/utils/AttrTools'
9
- import content from "./cusAttr/content";
10
- import style from "./cusAttr/style";
11
- import advanced from "./cusAttr/advanced";
3
+ import {oldTonNewBorAndSha ,getBorOrShaHeight,getPMarginRLTB,checkValue} from '@/utils/AttrTools'
12
4
 
13
5
  function getItemHeight(data, shadowWidth){
14
6
  if(data.listLayout === 'slide') return 246;
@@ -73,80 +65,7 @@ function getHeight(data){
73
65
  export default {
74
66
  style: [],
75
67
  advanced: [],
76
- content: (datas, gValue, gColor, oldData={}) => {
77
- let data = clone(datas);
78
-
79
- //更多圆角
80
- if(data['moreNewRadius'] !== undefined){
81
- data['moreNewRadiusStatus'] = 'N';
82
- data['moreNewRadius'] = '10';
83
- if(data['moreRadius'] !== undefined) {
84
- data['moreNewRadiusStatus'] = 'C';
85
- data['moreNewRadius'] = data['moreRadius'].toString();
86
- if([0,'0'].includes(data['moreRadius'] )) {
87
- data['moreNewRadiusStatus'] = 'N';
88
- data['moreNewRadius'] = '0';
89
- }
90
- }
91
- }
92
-
93
- //边框圆角设置
94
- if(data['mainNewRadius'] === undefined) {
95
- data['mainNewRadiusStatus'] = 'N';
96
- data['mainNewRadius'] = '10';
97
- if(data['mainRadius'] !== undefined) {
98
- data['mainNewRadiusStatus'] = 'C';
99
- data['mainNewRadius'] = data['mainRadius'].toString();
100
- if([0,'0'].includes(data['mainRadius'] )) {
101
- data['mainNewRadiusStatus'] = 'N';
102
- data['mainNewRadius'] = '0';
103
- }
104
- }
105
- }
106
-
107
- //品牌边框圆角设置
108
- if(data['newRadius'] === undefined) {
109
- data['newRadiusStatus'] = 'N';
110
- data['newRadius'] = '10';
111
- if(data['radius'] !== undefined) {
112
- data['newRadiusStatus'] = 'C';
113
- data['newRadius'] = data['radius'].toString();
114
- if([0,'0'].includes(data['radius'] )) {
115
- data['newRadiusStatus'] = 'N';
116
- data['newRadius'] = '0';
117
- }
118
- }
119
- }
120
-
121
- //品牌圆角设置
122
- if(data['iconNewRadius'] === undefined) {
123
- data['iconNewRadiusStatus'] = 'N';
124
- data['iconNewRadius'] = '10';
125
- if(data['iconRadius'] !== undefined) {
126
- data['iconNewRadiusStatus'] = 'C';
127
- data['iconNewRadius'] = data['iconRadius'].toString();
128
- if([0,'0'].includes(data['iconRadius'] )) {
129
- data['iconNewRadiusStatus'] = 'N';
130
- data['iconNewRadius'] = '0';
131
- }
132
- }
133
- }
134
-
135
- //选项卡圆角设置
136
- if(data['tabNewPadding'] === undefined) {
137
- data['tabNewPaddingStatus'] = 'N';
138
- data['tabNewPadding'] = '10';
139
- if(!['',undefined,null].includes(data['tabPadding'])) {
140
- data['tabNewPaddingStatus'] = 'C';
141
- data['tabNewPadding'] = data['tabPadding'].toString();
142
- if([0,'0'].includes(data['tabPadding'] )) {
143
- data['tabNewPaddingStatus'] = 'N';
144
- data['tabNewPadding'] = '0';
145
- }
146
- }
147
- }
148
-
149
-
68
+ content: (data) => {
150
69
  let offline = {};
151
70
  let online = {};
152
71
 
@@ -159,6 +78,10 @@ export default {
159
78
  let height = Math.floor(getHeight(data));
160
79
  let outMarginRL = getPMarginRLTB(data.margin, 'RL', 0)/2;//(checkValue((data.margin||{}).left,0) + checkValue((data.margin||{}).right,0))/2
161
80
  let width = Math.floor(uni.getSystemInfoSync().safeArea.width - outMarginRL);
81
+ let pageSize = 20;
82
+ if(data.listLayout === 'carousel') {
83
+ pageSize = 45;
84
+ }
162
85
 
163
86
  let defContBorder = oldTonNewBorAndSha(data.itemBorder, data.is_border,data.is_border_w ,data.is_border_c,'solid');
164
87
  if(defContBorder.type === 'Y' && data.is_border ==='Y') {
@@ -180,9 +103,129 @@ export default {
180
103
 
181
104
 
182
105
  return [
183
- ...content(data, gValue, gColor, oldData),
184
- ...style(data, gValue, gColor, oldData),
185
-
106
+ {
107
+ label: "品牌选项卡设置",
108
+ ele: 'xd-brand-cate-new',
109
+ valueKey: "brandCateList",
110
+ value: data['brandCateList'] || null,
111
+ groupKey: 'content',
112
+ },
113
+ {
114
+ label: "品牌数量设置:",
115
+ groupKey: 'content',
116
+ ele: 'xd-slider',
117
+ valueKey: "page_size",
118
+ value: data['page_size']===undefined?pageSize:data['page_size'],
119
+ className: "input80",
120
+ labelInline: true,
121
+ setting:{
122
+ min: 5,//最小值
123
+ max: 150, //最小值
124
+ step:1, //步长
125
+ showStops:false,//显示间断点
126
+ showInput:false,//显示输入框
127
+ unit: '条'
128
+ }
129
+ },
130
+ {
131
+ label: '效果:',
132
+ ele: 'xd-radio',
133
+ valueKey: 'listLayout',
134
+ value: listLayout,
135
+ multiple: false,
136
+ className: 'input80',
137
+ groupKey: 'content',
138
+ labelInline: true,
139
+ list: [
140
+ {label: '左右滑动', value: 'slide'},
141
+ {label: '轮播', value: 'carousel'},
142
+ ]
143
+ },
144
+ {
145
+ label: '展示行数:',
146
+ ele: 'xd-radio',
147
+ valueKey: 'listRow',
148
+ value: data['listRow'] || 2,
149
+ multiple: false,
150
+ className: 'input80',
151
+ groupKey: 'content',
152
+ labelInline: true,
153
+ hidden: listLayout !== 'carousel',
154
+ list: [
155
+ {label: '一行', value: 1},
156
+ {label: '两行', value: 2},
157
+ {label: '三行', value: 3},
158
+ ]
159
+ },
160
+ {
161
+ label: "轮播速度:",
162
+ groupKey: 'content',
163
+ ele: 'xd-slider',
164
+ valueKey: "time",
165
+ value: data['time'] === undefined?5:data['time'],
166
+ className: "input80",
167
+ labelInline: true,
168
+ hidden: listLayout !== 'carousel',
169
+ setting:{
170
+ min: 0,//最小值
171
+ max: 60, //最小值
172
+ step:1, //步长
173
+ showStops:false,//显示间断点
174
+ unit:'秒'
175
+ }
176
+ },
177
+ {
178
+ label: "大小设置:",
179
+ groupKey: 'content',
180
+ ele: 'xd-slider',
181
+ valueKey: "iconSize",
182
+ value: iconSize,
183
+ className: "input80",
184
+ labelInline: true,
185
+ hidden: listLayout !== 'carousel',
186
+ setting:{
187
+ min: 0,//最小值
188
+ max: 60, //最小值
189
+ step:1, //步长
190
+ showStops:false,//显示间断点
191
+ }
192
+ },
193
+ {
194
+ label: '轮播指示图标样式:',
195
+ ele: 'xd-select-list',
196
+ valueKey: 'enterMode',
197
+ value: data['enterMode'] || 'round',
198
+ groupKey:'content',
199
+ multiple: false,
200
+ className: 'input80',
201
+ hidden: listLayout !== 'carousel',
202
+ list:[
203
+ {label: '显示圆点', value: 'dot'},
204
+ {label: '显示长方形', value: 'default'},
205
+ {label: '显示圆点+长条', value: 'round'},
206
+ {label: '显示索引+标题', value: 'nav'},
207
+ {label: '显示索引', value: 'indexes'},
208
+ {label: '不显示', value: 'normal'},
209
+ ],
210
+ notice: '在使用非通屏显示类型广告位之外的样式时,<span style="color: red">(显示索引+标题|显示索引)</span>使用"<span style="color: red">显示圆点</span>"',
211
+ inline: false,
212
+ },
213
+ {
214
+ label: "圆角设置:",
215
+ groupKey: 'content',
216
+ ele: 'xd-slider',
217
+ valueKey: "radius",
218
+ value: data['radius'] === undefined?10:data['radius'],
219
+ className: "input80",
220
+ labelInline: true,
221
+ setting:{
222
+ min: 0,//最小值
223
+ max: 150, //最小值
224
+ step:1, //步长
225
+ showStops:false,//显示间断点
226
+ showInput:false,//显示输入框
227
+ }
228
+ },
186
229
  {
187
230
  ele: 'title',
188
231
  label: '功能设置',
@@ -206,10 +249,628 @@ export default {
206
249
  oneHeight: 300 * (height)/ width,
207
250
  groupKey: 'content'
208
251
  },
252
+ {
253
+ label: "圆角设置:",
254
+ groupKey: 'content',
255
+ ele: 'xd-slider',
256
+ valueKey: "mainRadius",
257
+ value: data['mainRadius'] === undefined?0:data['mainRadius'],
258
+ className: "input80",
259
+ labelInline: true,
260
+ setting:{
261
+ min: 0,//最小值
262
+ max: 60, //最小值
263
+ step:1, //步长
264
+ showStops:false,//显示间断点
265
+ showInput:false,//显示输入框
266
+ }
267
+ },
209
268
 
210
269
  //样式
270
+ {
271
+ label: '背景色:',
272
+ ele: 'xd-color',
273
+ valueKey: 'outBgColor',
274
+ value: data['outBgColor'] || '',
275
+ placeholder: '请选择背景色',
276
+ classNmae: 'input80',
277
+ groupKey: 'style',
278
+ labelInline: true,
279
+ setting: {
280
+ showAlpha: true
281
+ }
282
+ },
283
+ {
284
+ label: '外边距:',
285
+ ele: 'xd-margin-padding',
286
+ valueKey: 'margin',
287
+ value: data['margin'] || null,
288
+ groupKey: 'style',
289
+ setting: {
290
+ type: 'margin',
291
+ },
292
+ placeholder: '请设置外边距',
293
+ inline: false,
294
+ notice: '设置外边距,<span style="color: red">单位:像素</span>。默认值:<span style="color:red">0,20,0,0</span>像素',
295
+ },
296
+ {
297
+ label: '填充设置:',
298
+ ele: 'xd-margin-padding',
299
+ valueKey: 'bgImagePadding',
300
+ value: data['bgImagePadding'] || null,
301
+ groupKey: 'style',
302
+ setting: {
303
+ type: 'padding',
304
+ },
305
+ placeholder: '请填充设置',
306
+ inline: false,
307
+ notice: `设置内填充,<span style="color: red">单位:像素</span>。默认值:<span style="color:red">${data['listLayout'] === 'slide'?32:0}</span>像素`,
308
+ },
309
+
310
+ //废弃样式(不可删除)
311
+ {
312
+ label: '背景颜色:',
313
+ ele: 'xd-color',
314
+ hidden:true,
315
+ valueKey: 'titleBackgroundColor',
316
+ value: data['titleBackgroundColor'] || '',
317
+ placeholder: '请选择背景颜色',
318
+ classNmae: 'input80',
319
+ groupKey: 'style',
320
+ },
321
+ {
322
+ label: '选中背景颜色:',
323
+ hidden:true,
324
+ ele: 'xd-color',
325
+ valueKey: 'titleActBackgroundColor',
326
+ value: data['titleActBackgroundColor'] || '',
327
+ placeholder: '请选择选中背景颜色',
328
+ classNmae: 'input80',
329
+ groupKey: 'style',
330
+ },
331
+ {
332
+ label: '文字颜色:',
333
+ ele: 'xd-color',
334
+ hidden:true,
335
+ valueKey: 'titleTextColor',
336
+ value: data['titleTextColor'] || '',
337
+ placeholder: '请选择文字颜色',
338
+ classNmae: 'input80',
339
+ groupKey: 'style',
340
+ },
341
+ {
342
+ label: '选中文字颜色:',
343
+ hidden:true,
344
+ ele: 'xd-color',
345
+ valueKey: 'titleActTextColor',
346
+ value: data['titleActTextColor'] || '',
347
+ placeholder: '请选择选中文字颜色',
348
+ classNmae: 'input80',
349
+ groupKey: 'style',
350
+ },
351
+ //废弃样式(不可删除)
352
+
353
+ {
354
+ ele: 'title',
355
+ label: '标题设置',
356
+ size: 'small',
357
+ groupKey: 'style',
358
+ },
359
+ {
360
+ ele: 'line',
361
+ label: '选项设置',
362
+ size: 'small',
363
+ groupKey: 'style',
364
+ },
365
+ {
366
+ label: '背景色:',
367
+ ele: 'xd-color',
368
+ valueKey: 'tabBgColor',
369
+ value: data['tabBgColor'] || '',
370
+ placeholder: '请选择背景色',
371
+ classNmae: 'input80',
372
+ groupKey: 'style',
373
+ labelInline: true,
374
+ setting: {
375
+ showAlpha: true
376
+ }
377
+ },
378
+ {
379
+ label: "列间距:",
380
+ groupKey: 'style',
381
+ ele: 'xd-slider',
382
+ valueKey: "tabSpacing",
383
+ value: data['tabSpacing']===undefined?0:data['tabSpacing'],
384
+ className: "input80",
385
+ labelInline: true,
386
+ setting:{
387
+ min: 0,//最小值
388
+ max: 80, //最小值
389
+ step:1, //步长
390
+ showStops:false,//显示间断点
391
+ }
392
+ },
393
+ {
394
+ label: "圆角设置:",
395
+ groupKey: 'style',
396
+ ele: 'xd-slider',
397
+ valueKey: "tabRadius",
398
+ value: data['tabRadius']===undefined?0:data['tabRadius'],
399
+ className: "input80",
400
+ labelInline: true,
401
+ setting:{
402
+ min: 0,//最小值
403
+ max: 80, //最小值
404
+ step:1, //步长
405
+ showStops:false,//显示间断点
406
+ }
407
+ },
408
+ {
409
+ label: '填充设置:',
410
+ ele: 'xd-margin-padding',
411
+ valueKey: 'tabPadding',
412
+ value: data['tabPadding'] || null,
413
+ groupKey: 'style',
414
+ setting: {
415
+ type: 'padding',
416
+ },
417
+ placeholder: '请填充设置',
418
+ inline: false,
419
+ notice: '设置内填充,<span style="color: red">单位:像素</span>。默认值:<span style="color:red">0</span>像素',
420
+ },
421
+ {
422
+ label: '选项样式设置:',
423
+ ele: 'xd-text-and-bgc',
424
+ groupKey:'style',
425
+ valueKey: 'tabStyle',
426
+ value: data['tabStyle'] || null,
427
+ setting: {
428
+ fontSize: true,
429
+ weight:true,
430
+ bgColor:true,
431
+ selected:true,
432
+ default:{
433
+ color: '#999',
434
+ fontSize: '28rpx',
435
+ fontWeight:'normal',
436
+ bgColor:'',
437
+ actColor: '#fff',
438
+ actFontSize: '28rpx',
439
+ actFontWeight:'normal',
440
+ actBgColor:''
441
+ }
442
+ },
443
+ handleCustom({action, data}) {
444
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
445
+ .then(res => {
446
+ data.cb(res.list)
447
+ })
448
+ .catch(error => {
449
+ console.error(error);
450
+ data.cb([])
451
+ });
452
+ },
453
+ },
454
+ {
455
+ ele: 'line',
456
+ label: '查看更多',
457
+ size: 'small',
458
+ groupKey: 'style',
459
+ },
460
+ {
461
+ label: '是否展示全部:',
462
+ ele: 'xd-radio',
463
+ valueKey: 'isShowMore',
464
+ value: data['isShowMore'] || 'Y',
465
+ multiple: false,
466
+ className: 'input80',
467
+ groupKey: 'style',
468
+ labelInline: true,
469
+ list: [
470
+ {label: '展示', value: 'Y'},
471
+ {label: '隐藏', value: 'N'},
472
+ ]
473
+ },
474
+ {
475
+ label: '自定义名称:',
476
+ ele: 'el-input',
477
+ type: 'text',
478
+ valueKey: 'moreName',
479
+ value: data.moreName || '',
480
+ placeholder: '请输入全部自定义名称',
481
+ className: 'input50',
482
+ groupKey: 'style',
483
+ notice: '已配置全部品牌跳转路径,此项配置生效,默认值:<span style="color: red">全部</span>',
484
+ labelInline: true,
485
+ inline: false,
486
+ },
487
+ {
488
+ label: "圆角设置:",
489
+ groupKey: 'style',
490
+ ele: 'xd-slider',
491
+ valueKey: "moreRadius",
492
+ value: data['moreRadius']===undefined?0:data['moreRadius'],
493
+ className: "input80",
494
+ labelInline: true,
495
+ setting:{
496
+ min: 0,//最小值
497
+ max: 80, //最小值
498
+ step:1, //步长
499
+ showStops:false,//显示间断点
500
+ }
501
+ },
502
+ {
503
+ label: '文字颜色:',
504
+ ele: 'xd-color',
505
+ valueKey: 'moreNameTextColor',
506
+ value: data['moreNameTextColor'] || '',
507
+ placeholder: '请选择更多文字颜色',
508
+ classNmae: 'input80',
509
+ groupKey: 'style',
510
+ hidden: true,
511
+ },
512
+ {
513
+ label: '样式设置:',
514
+ ele: 'xd-text-and-bgc',
515
+ groupKey:'style',
516
+ valueKey: 'moreStyle',
517
+ value: data['moreStyle'] || null,
518
+ setting: {
519
+ fontSize: true,
520
+ weight:true,
521
+ bgColor:true,
522
+ selected:false,
523
+ default:{
524
+ color: '#999',
525
+ fontSize: '28rpx',
526
+ fontWeight:'normal',
527
+ bgColor:'',
528
+ }
529
+ },
530
+ handleCustom({action, data}) {
531
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
532
+ .then(res => {
533
+ data.cb(res.list)
534
+ })
535
+ .catch(error => {
536
+ console.error(error);
537
+ data.cb([])
538
+ });
539
+ },
540
+ },
541
+
542
+
543
+ //废弃样式(不可删除)
544
+ {
545
+ ele: 'title',
546
+ label: '内容设置',
547
+ size: 'small',
548
+ groupKey: 'style',
549
+ },
550
+ {
551
+ ele: 'line',
552
+ label: '基础',
553
+ size: 'small',
554
+ groupKey: 'style',
555
+ },
556
+ {
557
+ label: '背景颜色:',
558
+ ele: 'xd-color',
559
+ valueKey: 'contBgColor',
560
+ value: data['contBgColor'] || '',
561
+ placeholder: '请选择背景颜色',
562
+ classNmae: 'input80',
563
+ groupKey: 'style',
564
+ setting: {
565
+ showAlpha: true
566
+ }
567
+ },
568
+ {
569
+ ele: 'line',
570
+ label: '内容',
571
+ size: 'small',
572
+ groupKey: 'style',
573
+ },
574
+ {
575
+ label: "内容列间距:",
576
+ groupKey: 'style',
577
+ ele: 'xd-slider',
578
+ valueKey: "padding",
579
+ value: (data['padding']===undefined ||data['padding']==='')?32:data['padding'],
580
+ className: "input80",
581
+ labelInline: true,
582
+ setting:{
583
+ min: 0,//最小值
584
+ max: 60, //最小值
585
+ step:1, //步长
586
+ showStops:false,//显示间断点
587
+ showInput:false,//显示输入框
588
+ }
589
+ },
590
+ data['listLayout'] === 'carousel' && {
591
+ label: "内容行间距:",
592
+ groupKey: 'style',
593
+ ele: 'xd-slider',
594
+ valueKey: "rowSpacing",
595
+ value: data['rowSpacing'] === undefined?10:data['rowSpacing'],
596
+ className: "input80",
597
+ labelInline: true,
598
+ setting:{
599
+ min: 0,//最小值
600
+ max: 40, //最小值
601
+ step:1, //步长
602
+ showStops:false,//显示间断点
603
+ }
604
+ },
605
+ {
606
+ label: '填充设置:',
607
+ ele: 'xd-margin-padding',
608
+ valueKey: 'itemPadding',
609
+ value: data['itemPadding'] || null,
610
+ groupKey: 'style',
611
+ setting: {
612
+ type: 'padding',
613
+ },
614
+ placeholder: '请填充设置',
615
+ inline: false,
616
+ notice: `设置内填充,<span style="color: red">单位:像素</span>。默认值:<span style="color:red">${data['listLayout'] !== 'carousel'?'32,0,0,0':'20'}</span>像素`,
617
+ },
618
+ {
619
+ label: `${data['listLayout'] !== 'carousel'?'':'图标'}背景颜色:`,
620
+ ele: 'xd-color',
621
+ valueKey: 'backgroundColor',
622
+ value: data['backgroundColor'] || '',
623
+ placeholder: '请选择背景颜色',
624
+ classNmae: 'input60',
625
+ groupKey: 'style',
626
+ labelInline: true,
627
+ setting: {
628
+ showAlpha: true
629
+ }
630
+ },
631
+ {
632
+ label: `${data['listLayout'] !== 'carousel'?'':'图标'}投影设置:`,
633
+ ele: 'xd-shadow',
634
+ groupKey:'style',
635
+ valueKey: 'itemShadow',
636
+ value: defContShadow,
637
+ labelInline: true,
638
+ setting: {
639
+ selected: defContShadow.type,
640
+ },
641
+ handleCustom({action, data}) {
642
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
643
+ .then(res => {
644
+ data.cb(res.list)
645
+ })
646
+ .catch(error => {
647
+ console.error(error);
648
+ data.cb([])
649
+ });
650
+ },
651
+ },
652
+ {
653
+ label: `${data['listLayout'] !== 'carousel'?'':'图标'}边框设置:`,
654
+ ele: 'xd-border',
655
+ groupKey:'style',
656
+ valueKey: 'itemBorder',
657
+ value: defContBorder,
658
+ labelInline: true,
659
+ setting: {
660
+ selected:defContBorder.type
661
+ },
662
+ },
663
+ {
664
+ label: "图标圆角设置:",
665
+ groupKey: 'style',
666
+ ele: 'xd-slider',
667
+ valueKey: "iconRadius",
668
+ value: data['iconRadius'] === undefined?0:data['iconRadius'],
669
+ className: "input80",
670
+ labelInline: true,
671
+ setting:{
672
+ min: 0,//最小值
673
+ max: 100, //最小值
674
+ step:1, //步长
675
+ showStops:false,//显示间断点
676
+ showInput:false,//显示输入框
677
+ }
678
+ },
679
+ {
680
+ label: "字体样式设置:",
681
+ ele: "xd-font",
682
+ valueKey: "listTitle",
683
+ value: data.listTitle || {},
684
+ groupKey:'style',
685
+ setting: {
686
+ color:true, //颜色
687
+ fontSize: true, //字体大小
688
+ decoration: true, //文字的装饰线,none |underline |line-through | overline
689
+ weight: true,
690
+ icon: false, //图标
691
+ style:false, //字体:normal | italic
692
+ align:false,//normal|left|right|center
693
+ lineHeight: false, //行高
694
+ isEmpty: true,
695
+ default:{
696
+ color:'#777',
697
+ fontSize:'24rpx',
698
+ style:'normal',
699
+ align:'left',
700
+ lineHeight: '36rpx',
701
+ decoration:'none',
702
+ weight:'normal'
703
+ }
704
+ },
705
+ handleCustom({action, data}) {
706
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
707
+ .then(res => {
708
+ data.cb(res.list)
709
+ })
710
+ .catch(error => {
711
+ data.cb([])
712
+ console.error(error);
713
+ });
714
+ },
715
+
716
+ },
717
+
718
+ //废弃样式(不可删除)
719
+ {
720
+ label: '是否有投影:',
721
+ ele: 'xd-radio',
722
+ valueKey: 'is_shadow',
723
+ value: data['is_shadow'] || 'N',
724
+ placeholder: '请选择是否投影',
725
+ multiple: false,
726
+ className: 'input80',
727
+ groupKey: 'style',
728
+ hidden:true,
729
+ list: [
730
+ {label: '是', value: 'Y'},
731
+ {label: '否', value: 'N'},
732
+ ]
733
+ },
734
+ {
735
+ label: '投影颜色:',
736
+ ele: 'xd-color',
737
+ valueKey: 'is_shadow_bg',
738
+ value: data['is_shadow_bg'] || '',
739
+ placeholder: '请选择投影颜色',
740
+ classNmae: 'input80',
741
+ groupKey: 'style',
742
+ hidden:true,
743
+ },
744
+ {
745
+ label: '投影范围:',
746
+ ele: 'xd-site-select-list',
747
+ valueKey: 'is_shadow_w',
748
+ value: data['is_shadow_w'] || '10',
749
+ placeholder: '请选择投影范围',
750
+ multiple: false,
751
+ hidden:true,
752
+ groupKey: 'style',
753
+ className: 'input80',
754
+ handleCustom({action, data}) {
755
+ XdBus.getParentApi('getOptionsSettingList')({
756
+ setting_id: 'edtix_style_radius',
757
+ key: Date.now()
758
+ })
759
+ .then(res => {
760
+ data.cb(res.list)
761
+ })
762
+ .catch(error => {
763
+ console.error(error);
764
+ });
765
+ },
766
+ },
767
+ {
768
+ label: '是否有边框:',
769
+ ele: 'xd-radio',
770
+ valueKey: 'is_border',
771
+ value: data['is_border'] || 'N',
772
+ placeholder: '请选择是否有边框',
773
+ groupKey: 'style',
774
+ multiple: false,
775
+ hidden:true,
776
+ className: 'input80',
777
+ list: [
778
+ {label: '是', value: 'Y'},
779
+ {label: '否', value: 'N'},
780
+ ]
781
+ },
782
+ {
783
+ label: '边框颜色:',
784
+ ele: 'xd-color',
785
+ hidden:true,
786
+ valueKey: 'is_border_c',
787
+ value: data['is_border_c'] || '',
788
+ placeholder: '请选择边框颜色',
789
+ classNmae: 'input80',
790
+ groupKey: 'style',
791
+ },
792
+ {
793
+ label: '边框大小:',
794
+ ele: 'el-input',
795
+ hidden:true,
796
+ type: 'number',
797
+ valueKey: 'is_border_w',
798
+ value: data['is_border_w'] || '',
799
+ placeholder: '请输入边框颜色',
800
+ className: 'input80',
801
+ groupKey: 'style',
802
+ },
803
+ //废弃样式(不可删除)
804
+
805
+
806
+ {
807
+ label: "选择业务线",
808
+ ele: "xd-choose-namespace",
809
+ valueKey: "xnamespace",
810
+ value: data.xnamespace || "",
811
+ groupKey:'advanced',
812
+ className: 'input60',
813
+ handleCustom: (cb) => {
814
+ XdBus.getParentApi('getOptionsNamespaces')()
815
+ .then(res => {
816
+ cb(res.list)
817
+ })
818
+ .catch();
819
+ },
820
+ },
821
+ {
822
+ label: '是否开启城市筛选:',
823
+ ele: 'xd-radio',
824
+ valueKey: 'isCityFilter',
825
+ value: data['isCityFilter'] || 'N',
826
+ placeholder: '请选择是否开启城市筛选',
827
+ multiple: false,
828
+ labelInline: true,
829
+ groupKey:'advanced',
830
+ list: [
831
+ {label: '开启', value: 'Y'},
832
+ {label: '关闭', value: 'N'},
833
+ ]
834
+ },
835
+ {
836
+ label: '全部品牌跳转路径:',
837
+ ele: 'xd-select-pages-path',
838
+ valueKey: 'allBrandPath',
839
+ placeholder: '请选择全部分类路径',
840
+ groupKey:'advanced',
841
+ className: 'input100',
842
+ value: data.allBrandPath || null,
843
+ setting: {
844
+ router: XdBus.getParentApi('getPagesTree'),
845
+ },
846
+ inline: false,
847
+ notice:'未设置跳转地址将不会显示<span style="color:red">全部</span>按钮'
848
+ },
849
+ {
850
+ label: '线上品牌跳转路径:',
851
+ ele: 'xd-select-pages-path',
852
+ valueKey: 'onlineBrandPath',
853
+ placeholder: '请选择线上品牌路径',
854
+ className: 'input100',
855
+ value: data.onlineBrandPath || null,
856
+ groupKey: 'advanced',
857
+ setting: {
858
+ router: XdBus.getParentApi('getPagesTree'),
859
+ },
860
+ },
861
+ {
862
+ label: '线下品牌跳转路径:',
863
+ ele: 'xd-select-pages-path',
864
+ valueKey: 'offlineBrandPath',
865
+ placeholder: '请选择线下品牌路径',
866
+ className: 'input100',
867
+ value: data.offlineBrandPath || null,
868
+ setting: {
869
+ router: XdBus.getParentApi('getPagesTree'),
870
+ },
871
+ groupKey: 'advanced',
872
+ },
211
873
 
212
- ...advanced(data)
213
874
  ].filter(i => i);
214
875
  },
215
876
  }