当前位置:网站首页>微信小程序01-底部导航栏设置
微信小程序01-底部导航栏设置
2022-07-01 15:10:00 【蹦跶哒的王小哲】
效果图

操作步骤:
1 在app.json找到 pages,增加pages配置地址栏路径,保存后会自动生成相应文件夹;
2,增加 tabBar 参数,“selectedColor” 参数是设置选中后文字的颜色;"list" 中放置导航数据。
list 中 相关参数: pagePath ----> 指向地址
text ----> 导航文字
iconPath -----> 导航图标
selectedIconPath -----> 选中状态下导航图标
{
"pages": [
"pages/index/index",
"pages/list/list",
"pages/mine/mine",
"pages/logs/logs"
],
"window": {
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#fff",
"navigationBarTitleText": "小哲个人商店",
"navigationBarTextStyle": "black",
"backgroundColor": "#eeeeee"
},
"tabBar": {
"selectedColor": "#fc5531",
"list": [
{
"pagePath": "pages/index/index",
"text": "首页",
"iconPath": "./images/home.png",
"selectedIconPath": "./images/selected-home.png"
},
{
"pagePath": "pages/list/list",
"text": "列表",
"iconPath": "./images/list.png",
"selectedIconPath": "./images/selected-list.png"
},
{
"pagePath": "pages/mine/mine",
"text": "我的",
"iconPath": "./images/mine.png",
"selectedIconPath": "./images/selected-mine.png"
}
]
},
"debug": true,
"style": "v2",
"sitemapLocation": "sitemap.json"
}边栏推荐
- 炎炎夏日,这份安全用气指南请街坊们收好!
- Music player development example (can be set up)
- opencv学习笔记四--银行卡号识别
- 职场太老实,总被欺负怎么办?
- Detailed explanation of ArrayList expansion, expansion principle [easy to understand]
- 互联网医院系统源码 医院小程序源码 智慧医院源码 在线问诊系统源码
- 项目中字符串判空总结
- 《QT+PCL第六章》点云配准icp系列2
- Junda technology - wechat cloud monitoring scheme for multiple precision air conditioners
- 购物商城6.27待完成
猜你喜欢

The difference between arrow function and ordinary function in JS

写在Doris毕业后的第一天

智能运维实战:银行业务流程及单笔交易追踪
![opencv学习笔记六--图像特征[harris+SIFT]+特征匹配](/img/50/5c8adacea78e470c255070c8621ddd.png)
opencv学习笔记六--图像特征[harris+SIFT]+特征匹配

Introduction to MySQL audit plug-in

In hot summer, please put away this safe gas use guide!

微服务追踪SQL(支持Isto管控下的gorm查询追踪)

What are the books that have greatly improved the thinking and ability of programming?

MySQL审计插件介绍

JVM第二话 -- JVM内存模型以及垃圾回收
随机推荐
首届技术播客月开播在即
Introduction to MySQL audit plug-in
Tableapi & SQL and MySQL data query of Flink
opencv学习笔记六--图像拼接
The solution to turn the newly created XML file into a common file in idea
微信公众号订阅消息 wx-open-subscribe 的实现及闭坑指南
The first word of JVM -- detailed introduction to JVM and analysis of runtime data area
Task. Run(), Task. Factory. Analysis of behavior inconsistency between startnew() and new task()
QT capture interface is displayed as picture or label
Flink 系例 之 TableAPI & SQL 与 Kafka 消息插入
Day-02 database
基于价值量化的需求优先级排序方法
Introduction to MySQL audit plug-in
leetcode:329. Longest increasing path in matrix
Solid basic basic grammar and definition function
Opencv Learning Notes 6 -- image feature [harris+sift]+ feature matching
炎炎夏日,这份安全用气指南请街坊们收好!
Written on the first day after Doris graduated
MongoDB第二話 -- MongoDB高可用集群實現
Summary of week 22-06-26