当前位置:网站首页>微信小程序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"
}边栏推荐
- 深度分析数据在内存中的存储形式
- QT capture interface is displayed as picture or label
- Tableapi & SQL and MySQL data query of Flink
- Apk signature principle
- 官宣:Apache Doris 顺利毕业,成为 ASF 顶级项目!
- What if you are always bullied because you are too honest in the workplace?
- Mongodb second talk - - mongodb High available Cluster Implementation
- Summary of week 22-06-26
- MySQL审计插件介绍
- Basic operations of SQL database
猜你喜欢

It's settled! 2022 Hainan secondary cost engineer examination time is determined! The registration channel has been opened!

Markdown编辑器使用基本语法
![opencv学习笔记六--图像特征[harris+SIFT]+特征匹配](/img/50/5c8adacea78e470c255070c8621ddd.png)
opencv学习笔记六--图像特征[harris+SIFT]+特征匹配

The State Administration of Chia Tai market supervision, the national development and Reform Commission and the China Securities Regulatory Commission jointly reminded and warned some iron ores

竣达技术丨室内空气环境监测终端 pm2.5、温湿度TVOC等多参数监测
![[zero basic IOT pwn] reproduce Netgear wnap320 rce](/img/f7/d683df1d4b1b032164a529d3d94615.png)
[zero basic IOT pwn] reproduce Netgear wnap320 rce

One of the first steps to redis

《QT+PCL第九章》点云重建系列2

Cannot link redis when redis is enabled

Tiantou village, Guankou Town, Xiamen special agricultural products Tiantou Village special agricultural products ant new village 7.1 answer
随机推荐
Tableapi & SQL and Kafka message acquisition of Flink example
[zero basic IOT pwn] reproduce Netgear wnap320 rce
openssl客户端编程:一个不起眼的函数导致的SSL会话失败问题
leetcode:329. Longest increasing path in matrix
opencv学习笔记五--文件扫描+OCR文字识别
MongoDB第二話 -- MongoDB高可用集群實現
Mongodb second talk - - mongodb High available Cluster Implementation
JS中箭头函数和普通函数的区别
定了!2022海南二级造价工程师考试时间确定!报名通道已开启!
It's suitable for people who don't have eloquence. The benefits of joining the China Video partner program are really delicious. One video gets 3 benefits
Opencv learning note 4 -- bank card number recognition
贝联珠贯加入龙蜥社区,共同促进碳中和
[leetcode 324] 摆动排序 II 思维+排序
MongoDB第二话 -- MongoDB高可用集群实现
期末琐碎知识点再整理
【ROS进阶篇】第五讲 ROS中的TF坐标变换
Fix the failure of idea global search shortcut (ctrl+shift+f)
Mongodb second call -- implementation of mongodb high availability cluster
TypeScript:const
Task.Run(), Task.Factory.StartNew() 和 New Task() 的行为不一致分析