|
|
|
@ -202,7 +202,6 @@ |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
blurMethod(){ |
|
|
|
|
|
|
|
|
|
this.baiduApiMap(this.userAddress.address) |
|
|
|
|
}, |
|
|
|
|
getRect(selector, all) { |
|
|
|
@ -269,10 +268,10 @@ |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
//监听详细地址的onInput事件 |
|
|
|
|
location(n){ |
|
|
|
|
// this.userAddress.address = this.userAddress.address.replace(/\s+/g, "") |
|
|
|
|
}, |
|
|
|
|
// //监听详细地址的onInput事件 |
|
|
|
|
// location(n){ |
|
|
|
|
// // this.userAddress.address = this.userAddress.address.replace(/\s+/g, "") |
|
|
|
|
// }, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
baiduApiMap(query){ |
|
|
|
@ -280,9 +279,14 @@ |
|
|
|
|
let params={ |
|
|
|
|
query:query |
|
|
|
|
} |
|
|
|
|
uni.showLoading({ |
|
|
|
|
title: '加载中', |
|
|
|
|
mask:true, |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
// console.log(params,"params") |
|
|
|
|
baiduApiMapSearch(params).then(res=>{ |
|
|
|
|
|
|
|
|
|
uni.hideLoading(); |
|
|
|
|
console.log(res) |
|
|
|
|
if (res.return_code == '000000') { |
|
|
|
|
|
|
|
|
|