体验版扫码绑定邀请页进入后默认为index
我在app.json加入了splash页用于初始加载,正常从列表中进入体验版程序正常,但是从扫码绑定邀请页进入后,会自动跳入index,Splash页完全不显示,后续点击右上角的Home会跳至splash,才进入正常加载。
现在的做法是在index中判断初始加载的数据是否存在,不存在redirectTo回splash。
另,index和另一页面在app.json中通过tab注册。
{ "pages" : [ "pages/splash/splash" , "pages/index/index" , "pages/logs/logs" , "pages/auth/auth" , "pages/mine/mine" , "pages/no_auth/no_auth" , "pages/error/error" , "pages/edit_info/edit_info" ], "window" : { "backgroundTextStyle" : "light" , "navigationBarBackgroundColor" : "#fff" , "navigationBarTitleText" : "Black Market" , "navigationBarTextStyle" : "black" }, "tabBar" : { "backgroundColor" : "#fff" , "selectedColor" : "black" , "list" : [{ "pagePath" : "pages/index/index" , "text" : "首页" , "iconPath" : "images/homepage.png" , "selectedIconPath" : "images/homepage_fill.png" }, { "pagePath" : "pages/mine/mine" , "text" : "我" , "iconPath" : "images/mine.png" , "selectedIconPath" : "images/mine_fill.png" }] } } |