| | |
| | | let info = data[0]; |
| | | console.log(info, '==================获取地址'); |
| | | locParam.province = info.province; |
| | | locParam.city = info.regeocodeData.addressComponent.city; |
| | | locParam.adcode = info.regeocodeData.addressComponent.adcode; |
| | | var ta = info.desc || '地址获取失败'; |
| | | locParam.address = ta |
| | | const resCity = await that.$u.api.getCityByName({ cityName: locParam.city }) |
| | | const resCity = await that.$u.api.getCityByName({ code: locParam.adcode }) |
| | | if (resCity.code === 200 && resCity.data) { |
| | | locParam.cityId = resCity.data.id |
| | | that.$store.commit('setPosition', locParam) |