体验版扫码绑定邀请页进入后默认为index
发布于 6 年前 作者 houxia 9605 次浏览 来自 问答

我在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"
    }]
  }
}
2 回复

体验版设置:

那个好像是在你设置体验版的时候有一个填地址的地方,当你扫码后直接进入该路径,你可以在那更改,目测默认是你的index路径

回到顶部