map组件取消选择地点,并不会返回到上一页,界面出现空白?
//移动选点 moveToLocation: function () { var that = this ; wx.chooseLocation({ success: function (res) { console.log(res.address); var address= res.address; // wx.navigateTo({ // url: "/pages/me/houseOperation/creatFamily/creatFamily?address=" + address // }); let pages=getCurrentPages(); let prevPage=pages[pages.length-2]; prevPage.setData({ homeName: that.data.homeName, address: address }); wx.navigateBack({ delta:1 }) }, fail: function (err) { console.log(err) } }); } |
点击取消之后,页面出现空白,,无法返回上一页,取消按钮也是map组件中的一部分.
4 回复