邓洁 : 注释log
This commit is contained in:
@@ -78,7 +78,7 @@
|
||||
},
|
||||
handleClear(e) {
|
||||
|
||||
console.log('handleClear', e);
|
||||
// console.log('handleClear', e);
|
||||
},
|
||||
open() {
|
||||
if (!uni.getStorageSync('city') && !uni.getStorageSync('district')) {
|
||||
@@ -93,7 +93,7 @@
|
||||
if (res.confirm) {
|
||||
this.getUserLocation();
|
||||
} else {
|
||||
console.log('取消');
|
||||
// console.log('取消');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -113,8 +113,8 @@
|
||||
uni.getFuzzyLocation({
|
||||
type: 'wgs84',
|
||||
success(res) {
|
||||
console.log('res.latitude', res.latitude);
|
||||
console.log('res.longitude', res.longitude);
|
||||
// console.log('res.latitude', res.latitude);
|
||||
// console.log('res.longitude', res.longitude);
|
||||
uni.setStorageSync('latitude', res.latitude);
|
||||
uni.setStorageSync('longitude', res.longitude);
|
||||
qqmapsdk.reverseGeocoder({
|
||||
@@ -123,12 +123,12 @@
|
||||
longitude: res.longitude
|
||||
},
|
||||
success: (re) => {
|
||||
console.log("解析地址成功", re);
|
||||
console.log(re.result.ad_info.city);
|
||||
console.log(re.result.ad_info.district);
|
||||
// console.log("解析地址成功", re);
|
||||
// console.log(re.result.ad_info.city);
|
||||
// console.log(re.result.ad_info.district);
|
||||
let city = re.result.ad_info.city
|
||||
let district = re.result.ad_info.district
|
||||
console.log('city-code', re.result.ad_info.city_code.substring(3));
|
||||
// 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('district', district);
|
||||
@@ -136,12 +136,12 @@
|
||||
// that.position = city.slice(0, 2) + district.slice(0, 2)
|
||||
},
|
||||
fail: (re) => {
|
||||
console.log(re, '失败信息');
|
||||
// console.log(re, '失败信息');
|
||||
}
|
||||
})
|
||||
},
|
||||
fail(err) {
|
||||
console.log("获取经纬度失败", err);
|
||||
// console.log("获取经纬度失败", err);
|
||||
uni.getSystemInfo({
|
||||
success: (res) => {
|
||||
if (!res.locationEnabled || !res.locationAuthorized) {
|
||||
@@ -158,7 +158,7 @@
|
||||
// }
|
||||
// })
|
||||
} else {
|
||||
console.log('取消');
|
||||
// console.log('取消');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user