jufubao-mall 2.0.91-beta2 → 2.0.91-beta4
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
|
@@ -484,7 +484,7 @@
|
|
|
484
484
|
this.categoryParent = this.categoryParentType === 'child' ? gCPVal(container, 'categoryParent', '') : "";
|
|
485
485
|
|
|
486
486
|
// 组件样式
|
|
487
|
-
this.layoutStyle =
|
|
487
|
+
this.layoutStyle = '2';
|
|
488
488
|
// 根据 row_num 初始化 column_num
|
|
489
489
|
let row_num = gCPVal(container, 'row_num', 1);
|
|
490
490
|
this.column_num = row_num;
|
|
@@ -705,9 +705,16 @@
|
|
|
705
705
|
});
|
|
706
706
|
if (parentIndex > -1) {
|
|
707
707
|
this.curParentIndex = parentIndex;
|
|
708
|
-
this.
|
|
709
|
-
|
|
710
|
-
|
|
708
|
+
if (this.layoutStyle === '2') {
|
|
709
|
+
// 无顶部导航:左侧保持一级列表,高亮父级一级分类,选中二级分类
|
|
710
|
+
this.navChildrenList = this.allNavList;
|
|
711
|
+
this.selectNav = items[parentIndex].children[childIndex];
|
|
712
|
+
this.selectNavIndex = parentIndex;
|
|
713
|
+
} else {
|
|
714
|
+
this.navChildrenList = items[parentIndex].children;
|
|
715
|
+
this.selectNav = this.navChildrenList[childIndex];
|
|
716
|
+
this.selectNavIndex = childIndex;
|
|
717
|
+
}
|
|
711
718
|
return true;
|
|
712
719
|
}
|
|
713
720
|
// 2. 匹配一级分类
|