Linux 拨号vps windows公众号手机端

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

lewis 7年前 (2018-12-11) 阅读数 11 #VPS/云服务器

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

在小程序项目中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": "测试"

}]

},

版权声明

本文仅代表作者观点,不代表米安网络立场。

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

热门