From 51dce94f8735daf1e250f5afe482cdd6a128ada2 Mon Sep 17 00:00:00 2001 From: yxq Date: Wed, 3 Apr 2024 09:23:01 +0800 Subject: [PATCH] =?UTF-8?q?app=20=E8=AE=BE=E7=BD=AE=E5=8A=A8=E6=80=81tabba?= =?UTF-8?q?r?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/tabbar/tabbar.vue | 135 ++++++++++++++++++ .../LearunApp-2.2.0/main.js | 2 + .../LearunApp-2.2.0/pages/contact.vue | 5 +- .../LearunApp-2.2.0/pages/home.vue | 2 + .../LearunApp-2.2.0/pages/my.vue | 4 + 5 files changed, 147 insertions(+), 1 deletion(-) create mode 100644 Learun.Framework.Ultimate V7/LearunApp-2.2.0/components/tabbar/tabbar.vue diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/components/tabbar/tabbar.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/components/tabbar/tabbar.vue new file mode 100644 index 000000000..ab4ae60bd --- /dev/null +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/components/tabbar/tabbar.vue @@ -0,0 +1,135 @@ + + + + + \ No newline at end of file diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/main.js b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/main.js index d2881dae9..9310e72bc 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/main.js +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/main.js @@ -4,6 +4,8 @@ import App from '@/App.vue' import store from '@/common/store.js' import mixins from '@/common/mixins.js' import '@/components/learun-mpui' +import tabBar from "@/components/tabbar/tabbar.vue" +Vue.component('tabBar',tabBar) // import '@/common/css/common.less'; diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/contact.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/contact.vue index a9d270d11..a44410283 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/contact.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/contact.vue @@ -9,6 +9,7 @@ + @@ -29,7 +30,9 @@ export default { uni.stopPullDownRefresh() }) }, - + onShow() { + uni.hideTabBar() + }, methods: { // 处理点击用户的场合,跳转到消息页 userClick(item) { diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/home.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/home.vue index c8c95f0c8..7eb076ae8 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/home.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/home.vue @@ -173,6 +173,7 @@ + @@ -209,6 +210,7 @@ export default { await this.init(param); }, async onShow() { + uni.hideTabBar() if(this.ready){ this.ready = false await this.refresh() diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/my.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/my.vue index 1ec5d5c2d..b69ab903c 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/my.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/my.vue @@ -80,11 +80,15 @@ {{ copyRightDisplay }} +