当前位置:网站首页>Tabbar settings
Tabbar settings
2022-07-03 06:03:00 【LAN Yan】
ask :tabbar What does it do ?
answer : Bottom navigation
ask : What are the components of
answer :
"pagePath": "pages/index/index" Page path
- "text": " home page " Page name
"iconPath":"/images/tabbar/home.png" When not selected , Pictures on display
"selectedIconPath":"/images/tabbar/home-active.png" Picture when selected
Pictured

1. The first problem is tabbar Set up
Document links 1 uni-app Official website
https://uniapp.dcloud.net.cn/collocation/pages.html#tabbar
Document links 2
uni.setTabBarItem(OBJECT) | uni-app Official website
https://uniapp.dcloud.io/api/ui/tabbar.html
2. Put what you need tabbar Put the picture of '“static” In the folder
3. Follow the example prompted by the document , Add our own tabbar( Because I have written Baidu applet here tabbar, After a look, the code is almost the same , So copy it directly )
chart 1

Code ( Among them xxx Replace with your own page folder name and page name )
"tabBar": {
"list": [{
"pagePath": "pages/index/index",
"text": " home page ",
"iconPath": "static/images/tabbar/home.png",
"selectedIconPath": "static/images/tabbar/home-active.png"
},
{
"pagePath": "pages/xxx/xxx",
"text": "xxx",
"iconPath": "static/images/tabbar/counrty.png",
"selectedIconPath": "static/images/tabbar/country-active.png"
},
{
"pagePath": "pages/xxx/xxx",
"text": "xxx",
"iconPath": "static/images/tabbar/news.png",
"selectedIconPath": "static/images/tabbar/news-active.png"
},
{
"pagePath": "pages/xxx/xxx",
"text": "xxx",
"iconPath": "static/images/tabbar/ask.png",
"selectedIconPath": "static//images/tabbar/ask-active.png"
},
{
"pagePath": "pages/xxx/xxx",
"text": "xxx",
"iconPath": "static/images/tabbar/me.png",
"selectedIconPath": "static//images/tabbar/me-active.png"
}
],
"backgroundColor": "#ffffff",
"borderStyle": "white",
"color": "#000",
"selectedColor": "#6495ED"
},After doing this , Your project has a bottom navigation
Here's something else ,

- pages Configure the page path , A set of curly braces represents the configuration of a page
- path Is the path of the page in the project
- navigationBarTitleText It's the title of the page
边栏推荐
- [video of Teacher Zhao Yuqiang's speech on wot] redis high performance cache and persistence
- Installation of CAD plug-ins and automatic loading of DLL and ARX
- Apple submitted the new MAC model to the regulatory database before the spring conference
- 1. Somme des deux nombres
- Installation du plug - in CAD et chargement automatique DLL, Arx
- Virtual memory technology sharing
- Kubernetes notes (V) configuration management
- [together Shangshui Shuo series] day 7 content +day8
- Kubernetes notes (VIII) kubernetes security
- Using the ethtool command by example
猜你喜欢
![[escape character] [full of dry goods] super detailed explanation + code illustration!](/img/33/ec5a5e11bfd43f53f2767a9a0f0cc9.jpg)
[escape character] [full of dry goods] super detailed explanation + code illustration!

Kubernetes notes (I) kubernetes cluster architecture

Pytorch dataloader implements minibatch (incomplete)
![[written examination question analysis] | | get [sizeof and strlen] [pointer and array] graphic explanation + code analysis](/img/c6/8847218fa43c87e3eb51c021961eb7.jpg)
[written examination question analysis] | | get [sizeof and strlen] [pointer and array] graphic explanation + code analysis
![[teacher Zhao Yuqiang] redis's slow query log](/img/a7/2140744ebad9f1dc0a609254cc618e.jpg)
[teacher Zhao Yuqiang] redis's slow query log

Es remote cluster configuration and cross cluster search
![[teacher Zhao Yuqiang] MySQL flashback](/img/93/75998e28fd309880661ea723dc8de6.jpg)
[teacher Zhao Yuqiang] MySQL flashback

Method of finding prime number

Code generator - single table query crud - generator
![[teacher Zhao Yuqiang] Alibaba cloud big data ACP certified Alibaba big data product system](/img/cc/5509b62756dddc6e5d4facbc6a7c5f.jpg)
[teacher Zhao Yuqiang] Alibaba cloud big data ACP certified Alibaba big data product system
随机推荐
多线程与高并发(7)——从ReentrantLock到AQS源码(两万字大章,一篇理解AQS)
[together Shangshui Shuo series] day 7 content +day8
PHP notes are super detailed!!!
[Zhao Yuqiang] deploy kubernetes cluster with binary package
Code generator - single table query crud - generator
Solve the 1251 client does not support authentication protocol error of Navicat for MySQL connection MySQL 8.0.11
[function explanation (Part 1)] | | knowledge sorting + code analysis + graphic interpretation
Analysis of Clickhouse mergetree principle
伯努利分布,二项分布和泊松分布以及最大似然之间的关系(未完成)
[teacher Zhao Yuqiang] MySQL high availability architecture: MHA
Oauth2.0 - explanation of simplified mode, password mode and client mode
AtCoder Beginner Contest 258(A-D)
Oauth2.0 - use database to store client information and authorization code
Using the ethtool command by example
Solve the problem of automatic disconnection of SecureCRT timeout connection
CKA certification notes - CKA certification experience post
The most responsible command line beautification tutorial
pytorch DataLoader实现miniBatch(未完成)
理解 期望(均值/估计值)和方差
Leetcode solution - 02 Add Two Numbers
https://uniapp.dcloud.net.cn/collocation/pages.html#tabbar