微信开发者工具 在wx.chooseLocation弹窗后,点击取消按钮无效
<view class="form-box" bindtap="getLocal"> <view class="form-content-left"> 选择位置 </view> <view class="form-content-right"> <input type="text" name="addressPath" id="addressPath" value="{{addressPath == null || addressPath == '' ? '请选择地址': addressPath }}" readonly /> </view> </view> getLocal: function(e){ console.log('调用选择位置') wx.chooseLocation({ success: (res) => { this.setData({ addressPath : res.address }) }, fail: (res)=>{ console.log(res) }, complete: function (res) { console.log(res) } }) },