WeChat applet navigation jump problem


<view>
  <navigator url="../index/index" open-type="navigate">跳转</navigator>
  <navigator url="../index/index" open-type="redirect">跳转</navigator>
  <navigator url="../index/index" open-type="switchTab">跳转</navigator>
</view>

The problem of navigator navigation is divided into three types

  • a.open-type="navigate" to open a new interface
  • b.open-type="redirect" Open a new interface in this interface
  • c.open-type="switchTab" controls switching between tab pages

note:

All interfaces that need to jump links must be registered in app.json

  1. a, b can only connect to pages that are not registered in the tabBar, and cannot open url=".../index/index", because the pages/index/index interface is a tab page

  2. c can only open the tab page registered in app.json, which is the interface registered by tabBar

Guess you like

Origin blog.csdn.net/david2000999/article/details/114800477