...
|
...
|
@@ -11,6 +11,7 @@ Page({ |
|
|
latitude: '',
|
|
|
longitude: '',
|
|
|
time: '',
|
|
|
my_address: '',
|
|
|
},
|
|
|
|
|
|
onLoad: function (options) {
|
...
|
...
|
@@ -38,6 +39,24 @@ Page({ |
|
|
latitude: res.latitude,
|
|
|
longitude: res.longitude
|
|
|
})
|
|
|
|
|
|
let url = '/index/second/getAddressInfo';
|
|
|
let head = {
|
|
|
'XX-Token': wx.getStorageSync('token')
|
|
|
}
|
|
|
let d = {
|
|
|
lat: res.latitude,
|
|
|
lng: res.longitude
|
|
|
}
|
|
|
// console.log(d)
|
|
|
app.post(url, d, head).then((res) => {
|
|
|
console.log(res);
|
|
|
that.setData({
|
|
|
my_address: res.address
|
|
|
})
|
|
|
})
|
|
|
|
|
|
|
|
|
},
|
|
|
})
|
|
|
|
...
|
...
|
|