mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2026-02-05 00:49:49 +08:00
【优化】优化用户地址内地图三级联动获取接口返回,因可能存在县区名称重复问题,改为三级匹配。
This commit is contained in:
@@ -162,7 +162,9 @@
|
||||
this.form.address = location.address;
|
||||
|
||||
let postData = {
|
||||
id: location.district
|
||||
countyName: location.district,
|
||||
cityName: location.city,
|
||||
provinceName: location.province,
|
||||
}
|
||||
this.$u.api.getAreaIdByName(postData).then(res => {
|
||||
if (res.status) {
|
||||
@@ -176,8 +178,6 @@
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
console.log("location1:", location);
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user