diff --git a/pages.json b/pages.json
index 3b0b8b2..3845169 100644
--- a/pages.json
+++ b/pages.json
@@ -331,17 +331,23 @@
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#ffffff"
}
+ }, {
+ "path": "pages/toptabbar/toptabbar",
+ "style": {
+ "navigationBarTitleText": "",
+ "enablePullDownRefresh": false
+ }
+
+ },
+ {
+ "path": "pages/classification/classification",
+ "style": {
+ "navigationBarTitleText": "分类",
+ "enablePullDownRefresh": false
+ }
+
}
- ,{
- "path" : "pages/toptabbar/toptabbar",
- "style" :
- {
- "navigationBarTitleText": "",
- "enablePullDownRefresh": false
- }
-
- }
- ],
+ ],
"globalStyle": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "",
diff --git a/pages/ProductList/ProductList.vue b/pages/ProductList/ProductList.vue
index c9bd2e5..d1e19b9 100644
--- a/pages/ProductList/ProductList.vue
+++ b/pages/ProductList/ProductList.vue
@@ -96,7 +96,11 @@
methods: {
//点击导航栏标签改变当前索引
toggleTab(index) {
- if (index == 1111111111111) {} else if (index == 0) {
+ if (index == 1111111111111) {
+ uni.navigateTo({
+ url: `/pages/classification/classification?goodsCategoryId=${this.GoodsCategorychildrenid}`
+ })
+ } else if (index == 0) {
this.GoodsCategorychildrenid = this.goodsCategoryId
this.tabIndex = index
this.pageNum = 1
diff --git a/pages/classification/classification.vue b/pages/classification/classification.vue
new file mode 100644
index 0000000..ae706b6
--- /dev/null
+++ b/pages/classification/classification.vue
@@ -0,0 +1,297 @@
+
+
+
+
+
+
+ {{item.goodsCategoryName}}
+
+
+
+
+
+
+
+
+
+ {{item.goodsName}}
+
+
+ {{item.attributeDetailsName}}
+
+
+ ¥{{item.goodsPrice}}
+
+
+
+
+
+
+
+
+ 暂无商品
+
+
+
+
+
+
+
+
+
diff --git a/pages/toptabbar/toptabbar.vue b/pages/toptabbar/toptabbar.vue
index 7d685dd..8a6d6e3 100644
--- a/pages/toptabbar/toptabbar.vue
+++ b/pages/toptabbar/toptabbar.vue
@@ -91,7 +91,6 @@
methods: {
//点击导航栏标签触发
toggleTab(index) {
- console.log(index)
this.$emit("toggleToptab", index)
}
}