底部下拉菜单栏(action-sheet)怎么跳转啊

发布于 8 年前作者 liaojing9960 次浏览最后编辑 8 年前来自 ask

insert() {

wx.showActionSheet({

itemList: [‘单选题’, ‘多选题’,‘填空题’],

itemColor: ‘#007aff’,

success(res) {

console.log(res.tapIndex);

if (res.tapIndex === 0) {

} else if (res.tapIndex === 1) {

}

}

})

},

  • 就是这个底部下拉菜单栏,想弄个跳转,但是我好想没什么思路,可以帮忙解决下吗
2 回复
yongyu
yongyu1 楼6 年前

是想跳到其他页面么?如果是的话在success中进行判断跳转即可。

yfang
yfang2 楼6 年前

已解决