update: 百度地图服务ak补充

This commit is contained in:
mixtan 2025-09-29 19:59:57 +08:00
parent c79a1ebee5
commit 0578fba964
4 changed files with 17 additions and 8 deletions

View File

@ -463,7 +463,8 @@ export default {
currentAddress.location.lat + "," + currentAddress.location.lng;
}
let BMap = new bmap.BMapWX({
ak: "LkqqCMB1qZmjYEkzx0Y1PTfmAUrkWPog",
// ak: "LkqqCMB1qZmjYEkzx0Y1PTfmAUrkWPog",
ak: that.bdMapAk,
});
let fail = function (res) {
console.log("fail", res);
@ -493,7 +494,8 @@ export default {
location = res.latitude + "," + res.longitude;
let BMap = new bmap.BMapWX({
ak: "LkqqCMB1qZmjYEkzx0Y1PTfmAUrkWPog",
// ak: "LkqqCMB1qZmjYEkzx0Y1PTfmAUrkWPog",
ak: that.bdMapAk,
});
let fail = function (res) {
@ -616,7 +618,8 @@ export default {
output: "json",
city_limit: true,
ret_coordtype: "gcj02ll",
ak: "qWKt2xbrqXsp2yK35YYXVBNZgrbiCG5v",
// ak: "qWKt2xbrqXsp2yK35YYXVBNZgrbiCG5v",
ak: that.bdMapAk,
};
let city = that.originalData.result.addressComponent.city;

View File

@ -1024,7 +1024,8 @@ export default {
region: this.originalData.result.addressComponent.city,
output: "json",
city_limit: true,
ak: "qWKt2xbrqXsp2yK35YYXVBNZgrbiCG5v",
// ak: "qWKt2xbrqXsp2yK35YYXVBNZgrbiCG5v",
ak: that.bdMapAk,
ret_coordtype: "gcj02ll",
};

View File

@ -352,6 +352,7 @@ export default {
});
},
getLocation() {
const that = this
uni.getLocation({
type: "wgs84",
isHighAccuracy: true,
@ -359,7 +360,8 @@ export default {
location = res.latitude + "," + res.longitude;
let BMap = new bmap.BMapWX({
ak: "LkqqCMB1qZmjYEkzx0Y1PTfmAUrkWPog",
// ak: "LkqqCMB1qZmjYEkzx0Y1PTfmAUrkWPog",
ak: that.bdMapAk,
});
let fail = function (res) {
@ -440,7 +442,8 @@ export default {
location = res.latitude + "," + res.longitude;
let BMap = new bmap.BMapWX({
ak: "LkqqCMB1qZmjYEkzx0Y1PTfmAUrkWPog",
// ak: "LkqqCMB1qZmjYEkzx0Y1PTfmAUrkWPog",
ak: that.bdMapAk,
});
let fail = function (res) {
@ -604,7 +607,8 @@ export default {
let baiduParams = {
uid: uid,
scope: 1,
ak: "qWKt2xbrqXsp2yK35YYXVBNZgrbiCG5v",
// ak: "qWKt2xbrqXsp2yK35YYXVBNZgrbiCG5v",
ak: this.bdMapAk,
output: "json",
};

View File

@ -966,7 +966,8 @@ export default {
location = res.latitude + "," + res.longitude;
let BMap = new bmap.BMapWX({
ak: "LkqqCMB1qZmjYEkzx0Y1PTfmAUrkWPog",
// ak: "LkqqCMB1qZmjYEkzx0Y1PTfmAUrkWPog",
ak: that.bdMapAk,
});
let fail = function (res) {