当前位置:网站首页>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'
})
边栏推荐
- Obsidan之数学公式的输入
- [quick start of Digital IC Verification] 14. Basic syntax of SystemVerilog learning 1 (array, queue, structure, enumeration, string... Including practical exercises)
- BiSeNet的特点
- Le système mes est un choix nécessaire pour la production de l'entreprise
- [quick start of Digital IC Verification] 12. Introduction to SystemVerilog testbench (svtb)
- 打通法律服务群众“最后一公里”,方正璞华劳动人事法律自助咨询服务平台频获“点赞”
- Zcmu--1492: problem d (C language)
- 在Rainbond中实现数据库结构自动化升级
- Opencv learning note 5 - gradient calculation / edge detection
- Through the "last mile" of legal services for the masses, fangzheng Puhua labor and personnel law self-service consulting service platform has been frequently "praised"
猜你喜欢

一文了解如何源码编译Rainbond基础组件

eBPF Cilium实战(2) - 底层网络可观测性

机器人教育在动手实践中的真理

Easy to understand SSO

Rainbow version 5.6 was released, adding a variety of installation methods and optimizing the topology operation experience

Rsync remote synchronization

Open3d ISS key points
![[quick start of Digital IC Verification] 10. Verilog RTL design must know FIFO](/img/56/82f4533b5bded73df222ef65101a72.png)
[quick start of Digital IC Verification] 10. Verilog RTL design must know FIFO
![[untitled]](/img/b5/348b1d8b5d34cf10e715522b9871f2.png)
[untitled]

Practice of combining rook CEPH and rainbow, a cloud native storage solution
随机推荐
使用SwinUnet训练自己的数据集
BiSeNet的特点
柯基数据通过Rainbond完成云原生改造,实现离线持续交付客户
2 - 3 arbre de recherche
Rainbond 5.6 版本发布,增加多种安装方式,优化拓扑图操作体验
字符串操作
Infix keyword infix expression and the use of generic extension function in kotlin
Rainbow version 5.6 was released, adding a variety of installation methods and optimizing the topology operation experience
Implement your own dataset using bisenet
Full text query classification
如何理解分布式架构和微服务架构呢
Go语言中,函数是一种类型
【雅思口语】安娜口语学习记录 Part2
Transformation function map and flatmap in kotlin
探索STEAM艺术设计中的创造力
iptables 之 state模块(ftp服务练习)
Opencv learning note 5 - gradient calculation / edge detection
Four items that should be included in the management system of integral mall
Low success rate of unit test report
opencv学习笔记一——读取图像的几种方法