jufubao-mall 2.0.20-beta10 → 2.0.20-beta11

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-mall",
3
- "version": "2.0.20-beta10",
3
+ "version": "2.0.20-beta11",
4
4
  "private": false,
5
5
  "description": "聚福宝商城业务组件插件包",
6
6
  "main": "index.js",
@@ -443,7 +443,7 @@ export default {
443
443
  initMune() {
444
444
  let sortList = [];
445
445
  let allSortItems = [
446
- {label: "综合", value: "default", menuName: '综合推荐', key: 'common'},
446
+ {label: "综合", value: "default", menuName: '综合', key: 'common'},
447
447
  {label: "销量", value: "sale_num_desc", menuName: '销量', key: 'hot'},
448
448
  {label: "价格由高到低", value: "price_desc", menuName: '价格降', key: 'price'},
449
449
  {label: "价格由低到高", value: "price_asc", menuName: '价格升', key: 'price'},
@@ -519,6 +519,11 @@
519
519
  data['custom_category_id'] = this.trueCateId || this.truePid;
520
520
  }
521
521
 
522
+ //自定义父分类的时候,选择全部使用parentId的全部
523
+ if(Number(this.parentId) > 0) {
524
+ if(!data['custom_category_id']) data['custom_category_id'] = Number(this.parentId);
525
+ }
526
+
522
527
  //设置是否展示划线价格
523
528
  if(this.productConfig.isShowDiscount==='Y') data.is_show_uprice = this.$xdUniHelper.multiplyFloatNumber(this.productConfig.differ,100)
524
529
  else data.is_show_uprice = -1
@@ -816,9 +821,9 @@
816
821
  this.level2BgcColor = gCPVal(container, 'level2BgcColor', ['#fff','#f8f8f8'],{sKey:'level2BgcColorStatus', fields:['level2BgcColor']});
817
822
 
818
823
  let color = gCPVal(container, 'level2Color', '') || '#333',
819
- actColoor= this.mainColor , bgColor='',bgActColor='';
824
+ actColor= this.mainColor , bgColor='',bgActColor='';
820
825
  if(categoryLayout1ShowType === 'parentNew') {
821
- actColoor = '#fff';
826
+ actColor = '#fff';
822
827
  bgActColor = this.mainColor;
823
828
  }
824
829
 
@@ -826,7 +831,7 @@
826
831
  fontSize: '24',
827
832
  actFontSize: '24',
828
833
  color: color,
829
- actColor:actColoor,
834
+ actColor:actColor,
830
835
  bgColor:bgColor,
831
836
  actBgColor:bgActColor,
832
837
  fontWeight: 'normal',
@@ -836,14 +841,13 @@
836
841
  fontSize: '24',
837
842
  actFontSize: '24',
838
843
  color: '#333',
839
- actColor: this.mainColor,
840
- bgColor:'',
841
- actBgColor:'',
844
+ actColor: actColor,
845
+ bgColor:bgColor,
846
+ actBgColor:bgActColor,
842
847
  fontWeight: 'normal',
843
848
  actFontWeight: 'normal',
844
849
  }
845
850
  const level2Name = gCPVal(container, 'level2Name', [defNewLvel2Name,defOldLvel2Name],{sKey:'level2NameStatus', fields:['level2Name','level2Color'],isMerge: true});
846
-
847
851
  const subTitleRadius = gCPVal(container, 'subTitleRadius', ['40rpx'],{sKey:'subTitleRadiusStatus', fields:['subTitleRadius']})||0;
848
852
  const subTitleIconShadow = gCPVal(container, 'subTitleIconShadow', [this.gStyleValue.shadow,'none'], {isShadow:true});
849
853
  const subTitleIconBorder = gCPVal(container, 'subTitleIconBorder', [{style:'solid', width: '2', color: this.mainColor},'0'], {isBorder:true});
@@ -1070,7 +1074,7 @@
1070
1074
  data: {
1071
1075
  xnamespace: this.xnamespace,
1072
1076
  root_category_id: Number(this.parentId),
1073
- level: 2,
1077
+ level:['all','v2','parentNew'].includes(this.categoryLayout1ShowType)?2:1,
1074
1078
  }
1075
1079
  })
1076
1080
  .then(res => {
@@ -539,12 +539,12 @@ export default {
539
539
  justify-content: center;
540
540
  align-items: center;
541
541
  & > view {
542
- background-color: #fff;
543
- width: calc(100% - var(--sub-icon-border)*2);
544
- height: calc(100% - var(--sub-icon-border)*2);
545
- border: var(--sub-icon-border) solid #fff;
542
+ width: 100%;
543
+ height: 100%;
544
+ border: 2rpx solid #fff;
546
545
  border-radius: var(--sub-icon-w-radius);
547
546
  overflow: hidden;
547
+ box-sizing: border-box;
548
548
  }
549
549
  }
550
550
 
@@ -67,7 +67,7 @@ export default {
67
67
  borderComp(){
68
68
  return {
69
69
  '--sub-icon-border' : (parseInt(this.tabStyle['subTitleIconBorder'].split(' ')[0]) * this.$rpxNum) + 'px',
70
- '--sub-icon-w-radius': this.tabStyle['subTitleRadius'],
70
+ '--sub-icon-w-radius': parseInt(this.tabStyle['subTitleRadius']) * this.$rpxNum + 'px',
71
71
  '--sub-icon-right-sp': (this.tabStyle['iconImageSp'] || 16) * this.$rpxNum + 'px',
72
72
  backgroundColor: this.titleBgcColor,
73
73
  }