...
|
...
|
@@ -346,19 +346,25 @@ |
|
|
})
|
|
|
},
|
|
|
onShow() {
|
|
|
let tempArr = []
|
|
|
let param = this.landParam
|
|
|
this.scale = 13
|
|
|
this.notReadNumber = 0
|
|
|
this.getSysNoReadNum()
|
|
|
let tempArr = []
|
|
|
this.landList = []
|
|
|
uni.getLocation({
|
|
|
type: 'wgs84',
|
|
|
geocode: true,
|
|
|
success: (res) => {
|
|
|
this.cityCode = res.address.cityCode
|
|
|
this.latitude = res.latitude
|
|
|
this.longitude = res.longitude
|
|
|
this.city = res.address.city
|
|
|
this.cityCode = res.address.cityCode
|
|
|
if(param.latitude != ''){
|
|
|
this.latitude = param.latitude
|
|
|
this.longitude = param.longitude
|
|
|
}else{
|
|
|
this.latitude = res.latitude
|
|
|
this.longitude = res.longitude
|
|
|
}
|
|
|
},
|
|
|
fail: (err) => {
|
|
|
this.city = '北京市'
|
...
|
...
|
@@ -370,11 +376,6 @@ |
|
|
longitude: this.longitude,
|
|
|
latitude: this.latitude,
|
|
|
});
|
|
|
let param = this.landParam
|
|
|
/* if(param.latitude != ''){
|
|
|
this.latitude = param.latitude
|
|
|
this.longitude = param.longitude
|
|
|
} */
|
|
|
let province = ''
|
|
|
let city = ''
|
|
|
if(param.province == '' && param.city == ''){
|
...
|
...
|
|