diff --git a/components/bottom-nav/bottom-nav.vue b/components/bottom-nav/bottom-nav.vue
index 3466d40..7753c3c 100644
--- a/components/bottom-nav/bottom-nav.vue
+++ b/components/bottom-nav/bottom-nav.vue
@@ -29,8 +29,11 @@
url: 'https://api.cmspro.haodanku.com/bottomBar/lists?cid=qOstW90',
success: (res) => {
if (res.data && res.data.code === 200 && res.data.data.bottom_bar) {
- // 根据 sort 降序排序
- this.bottomBarList = res.data.data.bottom_bar.sort((a, b) => b.sort - a.sort);
+ // 过滤并排序:剔除“发现”,仅保留首页、榜单、分类
+ const allowedTitles = ['首页', '榜单', '分类'];
+ this.bottomBarList = res.data.data.bottom_bar
+ .filter(item => allowedTitles.includes(item.title))
+ .sort((a, b) => b.sort - a.sort);
}
}
});
@@ -41,6 +44,7 @@
let url = '';
if (tab.title === '首页') url = '/pages/index/index';
else if (tab.title === '榜单') url = '/pages/rank/rank';
+ else if (tab.title === '分类') url = '/pages/classify/classify';
if (url) {
uni.redirectTo({
diff --git a/pages.json b/pages.json
index f95c03a..d3ced2e 100644
--- a/pages.json
+++ b/pages.json
@@ -29,6 +29,12 @@
"style": {
"navigationStyle": "custom"
}
+ },
+ {
+ "path": "pages/classify/classify",
+ "style": {
+ "navigationStyle": "custom"
+ }
}
],
"globalStyle": {
diff --git a/pages/classify/classify.vue b/pages/classify/classify.vue
new file mode 100644
index 0000000..d3ac733
--- /dev/null
+++ b/pages/classify/classify.vue
@@ -0,0 +1,297 @@
+
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+
+ {{ second.cate_name }}
+
+
+
+
+
+
+
+ {{ three.cate_name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+