master
游梦婷 2 years ago
parent 7123f2dc61
commit 0562d99e7a
  1. 16
      physical-merchants/address/addNewAddress/addNewAddress.vue

@ -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') {

Loading…
Cancel
Save