邓洁 : 修改发布地址问题

This commit is contained in:
邓洁
2023-12-06 22:51:18 +08:00
parent 2199f88725
commit 12a810cc0d
5 changed files with 20 additions and 8 deletions

View File

@@ -193,10 +193,12 @@
// console.log(re.result.ad_info.district);
let city = re.result.ad_info.city
let district = re.result.ad_info.district
let province = re.result.ad_info.province
// console.log('city-code', re.result.ad_info.city_code.substring(3));
uni.setStorageSync('city_code', re.result.ad_info.city_code.substring(3));
uni.setStorageSync('city', city.slice(0, 2));
uni.setStorageSync('city', city);
uni.setStorageSync('district', district);
uni.setStorageSync('province', province);
that.getRegionList()
// that.position = city.slice(0, 2) + district.slice(0, 2)
},