showActionSheet 点击选项后,现在不会自动关闭了?
发布于 5 年前 作者 litan 15210 次浏览 来自 问答

原来好好的,今天看,showActionSheet 弹出菜单,点击其中某个菜单,逻辑执行了,但菜单没有自动关闭。在开发工具里是好的,但再手机上,却不关闭.

代码:

wx.showActionSheet({

itemList: orderMenu,

success: function (res) {

var menu = orderMenu[res.tapIndex];

switch (menu) {

case “送货上门”:

that.goHomeService();

break;

case “到店自取”:

that.selfPickup();

break;

case “快递”:

that.goExpress();

break;

}

},

fail: function (res) {

}

})

1 回复

你好,问题未复现。请提供一下出现问题的机型和微信版本,以及能复现问题的简单代码示例。

回到顶部