邓洁 : 注释log

This commit is contained in:
邓洁
2023-12-05 10:48:27 +08:00
parent 20f56b5d8d
commit 0612840cdc
27 changed files with 235 additions and 229 deletions

View File

@@ -77,7 +77,7 @@
if (res.confirm) {
this.getUserLocation();
} else {
console.log('取消');
// console.log('取消');
return false;
}
}
@@ -144,7 +144,7 @@
this.shopSearchListLength = res.data.data.length
// 用于触底刷新 为数据赋值:通过展开运算符的形式,进行新旧数据的拼接
this.searchInfoList = [...this.searchInfoList, ...res.data.data]
console.log(this.searchInfoList);
// console.log(this.searchInfoList);
})
},
getClassList() {
@@ -166,7 +166,7 @@
uni.setStorageSync('regionList', JSON.stringify(res.data.result[0].map(item => item.fullname)));
},
fail(err) {
console.log('请求区域失败:', err);
// console.log('请求区域失败:', err);
}
})
},
@@ -178,8 +178,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({
@@ -188,12 +188,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);
@@ -201,12 +201,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) {
@@ -223,7 +223,7 @@
// }
// })
} else {
console.log('取消');
// console.log('取消');
return false;
}
}
@@ -242,7 +242,7 @@
uni.getSetting({
success: function(res) {
if (res.authSetting['scope.userFuzzyLocation']) {
console.log('用户已经授权定位权限');
// console.log('用户已经授权定位权限');
uni.getSystemInfo({
success: (res) => {
if (!res.locationEnabled || !res.locationAuthorized) {
@@ -259,7 +259,7 @@
// }
// })
} else {
console.log('取消');
// console.log('取消');
return false;
}
}
@@ -271,12 +271,12 @@
})
// that.getUserLocation()
} else {
console.log('用户未授权定位权限');
// console.log('用户未授权定位权限');
uni.authorize({
scope: 'scope.userFuzzyLocation',
success: function() {
this.isAuth = true
console.log('授权成功');
// console.log('授权成功');
uni.getSystemInfo({
success: (res) => {
if (!res.locationEnabled || !res.locationAuthorized) {
@@ -298,7 +298,7 @@
// }
// })
} else {
console.log('取消');
// console.log('取消');
return false;
}
}
@@ -310,7 +310,7 @@
})
},
fail: function() {
console.log('授权失败');
// console.log('授权失败');
uni.showModal({
content: '检测到您没打开手机系统定位权限,请确保手机系统定位已开启',
confirmText: "确认",
@@ -319,12 +319,12 @@
if (res.confirm) {
uni.openSetting({
success: (res) => {
console.log(res);
// console.log(res);
that.getUserLocation();
}
})
} else {
console.log('取消');
// console.log('取消');
return false;
}
}