小程序实现APP底部(TabBar)页面控制效果

mac2022-06-30  28

"tabBar": { "color": "#dddddd", "selectedColor": "white", "backgroundColor": "#ffffff", "list":[ { "pagePath":"pages/index/index", "iconPath":"", "selectedIconPath":"", "text":"首页" }, { "pagePath": "pages/active/active", "iconPath": "", "selectedIconPath": "", "text": "活动" }, { "pagePath": "pages/my/my", "iconPath": "", "selectedIconPath": "", "text": "我的" } ] }

注意:代码是在app.js中编写

1,List里面是你的页面的数量

2,pagePath是页面的路径

3,iconpath是图标路径

4,text是标题

其余不多做解释

转载于:https://www.cnblogs.com/zxh-iOS/p/7442862.html

最新回复(0)