当前位置:网站首页>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
边栏推荐
- Crontab command usage
- Virtual memory technology sharing
- [teacher Zhao Yuqiang] MySQL flashback
- Kubernetes resource object introduction and common commands (V) - (configmap)
- JDBC connection database steps
- Understand the first prediction stage of yolov1
- 项目总结--2(Jsoup的基本使用)
- Clickhouse learning notes (I): Clickhouse installation, data type, table engine, SQL operation
- Using the ethtool command by example
- Redis encountered noauth authentication required
猜你喜欢

Why is the website slow to open?

Kubernetes notes (VIII) kubernetes security
![Ensemble, série shuishu] jour 9](/img/39/c1ba1bac82b0ed110f36423263ffd0.png)
Ensemble, série shuishu] jour 9

Detailed explanation of contextclassloader

Loss function in pytorch multi classification

Bernoulli distribution, binomial distribution and Poisson distribution, and the relationship between maximum likelihood (incomplete)
![[advanced pointer (2)] | [function pointer, function pointer array, callback function] key analysis + code explanation](/img/9b/a309607c037b0a18ff6b234a866f9f.jpg)
[advanced pointer (2)] | [function pointer, function pointer array, callback function] key analysis + code explanation

Core principles and source code analysis of disruptor
![[teacher Zhao Yuqiang] the most detailed introduction to PostgreSQL architecture in history](/img/18/f91d3d21a39743231d01f2e4015ef8.jpg)
[teacher Zhao Yuqiang] the most detailed introduction to PostgreSQL architecture in history

多线程与高并发(7)——从ReentrantLock到AQS源码(两万字大章,一篇理解AQS)
随机推荐
Bio, NiO, AIO details
[Shangshui Shuo series together] day 10
The most responsible command line beautification tutorial
Installation du plug - in CAD et chargement automatique DLL, Arx
It is said that the operation and maintenance of shell scripts are paid tens of thousands of yuan a month!!!
Apple submitted the new MAC model to the regulatory database before the spring conference
最大似然估计,散度,交叉熵
Bernoulli distribution, binomial distribution and Poisson distribution, and the relationship between maximum likelihood (incomplete)
Capacity expansion mechanism of map
[teacher Zhao Yuqiang] index in mongodb (Part 1)
从 Amazon Aurora 迁移数据到 TiDB
[teacher Zhao Yuqiang] kubernetes' probe
Understand expectations (mean / estimate) and variances
1. 兩數之和
Yum is too slow to bear? That's because you didn't do it
理解 YOLOV1 第一篇 预测阶段
[trivia of two-dimensional array application] | [simple version] [detailed steps + code]
[teacher Zhao Yuqiang] MySQL flashback
Error 1045 (28000) occurs when Linux logs in MySQL: access denied for user 'root' @ 'localhost' (using password: yes)
BeanDefinitionRegistryPostProcessor
https://uniapp.dcloud.net.cn/collocation/pages.html#tabbar