原来好好的,scroll-view滚动视图动态创建。今天看,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) {
}
})
本文网址:http://www.91bianli.com/kaifazhinan/70122.html