当前位置:网站首页>Implementation of navigation bar at the bottom of applet
Implementation of navigation bar at the bottom of applet
2022-07-07 08:29:00 【I eat slowly】
1、 The navigation bar at the bottom of the applet is the thing at the bottom
2、 This needs to be app.json Set at “tabBar”
Examples are as follows :
{
"pages": [
"pages/index/index",
"pages/pages1/pages1",
"pages/pages2/pages2"
],
"window": {
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#ffffff",
"navigationBarTitleText": " Applet name ",
"navigationBarTextStyle": "black",
"backgroundColor": "#EA0000"
},
"sitemapLocation": "sitemap.json",
"tabBar": {
"color": "#666666",
"selectedColor": "#f10b2e",
"list": [
{
"pagePath": "pages/pages1/pages1",
"text": " page 1",
"iconPath": "*****",// Icon when not selected
"selectedIconPath": "*****"// The selected icon
},
{
"pagePath": "pages/pages2/pages2",
"text": " page 2",
"iconPath": "*****",// Icon when not selected
"selectedIconPath": "*****"// The selected icon
}
]
}
}
3、 example :
"tabBar": {
"color": "#000000",
"selectedColor": "#FF6900",
"borderStyle": "black",
"list": [
// {
// "iconPath": "/static/tabbar/index.png",
// "selectedIconPath": "/static/tabbar/index.png",
// "pagePath": "pages/index/index",
// "text": " home page "
// },
{
"iconPath": "/static/tabbar/workbench.png",
"selectedIconPath": "/static/tabbar/work.png",
"pagePath": "pages/workbench/work",
"text": " The workbench "
},
// {
// "iconPath": "/static/tabbar/msg.png",
// "selectedIconPath": "/static/tabbar/msg.png",
// "pagePath": "pages/message/mes",
// "text": " news "
// },
{
"iconPath": "/static/tabbar/my.png",
"selectedIconPath": "/static/tabbar/my.png",
"pagePath": "pages/my/my",
"text": " my "
}
]
},
4、 It should be noted that :
Other pages should jump to tabBar page , Need to use wx.switchTab, Examples are as follows :
wx.switchTab({
url: '../pages1/pages1'
})
边栏推荐
- [quick start of Digital IC Verification] 11. Introduction to Verilog testbench (VTB)
- [quick start of Digital IC Verification] 13. SystemVerilog interface and program learning
- 打通法律服务群众“最后一公里”,方正璞华劳动人事法律自助咨询服务平台频获“点赞”
- Transformation function map and flatmap in kotlin
- 饥荒云服管理脚本
- Xcit learning notes
- Automatic upgrading of database structure in rainbow
- IELTS review progress and method use [daily revision]
- Open3D ISS关键点
- Don't stop chasing the wind and the moon. Spring mountain is at the end of Pingwu
猜你喜欢
轻松上手Fluentd,结合 Rainbond 插件市场,日志收集更快捷
Go语言中,函数是一种类型
Improve the delivery efficiency of enterprise products (1) -- one click installation and upgrade of enterprise applications
Vulnerability recurrence easy_ tornado
Pvtv2--pyramid vision transformer V2 learning notes
2-3 lookup tree
解析创新教育体系中的创客教育
Open3d ISS key points
使用 Nocalhost 开发 Rainbond 上的微服务应用
AVL平衡二叉搜索树
随机推荐
In go language, function is a type
[quick start of Digital IC Verification] 11. Introduction to Verilog testbench (VTB)
Infix keyword infix expression and the use of generic extension function in kotlin
Iptables' state module (FTP service exercise)
2 - 3 arbre de recherche
漏洞複現-Fastjson 反序列化
Four items that should be included in the management system of integral mall
How to understand distributed architecture and micro service architecture
Opencv learning note 4 - expansion / corrosion / open operation / close operation
Low success rate of unit test report
Using helm to install rainbow in various kubernetes
BiSeNet的特點
CCTV is so warm-hearted that it teaches you to write HR's favorite resume hand in hand
Practice of combining rook CEPH and rainbow, a cloud native storage solution
Battery and motor technology have received great attention, but electric control technology is rarely mentioned?
The truth of robot education in hands-on practice
BiSeNet的特点
打通法律服务群众“最后一公里”,方正璞华劳动人事法律自助咨询服务平台频获“点赞”
opencv学习笔记四——膨胀/腐蚀/开运算/闭运算
Basic use of CTF web shrink template injection nmap