My jump code in the click event of the login button does not take effect
pan
pan 2018-03-27 14:51:08
0
2
1002

loginBtnClick : function () {

app.globalData.userinfo = {

username: this.data.username, password: this.data.password

}

console.log(app.globalData.userinfo)

wx.redirectTo({

url: '../index/index',

})

},


pan
pan

reply all(1)
邓宝伟

wx.navigateTo/wx.redirectTo can only be used to jump to non-tabBar pages. To jump to tabBar pages, you need to use wx.switchTab

  • reply Thanks for the solution~
    Mio author 2018-08-17 14:45:09
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template