jufubao-mall 2.0.20-beta5 → 2.0.20-beta6
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/JfbMallBrandWall/JfbMallBrandWall.vue +14 -9
- package/src/components/JfbMallBrandWall/cusAttr/tab.js +1 -2
- package/src/components/JfbMallProductList/Api.js +4 -4
- package/src/components/JfbMallProductList/ComFilterQuery.vue +12 -7
- package/src/components/JfbMallProductList/JfbMallProductList.vue +22 -15
- package/src/components/JfbMallProductList/XdCateV1.vue +17 -1
- package/src/components/JfbMallProductList/XdCateV2.vue +8 -3
- package/src/components/JfbMallProductList/cateMixins.js +14 -2
- package/src/components/JfbMallProductList/cusAttr/content.js +33 -2
- package/src/components/JfbMallProductList/cusAttr/filter.js +6 -3
- package/src/components/JfbMallProductList/cusAttr/icon.js +2 -2
- package/src/components/JfbMallRecommendProduct/cusAttr/style.js +4 -1
package/package.json
CHANGED
|
@@ -285,7 +285,6 @@
|
|
|
285
285
|
outWdith += 172;
|
|
286
286
|
if(this.titleBorderWidth) outWdith += this.titleBorderWidth * 2;
|
|
287
287
|
if(this.titleBorderWidth === 0 && this.vStyle === 'v1') outWdith +=2
|
|
288
|
-
outWdith += this.getPMValue(this.tabPadding, 'RL', 0);
|
|
289
288
|
}
|
|
290
289
|
outWdith += this.getPMValue(this.listMargin, 'RL',0);
|
|
291
290
|
outWdith += this.getPMValue(this.listPadding, 'RL',0);
|
|
@@ -392,7 +391,7 @@
|
|
|
392
391
|
},
|
|
393
392
|
tabListComp(){
|
|
394
393
|
let temp = {};
|
|
395
|
-
if(this.layout
|
|
394
|
+
if(['v1','v2'].includes(this.layout)) {
|
|
396
395
|
temp['paddingLeft'] = (this.tabPadding.left || 0) + 'rpx';
|
|
397
396
|
temp['paddingRight'] = (this.tabPadding.right || 0) + 'rpx';
|
|
398
397
|
temp['paddingBottom'] = (this.tabPadding.bottom || 0) + 'rpx';
|
|
@@ -478,13 +477,17 @@
|
|
|
478
477
|
return style
|
|
479
478
|
},
|
|
480
479
|
tabItemNameStyle(){
|
|
481
|
-
if(this.layout === 'v2') return {
|
|
480
|
+
if(this.layout === 'v2') return {
|
|
481
|
+
fontSize: parseInt(this.titleStyle.fontSize) + 'rpx',
|
|
482
|
+
fontWeight: this.titleStyle.fontWeight,
|
|
483
|
+
color: this.titleStyle.color,
|
|
484
|
+
}
|
|
482
485
|
return {
|
|
483
486
|
borderRadius:['v1'].includes(this.hStyle)?'60rpx': 0,
|
|
484
487
|
backgroundColor: ['v1'].includes(this.hStyle) ? this.titleStyle.bgColor:'',
|
|
485
488
|
color: this.titleStyle.color,
|
|
486
489
|
padding:'0 32rpx',
|
|
487
|
-
fontSize: this.titleStyle.fontSize + 'rpx',
|
|
490
|
+
fontSize: parseInt(this.titleStyle.fontSize) + 'rpx',
|
|
488
491
|
fontWeight: this.titleStyle.fontWeight,
|
|
489
492
|
}
|
|
490
493
|
},
|
|
@@ -509,6 +512,8 @@
|
|
|
509
512
|
return {
|
|
510
513
|
backgroundColor: bgColor,
|
|
511
514
|
color: color,
|
|
515
|
+
fontSize: parseInt(this.titleStyle.actFontSize) + 'rpx',
|
|
516
|
+
fontWeight: this.titleStyle.actFontWeight,
|
|
512
517
|
}
|
|
513
518
|
}
|
|
514
519
|
|
|
@@ -530,7 +535,7 @@
|
|
|
530
535
|
backgroundImage: bgImage,
|
|
531
536
|
padding: '0 32rpx',
|
|
532
537
|
color: color,
|
|
533
|
-
fontSize:
|
|
538
|
+
fontSize: parseInt(this.titleStyle.actFontSize) + 'rpx',
|
|
534
539
|
fontWeight: this.titleStyle.actFontWeight,
|
|
535
540
|
}
|
|
536
541
|
},
|
|
@@ -702,16 +707,16 @@
|
|
|
702
707
|
[{
|
|
703
708
|
color: titleColor || '#333',
|
|
704
709
|
bgColor: titleBgcColor || '#fff' ,
|
|
705
|
-
fontSize: '32',
|
|
710
|
+
fontSize: this.layout === 'v2' ?'24':'32',
|
|
706
711
|
fontWeight: '400',
|
|
707
712
|
actColor: titleActColor || '',
|
|
708
|
-
actFontWeight: '
|
|
709
|
-
actFontSize: '32',
|
|
713
|
+
actFontWeight: '500',
|
|
714
|
+
actFontSize: this.layout === 'v2' ?'24':'32',
|
|
710
715
|
actBgColor:this.titleBgcActColor || '',
|
|
711
716
|
}],
|
|
712
717
|
{sKey:'titleStyleStatus',fields:['titleStyle'],isMerge: true},
|
|
713
718
|
);
|
|
714
|
-
this.titleShadow = gCPVal(container, 'titleShadow', [this.gStyleValue.shadow,'none'], {isShadow:true, bsOld:['isTitleShadow','isTitleShadowBgcW','isTitleShadowBgc']});
|
|
719
|
+
this.titleShadow = gCPVal(container, 'titleShadow', [this.gStyleValue.shadow , 'none'], {isShadow:true, bsOld:['isTitleShadow','isTitleShadowBgcW','isTitleShadowBgc']});
|
|
715
720
|
this.titleBorder = gCPVal(container, 'titleBorder', [{color: '#eee', width: '0', style: 'solid'},{color: '#eee', width: '0', style: 'solid'}], {isBorder:true, bsOld:['isTitleBorder','isTitleBorderW','isTitleBorderColor']});
|
|
716
721
|
this.titleBorderWidth = gCPVal(container, 'titleBorder', [{color: '#eee', width: '0', style: 'solid'},{color: '#eee', width: '0', style: 'solid'}], {isBorder:true,isBsWidth: true, bsOld:['isTitleBorder','isTitleBorderW','isTitleBorderColor']});
|
|
717
722
|
|
|
@@ -4,7 +4,6 @@ import {dataVal, statusDataVal, statusShow, clone, cRaBorShadow,isDefStatus} fro
|
|
|
4
4
|
|
|
5
5
|
export default (datas, gValue, gColor, oldData={})=>{
|
|
6
6
|
let data = clone(datas);
|
|
7
|
-
debugger
|
|
8
7
|
if(typeof data['tabPadding'] === 'string' && data['tabPadding'] ) {
|
|
9
8
|
data['tabPadding'] = {
|
|
10
9
|
top: Number(data['tabPadding']),
|
|
@@ -100,7 +99,7 @@ export default (datas, gValue, gColor, oldData={})=>{
|
|
|
100
99
|
fontSize:'32',
|
|
101
100
|
fontWeight: '400',
|
|
102
101
|
actFontSize:'32',
|
|
103
|
-
actFontWeight: '
|
|
102
|
+
actFontWeight: '500',
|
|
104
103
|
actColor: data['titleActColor'] || gValue.mainColor,
|
|
105
104
|
actBgColor: data['titleBgcActColor'] || ''
|
|
106
105
|
},
|
|
@@ -33,14 +33,14 @@ module.exports = [
|
|
|
33
33
|
disabled: true,
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
|
-
mapFnName: '
|
|
36
|
+
mapFnName: 'getNewMallCategoryTree',
|
|
37
37
|
title: '分类 - 树列表',
|
|
38
|
-
path: '/product/v1/:xnamespace/category/
|
|
38
|
+
path: '/product/v1/:xnamespace/category/tree',
|
|
39
39
|
isRule: false,
|
|
40
40
|
params: {
|
|
41
41
|
xnamespace: ['xnamespace', 'String', '必选'],
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
level: ['获取几层数据,默认:2', 'Number', '必选', 2],
|
|
43
|
+
root_category_id: ['父级分类,默认:0', 'Number', '必选', 0],
|
|
44
44
|
},
|
|
45
45
|
isConsole: true,
|
|
46
46
|
disabled: true,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<view class="jfb-filter" v-if="showQuery === 'Y'" :style="[cssStyle]">
|
|
3
|
+
|
|
3
4
|
<view class="jfb-filter-placeholder" :style="[placeholderStyleComp]"></view>
|
|
4
5
|
<view class="jfb-filter-menu" :style="[cusMenuStyle,menuStyleTopComp]">
|
|
5
6
|
<template v-if="sortList.length > 0">
|
|
@@ -95,7 +96,7 @@
|
|
|
95
96
|
:class="{
|
|
96
97
|
active: isOtherActive(tab, item.value),
|
|
97
98
|
noMarginRigth: i%column === (column-1),
|
|
98
|
-
noMarginTop: i/column
|
|
99
|
+
noMarginTop: i/column < 1
|
|
99
100
|
}"
|
|
100
101
|
@click="setOhterChooseTag(tab, item)"
|
|
101
102
|
>{{item.label}}</view>
|
|
@@ -252,19 +253,19 @@ export default {
|
|
|
252
253
|
return {
|
|
253
254
|
zIndex: this.showQueryModal ? 1002 : 1,
|
|
254
255
|
position:this.$configProject.isPreview?'absolute':'fixed',
|
|
255
|
-
top: this.$configProject.isPreview ? 0 : this.queryMaskComp.top
|
|
256
|
+
top: this.$configProject.isPreview ? 0 : (parseInt(this.queryMaskComp.top) - 2) + 'rpx',
|
|
256
257
|
}
|
|
257
258
|
},
|
|
258
259
|
queryTopComp(){
|
|
259
260
|
let {paddingTb} = this.cusMenuStyle;
|
|
260
261
|
let height = 48;//默认90高,填充0
|
|
261
262
|
return {
|
|
262
|
-
top: this.topHeight + this.layoutInfo.top + (height + paddingTb -
|
|
263
|
+
top: this.topHeight + this.layoutInfo.top + (height + paddingTb - 2) + 'rpx'
|
|
263
264
|
}
|
|
264
265
|
},
|
|
265
266
|
menuTextColorComp(){
|
|
266
267
|
return {
|
|
267
|
-
color: this.cusMenuStyle.color || '#
|
|
268
|
+
color: this.cusMenuStyle.color || '#999'
|
|
268
269
|
}
|
|
269
270
|
},
|
|
270
271
|
|
|
@@ -331,7 +332,7 @@ export default {
|
|
|
331
332
|
if(this.menuAct !== 'common') {
|
|
332
333
|
params = {
|
|
333
334
|
...params,
|
|
334
|
-
borderColor: Color(font.color).alpha(0.
|
|
335
|
+
borderColor: Color(font.color).alpha(0.2).toString(),
|
|
335
336
|
backgroundColor: Color(font.color).alpha(0.1).toString(),
|
|
336
337
|
}
|
|
337
338
|
}
|
|
@@ -776,7 +777,8 @@ export default {
|
|
|
776
777
|
border-top: 1px solid var(--com-menu-border);
|
|
777
778
|
display: flex;
|
|
778
779
|
justify-content: space-around;
|
|
779
|
-
height:
|
|
780
|
+
height: 49rpx;
|
|
781
|
+
|
|
780
782
|
|
|
781
783
|
&-item {
|
|
782
784
|
display: flex;
|
|
@@ -893,7 +895,7 @@ export default {
|
|
|
893
895
|
|
|
894
896
|
& > ._tag {
|
|
895
897
|
text-align: center;
|
|
896
|
-
line-height:
|
|
898
|
+
line-height: 62rpx;
|
|
897
899
|
border-radius: 4rpx;
|
|
898
900
|
font-size: 24rpx;
|
|
899
901
|
color: #666;
|
|
@@ -902,6 +904,9 @@ export default {
|
|
|
902
904
|
white-space: nowrap;
|
|
903
905
|
box-sizing: border-box;
|
|
904
906
|
background-color: #f8f8f8;
|
|
907
|
+
border-width: 2rpx;
|
|
908
|
+
border-style: solid;
|
|
909
|
+
padding: 0 10rpx;
|
|
905
910
|
|
|
906
911
|
&.noMarginRigth{
|
|
907
912
|
margin-right: 0!important;
|
|
@@ -24,7 +24,6 @@
|
|
|
24
24
|
<view v-if="!loaded" class="skeleton-cate">
|
|
25
25
|
<view class="cate_tab" v-if="showCategory === 'Y'">
|
|
26
26
|
<view class="cate_tab_item" v-for="i in 5" :key="i"></view>
|
|
27
|
-
|
|
28
27
|
</view>
|
|
29
28
|
<view class="sub_cate" v-if="showCategory === 'Y'">
|
|
30
29
|
<view class="sub_cate_item" v-for="i in 5" :key="i">
|
|
@@ -449,6 +448,12 @@
|
|
|
449
448
|
if(this.initStatus && this.onLoadStatus) this.handleInit();
|
|
450
449
|
},
|
|
451
450
|
|
|
451
|
+
filterModeData(){
|
|
452
|
+
if(this.$configProject.isPreview) {
|
|
453
|
+
this.$refs['filter-query'].hideSelectMenu();//隐藏菜单
|
|
454
|
+
}
|
|
455
|
+
},
|
|
456
|
+
|
|
452
457
|
},
|
|
453
458
|
created() {
|
|
454
459
|
this.isPreview = this.$configProject.isPreview;
|
|
@@ -663,7 +668,7 @@
|
|
|
663
668
|
let defFilterBgcColor = '#fff';
|
|
664
669
|
if( category ==='v4') defFilterBgcColor = this.pageAttr.background;
|
|
665
670
|
this.filterBgcColor = gCPVal(container, 'filterBgcColor', [defFilterBgcColor,'#fff'], {sKey: 'filterBgcColorStatus',fields:['filterBgcColor']});
|
|
666
|
-
this.filterColor = gCPVal(container, 'filterColor', ['#
|
|
671
|
+
this.filterColor = gCPVal(container, 'filterColor', ['#333'], {sKey: 'filterColorStatus',fields:['filterColor']});
|
|
667
672
|
this.filterTopBorder = gCPVal(container, 'filterTopBorder', [{ color: '#f8f8f8', width: '2', style: 'solid'},{ color: '#f8f8f8', width: '0', style: 'solid'}], {isBorder:true});
|
|
668
673
|
this.filterTopBorderWidth = gCPVal(container, 'filterTopBorder', [{ color: '#f8f8f8', width: '2', style: 'solid'},{ color: '#f8f8f8', width: '0', style: 'solid'}], {isBorder:true, isBsWidth: true});
|
|
669
674
|
|
|
@@ -809,22 +814,25 @@
|
|
|
809
814
|
|
|
810
815
|
//二级导航文字颜色
|
|
811
816
|
this.level2BgcColor = gCPVal(container, 'level2BgcColor', ['#fff','#f8f8f8'],{sKey:'level2BgcColorStatus', fields:['level2BgcColor']});
|
|
817
|
+
|
|
818
|
+
let color = gCPVal(container, 'level2Color', '') || '#333',
|
|
819
|
+
actColoor= this.mainColor , bgColor='',bgActColor='';
|
|
820
|
+
if(categoryLayout1ShowType === 'parentNew') {
|
|
821
|
+
actColoor = '#fff';
|
|
822
|
+
bgActColor = this.mainColor;
|
|
823
|
+
}
|
|
824
|
+
|
|
812
825
|
const level2Name = gCPVal(container, 'level2Name', {
|
|
813
826
|
fontSize: '24',
|
|
814
827
|
actFontSize: '24',
|
|
815
|
-
color:
|
|
816
|
-
actColor:
|
|
817
|
-
bgColor:
|
|
818
|
-
actBgColor:
|
|
828
|
+
color: color,
|
|
829
|
+
actColor:actColoor,
|
|
830
|
+
bgColor:bgColor,
|
|
831
|
+
actBgColor:bgActColor,
|
|
819
832
|
fontWeight: 'normal',
|
|
820
833
|
actFontWeight: 'normal',
|
|
821
|
-
borderStyle:'solid',
|
|
822
|
-
borderColor: 'rgba(0,0,0,0)',
|
|
823
|
-
borderWidth: 0,
|
|
824
|
-
borderActStyle:'solid',
|
|
825
|
-
borderActColor: 'rgba(0,0,0,0)',
|
|
826
|
-
borderActWidth:0,
|
|
827
834
|
},{sKey:'level2NameStatus', fields:['level2Name','level2Color'],isMerge: true});
|
|
835
|
+
debugger
|
|
828
836
|
|
|
829
837
|
const subTitleRadius = gCPVal(container, 'subTitleRadius', ['40rpx'],{sKey:'subTitleRadiusStatus', fields:['subTitleRadius']})||0;
|
|
830
838
|
const subTitleIconShadow = gCPVal(container, 'subTitleIconShadow', [this.gStyleValue.shadow,'none'], {isShadow:true});
|
|
@@ -1047,13 +1055,12 @@
|
|
|
1047
1055
|
getCategoryList(){
|
|
1048
1056
|
return new Promise((resolve)=>{
|
|
1049
1057
|
if(this.showCategory==="Y") {
|
|
1050
|
-
jfbRootExec("
|
|
1058
|
+
jfbRootExec("getNewMallCategoryTree", {
|
|
1051
1059
|
vm: this,
|
|
1052
1060
|
data: {
|
|
1053
1061
|
xnamespace: this.xnamespace,
|
|
1054
|
-
|
|
1062
|
+
root_category_id: Number(this.parentId),
|
|
1055
1063
|
level: 2,
|
|
1056
|
-
need_rec: this.options.need_rec
|
|
1057
1064
|
}
|
|
1058
1065
|
})
|
|
1059
1066
|
.then(res => {
|
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
<image :src="sub.category_icon" style="width:100%;height:100%"/>
|
|
58
58
|
</view>
|
|
59
59
|
</view>
|
|
60
|
+
<view style="margin-top: 8rpx; height: 36rpx"></view>
|
|
60
61
|
<view
|
|
61
62
|
class="sub_name"
|
|
62
63
|
:style="[sub.category_id === (['child','parentNew'].includes(showType)? uiPid:uiCateId )?level2ActNameComp:level2NameComp]"
|
|
@@ -332,13 +333,14 @@ export default {
|
|
|
332
333
|
|
|
333
334
|
methods: {
|
|
334
335
|
init(navList, pid){
|
|
336
|
+
debugger
|
|
335
337
|
if(navList.length === 0) return;
|
|
336
338
|
|
|
337
339
|
//预览模式生效
|
|
338
340
|
if(this.isPreview) {
|
|
339
341
|
navList = navList.filter(item=>{
|
|
340
342
|
//显示父级显示全部分类
|
|
341
|
-
if(['all', 'parent','parentNew'].includes(this.showType)) return true
|
|
343
|
+
if(['all', 'parent','parentNew','child'].includes(this.showType)) return true
|
|
342
344
|
//只显示子级去掉全部分类
|
|
343
345
|
else return item.category_id !== -1
|
|
344
346
|
});
|
|
@@ -353,6 +355,14 @@ export default {
|
|
|
353
355
|
this.subCategory = navList[this.tabIndex].children;
|
|
354
356
|
}
|
|
355
357
|
|
|
358
|
+
//图片样式作为一级显示时候(预览模式)
|
|
359
|
+
if(['child','parentNew'].includes(this.showType)) {
|
|
360
|
+
if(this.pid === '') {
|
|
361
|
+
this.uiPid = -1;
|
|
362
|
+
this.initPid = -1;
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
|
|
356
366
|
this.transformNavList = navList;
|
|
357
367
|
this.refreshNav = Date.now()
|
|
358
368
|
|
|
@@ -504,12 +514,17 @@ export default {
|
|
|
504
514
|
align-content: center;
|
|
505
515
|
flex-flow: nowrap;
|
|
506
516
|
|
|
517
|
+
|
|
507
518
|
.sub_cate {
|
|
508
519
|
display: inline-block;
|
|
509
520
|
margin: 16rpx var(--sub-icon-right-sp) 16rpx 0;
|
|
510
521
|
padding: 0 16rpx;
|
|
511
522
|
text-align: center;
|
|
512
523
|
|
|
524
|
+
& > view {
|
|
525
|
+
position: relative;
|
|
526
|
+
}
|
|
527
|
+
|
|
513
528
|
&:last-child {
|
|
514
529
|
margin-right: 32rpx;
|
|
515
530
|
}
|
|
@@ -541,6 +556,7 @@ export default {
|
|
|
541
556
|
margin-top: 8rpx;
|
|
542
557
|
overflow: hidden;
|
|
543
558
|
white-space: wrap;
|
|
559
|
+
box-sizing: border-box;
|
|
544
560
|
word-break: break-all;
|
|
545
561
|
line-height: 36rpx;
|
|
546
562
|
height: 36rpx;
|
|
@@ -160,14 +160,19 @@ export default {
|
|
|
160
160
|
},
|
|
161
161
|
cateBarStyleRLComp(){
|
|
162
162
|
return {
|
|
163
|
-
backgroundColor: Color( this.styleConfig.backgroundColor).lighten(.2).hex().toString()
|
|
163
|
+
backgroundColor: Color( this.styleConfig.backgroundColor).lighten(.2).hex().toString(),
|
|
164
164
|
}
|
|
165
165
|
},
|
|
166
166
|
cateBarStyleComp(){
|
|
167
|
+
let orderColor = '';
|
|
168
|
+
let {backgroundColor} = this.styleConfig;
|
|
169
|
+
if(Color(backgroundColor).isDark()) orderColor = Color(backgroundColor).lighten(0.8).toString();
|
|
170
|
+
else if(Color(backgroundColor).isLight()) orderColor = Color(backgroundColor).darken(0.05).toString();
|
|
171
|
+
|
|
167
172
|
return {
|
|
168
173
|
top: this.$configProject.isPreview?0:(this.layoutInfo.top) + 'rpx',
|
|
169
174
|
backgroundColor: this.styleConfig.backgroundColor,
|
|
170
|
-
'--border-color':
|
|
175
|
+
'--border-color': orderColor,
|
|
171
176
|
position: this.$configProject.isPreview?'absolute':'fixed',
|
|
172
177
|
};
|
|
173
178
|
},
|
|
@@ -362,7 +367,7 @@ export default {
|
|
|
362
367
|
display: flex;
|
|
363
368
|
justify-content: center;
|
|
364
369
|
align-items: center;
|
|
365
|
-
border-left:
|
|
370
|
+
border-left: 4rpx solid var(--border-color);
|
|
366
371
|
background: #FFFFFF;
|
|
367
372
|
z-index: 1;
|
|
368
373
|
flex-shrink: 0;
|
|
@@ -25,9 +25,20 @@ export default {
|
|
|
25
25
|
borderWidth:level2Name.borderWidth + 'rpx',
|
|
26
26
|
borderColor:level2Name.borderColor,
|
|
27
27
|
padding: padding,
|
|
28
|
-
borderRadius: radius
|
|
28
|
+
borderRadius: radius,
|
|
29
|
+
...this.parentNewComp,
|
|
29
30
|
}
|
|
30
31
|
},
|
|
32
|
+
|
|
33
|
+
parentNewComp(){
|
|
34
|
+
return {
|
|
35
|
+
position: 'absolute',
|
|
36
|
+
bottom: '0',
|
|
37
|
+
left: '-16rpx',
|
|
38
|
+
width: `calc(100% + 32rpx)`
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
|
|
31
42
|
level2ActNameComp(){
|
|
32
43
|
if(this.$xdUniHelper.isEmpty(this.tabStyle)) return {}
|
|
33
44
|
if(this.$xdUniHelper.isEmpty(this.tabStyle['level2Name'])) return {}
|
|
@@ -48,7 +59,8 @@ export default {
|
|
|
48
59
|
borderWidth:level2Name.borderActWidth + 'rpx',
|
|
49
60
|
borderColor:level2Name.borderActColor,
|
|
50
61
|
padding: padding,
|
|
51
|
-
borderRadius: radius
|
|
62
|
+
borderRadius: radius,
|
|
63
|
+
...this.parentNewComp,
|
|
52
64
|
}
|
|
53
65
|
},
|
|
54
66
|
|
|
@@ -6,7 +6,8 @@ import {
|
|
|
6
6
|
customVal,
|
|
7
7
|
cusDisabled ,
|
|
8
8
|
getCustomAttr,
|
|
9
|
-
isArray
|
|
9
|
+
isArray,
|
|
10
|
+
isObject
|
|
10
11
|
} from "@/utils/AttrTools";
|
|
11
12
|
import PosterAttr from "@/utils/Attr/PosterAttr";
|
|
12
13
|
import ProductAttr from "@/utils/Attr/ProductAttr";
|
|
@@ -172,7 +173,23 @@ export default (data, gValue,gColor,oldData)=>{
|
|
|
172
173
|
inline:false,
|
|
173
174
|
notice:'建议尺寸:128*128像素',
|
|
174
175
|
rules: [
|
|
175
|
-
{
|
|
176
|
+
{
|
|
177
|
+
validator: (rule, value, callback) => {
|
|
178
|
+
if(!value) callback('请上传全部图片图片');
|
|
179
|
+
else {
|
|
180
|
+
if(!isObject(value)){
|
|
181
|
+
callback('请上传全部图片图片');
|
|
182
|
+
}
|
|
183
|
+
else {
|
|
184
|
+
if(!value.url)callback('请上传全部图片图片');
|
|
185
|
+
else callback()
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
message: '请上传全部图片图片',
|
|
190
|
+
trigger: ['blur', 'change'],
|
|
191
|
+
required: true,
|
|
192
|
+
}
|
|
176
193
|
],
|
|
177
194
|
},
|
|
178
195
|
{
|
|
@@ -203,6 +220,20 @@ export default (data, gValue,gColor,oldData)=>{
|
|
|
203
220
|
groupKey:'content',
|
|
204
221
|
className: 'input100',
|
|
205
222
|
hidden: categoryParentType === 'root',
|
|
223
|
+
rules: [
|
|
224
|
+
{
|
|
225
|
+
validator: (rule, value, callback) => {
|
|
226
|
+
if(categoryParentType === 'root') callback();
|
|
227
|
+
else {
|
|
228
|
+
if(!value) callback('请输入父级分类ID');
|
|
229
|
+
else callback()
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
message: '请输入父级分类ID',
|
|
233
|
+
trigger: ['blur', 'change'],
|
|
234
|
+
required: true,
|
|
235
|
+
}
|
|
236
|
+
],
|
|
206
237
|
},
|
|
207
238
|
{ele: 'group_end'},
|
|
208
239
|
{
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
import {cRaBorShadow, dataVal, statusDataVal, statusShow} from "@/utils/AttrTools";
|
|
4
|
-
const Color = require('color');
|
|
5
4
|
|
|
6
5
|
export default (data, gValue, gColor, oldData)=>{
|
|
7
6
|
let filterTopBorder = cRaBorShadow(data , 'filterTopBorder',{dValue:'D'}, gValue)
|
|
7
|
+
let filterBgcColor = '#fff';
|
|
8
|
+
if(gValue.isAdd && gValue.isFirst) {
|
|
9
|
+
if(data['category'] === 'v4') filterBgcColor = '#f8f8f8';
|
|
10
|
+
}
|
|
8
11
|
return [
|
|
9
12
|
{
|
|
10
13
|
ele: 'title',
|
|
@@ -70,7 +73,7 @@ export default (data, gValue, gColor, oldData)=>{
|
|
|
70
73
|
ele: 'xd-color',
|
|
71
74
|
valueKey: 'filterBgcColor',
|
|
72
75
|
groupKey:'style',
|
|
73
|
-
value: dataVal({data, key:'filterBgcColor', dValue:
|
|
76
|
+
value: dataVal({data, key:'filterBgcColor', dValue:filterBgcColor, gValue}),
|
|
74
77
|
hidden: !statusShow({data, key: 'filterBgcColorStatus', fields:['filterBgcColor'], gValue}),
|
|
75
78
|
classNmae: 'input80',
|
|
76
79
|
setting: {
|
|
@@ -97,7 +100,7 @@ export default (data, gValue, gColor, oldData)=>{
|
|
|
97
100
|
ele: 'xd-color',
|
|
98
101
|
valueKey: 'filterColor',
|
|
99
102
|
groupKey:'style',
|
|
100
|
-
value: dataVal({data, key:'filterColor', dValue:'#
|
|
103
|
+
value: dataVal({data, key:'filterColor', dValue:'#333', gValue}),
|
|
101
104
|
hidden: !statusShow({data, key: 'filterColorStatus', fields:['filterColor'], gValue}),
|
|
102
105
|
classNmae: 'input80',
|
|
103
106
|
setting: {
|
|
@@ -253,10 +253,10 @@ export default (data, gValue, gColor, oldData)=>{
|
|
|
253
253
|
hidden: !statusShow({data, key: 'level2NameStatus', fields:['level2Name','level2Color'], gValue}) || disabled,
|
|
254
254
|
setting: {
|
|
255
255
|
fontSize: true,
|
|
256
|
-
weight:
|
|
256
|
+
weight:false,
|
|
257
257
|
bgColor:true,
|
|
258
258
|
selected:true,
|
|
259
|
-
isBorder:
|
|
259
|
+
isBorder:false,
|
|
260
260
|
default: level2Name
|
|
261
261
|
},
|
|
262
262
|
handleCustom({action, data}) {
|
|
@@ -200,6 +200,7 @@ export default (data, gValue, gColor, oldData={})=>{
|
|
|
200
200
|
hidden: !statusShow({data, key: 'titleRadiusStatus', fields:['titleRadius'], gValue}),
|
|
201
201
|
placeholder: '请选择商品是否设置圆角',
|
|
202
202
|
multiple: false,
|
|
203
|
+
isBackNotValue: true,
|
|
203
204
|
className: 'input80',
|
|
204
205
|
groupKey:'style',
|
|
205
206
|
handleCustom({action, data}) {
|
|
@@ -409,7 +410,7 @@ export default (data, gValue, gColor, oldData={})=>{
|
|
|
409
410
|
ele: 'xd-radio',
|
|
410
411
|
groupKey: 'style',
|
|
411
412
|
valueKey: 'contRadiusStatus',
|
|
412
|
-
value: statusDataVal({data,
|
|
413
|
+
value: statusDataVal({data,key:'contRadiusStatus',cValue:'N', fields:['contRadius'],gValue}),
|
|
413
414
|
labelInline:true,
|
|
414
415
|
list: [
|
|
415
416
|
{label: '默认', value: 'D'},
|
|
@@ -428,6 +429,7 @@ export default (data, gValue, gColor, oldData={})=>{
|
|
|
428
429
|
placeholder: '请选择商品是否设置圆角',
|
|
429
430
|
multiple: false,
|
|
430
431
|
className: 'input80',
|
|
432
|
+
isBackNotValue: true,
|
|
431
433
|
groupKey:'style',
|
|
432
434
|
handleCustom({action, data}) {
|
|
433
435
|
XdBus.getParentApi('getOptionsSettingList')({
|
|
@@ -469,6 +471,7 @@ export default (data, gValue, gColor, oldData={})=>{
|
|
|
469
471
|
placeholder: '请选择商品图圆角是否设置圆角',
|
|
470
472
|
multiple: false,
|
|
471
473
|
className: 'input80',
|
|
474
|
+
isBackNotValue: true,
|
|
472
475
|
value: dataVal({data, key:'imageRadius', dValue:'10', gValue}),
|
|
473
476
|
hidden: !statusShow({data, key: 'imageRadiusStatus', fields:['imageRadius'], gValue}),
|
|
474
477
|
handleCustom({action, data}) {
|