我在app.json中配置的启动页面是home。但是第一次扫码打开的时候会直接跳转到tabbar的第一个页面。再一次扫码没问题。但是如果删除小程序,重新扫码打开依然是跳过home页面直接打开tabbar的第一个页面。这个问题在开发环境中又没有办法调试。配置文件app.json如下。
{
"pages": [
"pages/home/home",
"pages/query/index/index",
"pages/query/exam/exam",
"pages/query/course/course"
"pages/register/register"
],
"tabBar": {
"list": [
{
"pagePath": "pages/query/index/index",
"text": "首页",
"iconPath": "images/icon-home.png",
"selectedIconPath": "images/icon-home-active.png"
},
{
"pagePath": "pages/history/history",
"text": "查询历史",
"iconPath": "images/icon-history.png",
"selectedIconPath": "images/icon-history-active.png"
},
{
"pagePath": "pages/person/index/index",
"text": "个人中心",
"iconPath": "images/icon-person.png",
"selectedIconPath": "images/icon-person-active.png"
}
],
"backgroundColor": "#00a0e9",
"color": "#fff",
"selectedColor": "#f4ea2a",
"borderStyle": "black"
},
"sitemapLocation": "sitemap.json",
"debug": true
}
网友回复
已经解决。那个体验版本的二维码有一个访问地址。但是没有注意。把那个地址改掉就可以了。