task#6524 报备

This commit is contained in:
2025-06-12 10:26:29 +08:00
parent 0fc0d33742
commit 749daae26e
5 changed files with 261 additions and 117 deletions

View File

@ -45,7 +45,7 @@ export function getAddress(mapContext, lnglat) {
// 输入提示
export function searchFun(mapContext, cityCode, keyword) {
return new Promise((resolve, reject) => {
return new Promise((resolve) => {
mapContext.plugin('AMap.AutoComplete', function(){
var autoOptions = {
city: cityCode || '全国',
@ -58,7 +58,7 @@ export function searchFun(mapContext, cityCode, keyword) {
if(result.info == 'OK') {
resolve(result.tips)
} else {
reject(result)
resolve([])
}
})
})