微信小程序里如何设置页面底部

445
2020/12/8 13:03:36
栏目: 云计算
开发者测试专用服务器限时活动,0元免费领,库存有限,领完即止! 点击查看>>

微信小程序里如何设置页面底部

微信小程序里设置页面底部的案例:

在小程序项目中app.json配置文件下,添加代码:

"tabBar": {

"color": "#a9b7b7",

"selectedColor": "#11cd6e",

"borderStyle":"white",

"list": [{

"selectedIconPath": "images/111.png",

"iconPath": "images/11.png",

"pagePath": "pages/index/index",

"text": "首页"

}, {

"selectedIconPath": "images/221.png",

"iconPath": "images/22.png",

"pagePath": "pages/logs/logs",

"text": "日志"

}, {

"selectedIconPath": "images/331.png",

"iconPath": "images/33.png",

"pagePath": "pages/test/test",

"text": "测试"

}]

},

辰迅云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>

推荐阅读: 微信小程序注销流程是什么