From 54d1b52fb8d59bb84df26e6c89082e5c3ae4a877 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BE=99=E8=BF=90=E6=A8=A1?= <1724894114@qq.com> Date: Tue, 16 Jan 2024 18:52:23 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89tabbar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 3 +- components/customTabBar/index.js | 0 components/customTabBar/index.json | 0 components/customTabBar/index.vue | 25 +++++---- components/customTabBar/index.wxml | 86 ------------------------------ components/customTabBar/index.wxss | 0 main.js | 8 +-- pages/index/index.vue | 20 ++++--- pages/person/person.vue | 11 ++-- 9 files changed, 40 insertions(+), 113 deletions(-) delete mode 100644 components/customTabBar/index.js delete mode 100644 components/customTabBar/index.json delete mode 100644 components/customTabBar/index.wxml delete mode 100644 components/customTabBar/index.wxss diff --git a/App.vue b/App.vue index 2956bb5..a8be177 100644 --- a/App.vue +++ b/App.vue @@ -3,7 +3,8 @@ onLaunch: function() { console.warn('当前组件仅支持 uni_modules 目录结构 ,请升级 HBuilderX 到 3.1.0 版本以上!') console.log('App Launch') - // plus.navigator.setFullscreen(true);//隐藏状态栏 + // plus.navigator.setFullscreen(true);//隐藏状态栏 + // uni.hideTabBar(); }, onShow: function() { console.log('App Show') diff --git a/components/customTabBar/index.js b/components/customTabBar/index.js deleted file mode 100644 index e69de29..0000000 diff --git a/components/customTabBar/index.json b/components/customTabBar/index.json deleted file mode 100644 index e69de29..0000000 diff --git a/components/customTabBar/index.vue b/components/customTabBar/index.vue index 0854ebc..c80c019 100644 --- a/components/customTabBar/index.vue +++ b/components/customTabBar/index.vue @@ -31,25 +31,25 @@ export default { { id: 0, path: '/pages/index/index', - // icon: '/static/template.png', - // selectIcon: '/static/templateHL.png', + icon: '/static/logo.png', + selectIcon: '/static/logo.png', text: '首页', centerItem: false }, { id: 1, - path: '/pages/midell/index', - // icon: '/static/api.png', - // selectIcon: '/static/apiHL.png', - text: '中间', + path: '/pages/person/person', + // icon: '/static/logo.png', + // selectIcon: '/static/logo.png', + text: '扫一扫', // 通过类名class控制样式大小 centerItem: true }, { id: 2, - path: '/pages/mine/index', - // icon: '/static/component.png', - // selectIcon: '/static/componentHL.png', + path: '/pages/person/person', + icon: '/static/logo.png', + selectIcon: '/static/logo.png', text: '我的', centerItem: false } @@ -72,7 +72,7 @@ export default { } }; - \ No newline at end of file diff --git a/components/customTabBar/index.wxss b/components/customTabBar/index.wxss deleted file mode 100644 index e69de29..0000000 diff --git a/main.js b/main.js index f8fc053..b5a203f 100644 --- a/main.js +++ b/main.js @@ -2,12 +2,11 @@ import "./static/iconfont/iconfont.css" import "./static/iconfont/iconfont-weapp/iconfont-weapp-icon.css" - // #ifndef VUE3 import Vue from 'vue' import App from './App' -import svg from './static/iconfont/svg.js' -Vue.use(svg); +import svg from './static/iconfont/svg.js' +Vue.use(svg); Vue.config.productionTip = false; App.mpType = 'app'; @@ -27,4 +26,5 @@ export function createApp() { app } } -// #endif \ No newline at end of file +// #endif + diff --git a/pages/index/index.vue b/pages/index/index.vue index 23940d4..656e1c2 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -1,5 +1,6 @@ -