* 方式一
傳遞數據在 url 后面加?攜帶參數
wx.navigateTo({ url: '../login/login?username=abc', success: function(res) { }, fail: function(res) { }, complete: function(res) { }, })
* 方式二
<navigator url="./home/home">跳轉到新頁面</navigator>
* 取出數據
取出傳遞的數據
this.data.username
其它的如重定向、跳轉到tabtar 可以參考微信小程序官方 api
https://developers.weixin.qq.com/miniprogram/dev/api/route/wx.navigateBack.html