为什么我的tapBar中无法包括我自创的页面?
首先我在app.json中的page里创了一个map:添加一行"pages/map/map”;然后我在app.json中的window后设置了tapBar,以日志及map页面为两个跳转页面然而当目标页面,也就是list中包括pages/map/map的话,整个tapBar都不会显示,而将map页面换成原来就有的index的话,则可以。所以我确定应该map的问题。但是整个过程中并无报错。初接触微信小程序,是看着教学视频来的,麻烦有大佬能解惑吗?
{ "pages": [ "pages/index/index", "pages/logs/logs", "pages/map/map" ], "window": { "backgroundTextStyle": "light", "navigationBarBackgroundColor": "#fff", "navigationBarTitleText": "WeChat", "navigationBarTextStyle": "black" }, "tabBar": { "list": [{ "pagePath": "pages/logs/logs", "text": "logs", "iconPath": "icon/xtiaoxi.png", "selectedIconPath":"icon/xiaoxi.png" }, { "pagePath": "pages/map/map", "text": "map", "iconPath": "icon/dizhi.png", "selectedIconPath": "icon/dizhi.png" }] }, "sitemapLocation": "sitemap.json"} |
以上是app.json里的代码。
