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