jufubao-mall 2.0.91-beta2 → 2.0.91-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.
package/package.json
CHANGED
|
@@ -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. 匹配一级分类
|