- 需求的场景描述(希望解决的问题)
希望是这样的tabbar:

- 希望提供的能力
根据官方自定义tabbar文档:https://developers.weixin.qq.com/miniprogram/dev/framework/ability/custom-tabbar.html
并且参考了大神的帖子:https://developers.weixin.qq.com/community/develop/doc/000c6e038c0ce05413f71e7ce56c04
发现真机运行和开发者工具运行效果不一样
真机(Android 微信7.0)运行起来一片白

开发者工具(1.02.1812271)运行起来,原来的tabbar和我自定义的tabbar都显示出来了

代码如下:
微信小程序开发问题解答
微信小程序开发者回答:
先做一个原生的tabbar,然后再写一个自定义的tabbar,然后在onload的方法里hide掉原生的,跳转方式用switchTab就可以了。
微信小程序开发者回答:
我也是遇到了这种问题,真机是好的。就是工具俩导航栏都显示出来了。
微信小程序开发者回答:
看一下这个博主写的组件
https://developers.weixin.qq.com/community/develop/doc/000c6e038c0ce05413f71e7ce56c04
本文网址:http://www.91bianli.com/weixinxiaochengxu/18873.html