Merge branch 'YOUFANGAPP1.1' of 192.168.0.27:dev0/youfang-app into YOUFANGAPP1.1
Conflicts: fangija-zsyf/config.js
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
var distDatas = {nearDists: []}
|
||||
Vue.component('map-component', {
|
||||
template: `
|
||||
|
||||
`,
|
||||
data: function(){
|
||||
return distDatas;
|
||||
},
|
||||
methods: {
|
||||
loadMap:function(){
|
||||
alert("map:"+lat+"address:"+address);
|
||||
baseInfo.address = address;
|
||||
if(lat && lng && address){
|
||||
|
||||
loadMapPoi();
|
||||
}else{
|
||||
axios.get("/rest/districts/detail", {
|
||||
params: {
|
||||
city: city,
|
||||
region:region,
|
||||
name: name
|
||||
}
|
||||
}).then(function (response) {
|
||||
console.log("map finish.....")
|
||||
var vo = response.data.data.detail
|
||||
if(vo.avgPrice){
|
||||
lat = vo.lat2;
|
||||
lng = vo.lng2;
|
||||
loadMapPoi();
|
||||
}
|
||||
}).catch(function (error) {
|
||||
alert(error)
|
||||
console.log(error);
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
},
|
||||
mounted:function(){
|
||||
alert("map start.....")
|
||||
this.loadMap();
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user