邓洁 : 修改细节

This commit is contained in:
邓洁
2023-11-13 22:00:38 +08:00
parent c639b24e9c
commit 9e627e8a92

View File

@@ -49,7 +49,7 @@
this.open()
},
methods: {
getLocation1() {
getUserLocation() {
var that = this
let qqmapsdk = new QQMapWX({
key: 'ZRKBZ-Q7FWL-GVZPK-MCRBU-4XFB5-ATBDB'
@@ -66,8 +66,8 @@
},
success: (re) => {
console.log("解析地址成功", re);
console.log(re.result.ad_info.city, );
console.log(re.result.ad_info.district, );
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
that.position = city.slice(0, 2) + district.slice(0, 2)
@@ -89,7 +89,7 @@
scope: 'scope.userFuzzyLocation',
success: function() {
console.log('授权成功');
that.getLocation1()
that.getUserLocation()
},
fail: function() {
console.log('授权失败');
@@ -102,7 +102,7 @@
uni.openSetting({
success: (res) => {
console.log(res);
that.getLocation1();
that.getUserLocation();
}
})
} else {