代码优化

This commit is contained in:
BianLzhaoMin 2024-11-12 13:10:59 +08:00
parent 3aba2a7a36
commit 5c7f445804
2 changed files with 4 additions and 3 deletions

View File

@ -13,7 +13,7 @@
"type" : "uniCloud"
},
{
"playground" : "custom",
"playground" : "standard",
"type" : "uni-app:app-android"
}
]

View File

@ -486,9 +486,10 @@ export default {
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.lat = latitude.length > 6 ? longitude.slice(0, 6) : latitude
this.submitParams.lon = longitude.length > 7 ? longitude.toString().slice(0, 7) : longitude
this.submitParams.lat = latitude.length > 6 ? longitude.toString().slice(0, 6) : latitude
// console.log(province, 'province')
// this.submitParams.address = `${province}${city}${district}${street}${streetNum}${poiName}`
},