邓洁 : 修改发布地址问题
This commit is contained in:
@@ -45,7 +45,7 @@
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
position: uni.getStorageSync('city') + uni.getStorageSync('district').slice(0, 2),
|
||||
position: uni.getStorageSync('city').slice(0, 2) + uni.getStorageSync('district').slice(0, 2),
|
||||
currentNum: '',
|
||||
keyword: ''
|
||||
};
|
||||
@@ -130,7 +130,7 @@
|
||||
let district = re.result.ad_info.district
|
||||
// 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);
|
||||
that.getRegionList()
|
||||
// that.position = city.slice(0, 2) + district.slice(0, 2)
|
||||
|
||||
Reference in New Issue
Block a user