diff --git a/App.vue b/App.vue index d83f103..1ca1ee6 100644 --- a/App.vue +++ b/App.vue @@ -14,4 +14,4 @@ + \ No newline at end of file diff --git a/components/Tabbar/Tabbar.vue b/components/Tabbar/Tabbar.vue index 24229d7..d4f17fa 100644 --- a/components/Tabbar/Tabbar.vue +++ b/components/Tabbar/Tabbar.vue @@ -3,7 +3,7 @@ 消息 -
消息
+
消息
项目 diff --git a/main.js b/main.js index 734be3d..7766e79 100644 --- a/main.js +++ b/main.js @@ -3,6 +3,9 @@ import App from './App' // 引入 uView UI import uView from './uni_modules/vk-uview-ui'; +// 引入Tabbar +import TabbarVue from './components/Tabbar/Tabbar.vue'; + // #ifndef VUE3 import Vue from 'vue' import './uni.promisify.adaptor' @@ -23,6 +26,8 @@ export function createApp() { app.use(uView) + app.use("Tabbar", TabbarVue) + return { app } diff --git a/pages.json b/pages.json index a4233d7..4db7dd0 100644 --- a/pages.json +++ b/pages.json @@ -1,5 +1,12 @@ { "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages + { + "path": "pages/login/login", + "style": { + "navigationBarTitleText": "登录", + "navigationStyle": "custom" + } + }, { "path": "pages/home/index", "style": { @@ -37,5 +44,29 @@ "navigationBarBackgroundColor": "#F8F8F8", "backgroundColor": "#F8F8F8" }, - "uniIdRouter": {} + "uniIdRouter": {}, + "tabBar": { + "height": "0", + "list": [{ + "pagePath": "pages/message/message", + "text": "消息" + }, + { + "pagePath": "pages/program/program", + "text": "项目" + }, + { + "pagePath": "pages/home/index", + "text": "主页" + }, + { + "pagePath": "pages/finance/finance", + "text": "金融" + }, + { + "pagePath": "pages/my/my", + "text": "我的" + } + ] + } } \ No newline at end of file diff --git a/pages/finance/finance.vue b/pages/finance/finance.vue index 3f3594a..a0d95b0 100644 --- a/pages/finance/finance.vue +++ b/pages/finance/finance.vue @@ -1,10 +1,8 @@ \ No newline at end of file diff --git a/pages/message/message.vue b/pages/message/message.vue index 47382f5..df5c904 100644 --- a/pages/message/message.vue +++ b/pages/message/message.vue @@ -1,11 +1,10 @@