代码优化
This commit is contained in:
parent
3aba2a7a36
commit
5c7f445804
|
|
@ -13,7 +13,7 @@
|
||||||
"type" : "uniCloud"
|
"type" : "uniCloud"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"playground" : "custom",
|
"playground" : "standard",
|
||||||
"type" : "uni-app:app-android"
|
"type" : "uni-app:app-android"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -486,9 +486,10 @@ export default {
|
||||||
this.submitParams.address = res.data.result.formatted_address
|
this.submitParams.address = res.data.result.formatted_address
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
// console.log(longitude.toString().slice(0, 7), '-----')
|
||||||
|
|
||||||
this.submitParams.lon = longitude.length > 7 ? longitude.slice(0, 7) : longitude
|
this.submitParams.lon = longitude.length > 7 ? longitude.toString().slice(0, 7) : longitude
|
||||||
this.submitParams.lat = latitude.length > 6 ? longitude.slice(0, 6) : latitude
|
this.submitParams.lat = latitude.length > 6 ? longitude.toString().slice(0, 6) : latitude
|
||||||
// console.log(province, 'province')
|
// console.log(province, 'province')
|
||||||
// this.submitParams.address = `${province}${city}${district}${street}${streetNum}${poiName}`
|
// this.submitParams.address = `${province}${city}${district}${street}${streetNum}${poiName}`
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue