当前位置:网站首页>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'
})
边栏推荐
- Le système mes est un choix nécessaire pour la production de l'entreprise
- Analysis of maker education in innovative education system
- POJ - 3784 Running Median(对顶堆)
- MES系統,是企業生產的必要選擇
- Opencv learning note 4 - expansion / corrosion / open operation / close operation
- Rainbow 5.7.1 supports docking with multiple public clouds and clusters for abnormal alarms
- Ebpf cilium practice (2) - underlying network observability
- 【雅思口语】安娜口语学习记录 Part3
- Splunk查询csv lookup table数据动态查询
- Installation and configuration of PLSQL
猜你喜欢
One click installation of highly available Nacos clusters in rainbow
机器人教育在动手实践中的真理
Coquette data completes the cloud native transformation through rainbow to realize offline continuous delivery to customers
归并排序和非比较排序
opencv学习笔记三——图像平滑/去噪处理
[quick start of Digital IC Verification] 11. Introduction to Verilog testbench (VTB)
eBPF Cilium实战(2) - 底层网络可观测性
Learn how to compile basic components of rainbow from the source code
Opencv learning notes II - basic image operations
GFS distributed file system
随机推荐
Understanding of out covariance, in inversion and invariance in kotlin
GFS分布式文件系统
opencv学习笔记四——膨胀/腐蚀/开运算/闭运算
CCTV is so warm-hearted that it teaches you to write HR's favorite resume hand in hand
Rainbond结合NeuVector实践容器安全管理
National standard gb28181 protocol video platform easygbs adds streaming timeout configuration
Practice of implementing cloud native Devops based on rainbow library app
Input of mathematical formula of obsidan
Thirteen forms of lambda in kotlin
Function extension, attribute extension and non empty type extension in kotlin
Use of out covariance and in inversion in kotlin
一文了解如何源码编译Rainbond基础组件
Application of slip ring of shipborne radar antenna
Opencv learning notes 1 -- several methods of reading images
GFS distributed file system
[quick start of Digital IC Verification] 11. Introduction to Verilog testbench (VTB)
Detailed explanation of apply, also, let, run functions and principle analysis of internal source code in kotlin
Train your dataset with swinunet
一种适用于应用频繁测试下快速查看Pod的日志的方法(grep awk xargs kuberctl)
Rainbow version 5.6 was released, adding a variety of installation methods and optimizing the topology operation experience