小程序底部导航

需要实现小程序新手引导页面的功能,需要覆盖底部导航

Navigation: function (event, that) {

var link = '';

if (event.currentTarget.dataset.id == 0) {

link = '../index/index';

}

else if (event.currentTarget.dataset.id == 1) {

link = '../person/person';

}
        

wx.redirectTo({//清空历史记录

url: link

})

},

猜你喜欢

转载自blog.csdn.net/weixin_38938009/article/details/80777880
今日推荐