微信小程序tabBar不生效
发表时间:2022-9-14
发布人:葵宇科技
浏览次数:135
配置如下:
{"pages": ["pages/index/index","pages/mine/mine"],"window": {"backgroundTextStyle": "light","navigationBarBackgroundColor": "#fff","navigationBarTitleText": "活动宝","navigationBarTextStyle": "black"},"tabBar": {"backgroundColor": "#202020","color": "#fff","list": [{"selectedIconPath": "images/ic_index2.png","iconPath": "images/ic_index1.png","text": "首页","backgroundColor": "#dddddd","pagePath":"page/index/index"},{"selectedIconPath": "images/ic_mine2.png","iconPath": "images/ic_mine1.png","text": "我的","backgroundColor": "#dddddd","pagePath": "page/mine/mine"}]}}
效果图出不来的原因在于:
pagePath节点配置错误,但工具又没有报错。正确的应该为:
"pagePath": "pages/mine/mine"








