大神们好,我想咨询下,微信小程序能否支持动态配置菜单?目前是在app.json里面配置的,大佬们是否有做过小程序的动态配置,谢谢
微信小程序怎么动态配置菜单?How to dynamically configure the menu in the WeChat applet?
微信小程序怎么动态配置菜单?大神们好,我想咨询下,微信小程序能否支持动态配置菜单?目前是在app.json里面配置的,大佬们是否有做过小程序的动态配置,谢谢
Hello, great gods. I'd like to ask if wechat applet can support dynamic configuration menu? Now it's in app.json Inside the configuration, whether the big guys have done the dynamic configuration of small programs, thank you
回答:
1.官方的tabbar涉及到页面必须放到主包,且在 app.json里要配置,这就限制了不能动态配置
2.可以自己搞下个tabbar,好处如下:
2.1. 可以满足动态配置tabbar
2.2.调整的页面可以放到分包里,不会影响主包大小,能提升小程序体验
3.具体实现方式,用自定组件,很简单
动态配置底部tab栏菜单吗,如果使用自定义tab栏的话应该可以实现
不支持
原文出处:微信小程序怎么动态配置菜单?
自定义tabbar可以达到你想要的效果