diff --git a/apps/cat-mini-app/src/pages.json b/apps/cat-mini-app/src/pages.json index 4111fbb..4a8f66a 100644 --- a/apps/cat-mini-app/src/pages.json +++ b/apps/cat-mini-app/src/pages.json @@ -43,6 +43,26 @@ } } ], + "tabBar": { + "color": "#7A7E83", + "selectedColor": "#ea580c", + "borderStyle": "black", + "backgroundColor": "#ffffff", + "list": [ + { + "pagePath": "pages/home", + "text": "首页" + }, + { + "pagePath": "pages/cats", + "text": "猫咪" + }, + { + "pagePath": "pages/shop", + "text": "商城" + } + ] + }, "globalStyle": { "navigationBarTextStyle": "black", "navigationBarTitleText": "uni-app", diff --git a/apps/cat-mini-app/src/pages/home.vue b/apps/cat-mini-app/src/pages/home.vue index b16e4df..05a4cf5 100644 --- a/apps/cat-mini-app/src/pages/home.vue +++ b/apps/cat-mini-app/src/pages/home.vue @@ -60,6 +60,20 @@ + + + + + 🐈 + 种公种母介绍 + + + 📅 + 预约排队 + + + + @@ -68,27 +82,7 @@ - - - - - 🏠 - 首页 - - - 🐱 - 猫咪 - - - 🛒 - 商城 - - - 👤 - 我的 - - - + @@ -117,6 +111,10 @@ interface AttributeFile { const shelter = ref(null) const images = ref([]) +const navigateTo = (url: string) => { + uni.navigateTo({ url }) +} + onLoad(async () => { // 如果需要认证,检查登录状态 if (AUTH_REQUIRED) {