update: 百度地图服务ak补充
This commit is contained in:
parent
c79a1ebee5
commit
0578fba964
@ -463,7 +463,8 @@ export default {
|
|||||||
currentAddress.location.lat + "," + currentAddress.location.lng;
|
currentAddress.location.lat + "," + currentAddress.location.lng;
|
||||||
}
|
}
|
||||||
let BMap = new bmap.BMapWX({
|
let BMap = new bmap.BMapWX({
|
||||||
ak: "LkqqCMB1qZmjYEkzx0Y1PTfmAUrkWPog",
|
// ak: "LkqqCMB1qZmjYEkzx0Y1PTfmAUrkWPog",
|
||||||
|
ak: that.bdMapAk,
|
||||||
});
|
});
|
||||||
let fail = function (res) {
|
let fail = function (res) {
|
||||||
console.log("fail", res);
|
console.log("fail", res);
|
||||||
@ -493,7 +494,8 @@ export default {
|
|||||||
location = res.latitude + "," + res.longitude;
|
location = res.latitude + "," + res.longitude;
|
||||||
|
|
||||||
let BMap = new bmap.BMapWX({
|
let BMap = new bmap.BMapWX({
|
||||||
ak: "LkqqCMB1qZmjYEkzx0Y1PTfmAUrkWPog",
|
// ak: "LkqqCMB1qZmjYEkzx0Y1PTfmAUrkWPog",
|
||||||
|
ak: that.bdMapAk,
|
||||||
});
|
});
|
||||||
|
|
||||||
let fail = function (res) {
|
let fail = function (res) {
|
||||||
@ -616,7 +618,8 @@ export default {
|
|||||||
output: "json",
|
output: "json",
|
||||||
city_limit: true,
|
city_limit: true,
|
||||||
ret_coordtype: "gcj02ll",
|
ret_coordtype: "gcj02ll",
|
||||||
ak: "qWKt2xbrqXsp2yK35YYXVBNZgrbiCG5v",
|
// ak: "qWKt2xbrqXsp2yK35YYXVBNZgrbiCG5v",
|
||||||
|
ak: that.bdMapAk,
|
||||||
};
|
};
|
||||||
|
|
||||||
let city = that.originalData.result.addressComponent.city;
|
let city = that.originalData.result.addressComponent.city;
|
||||||
|
|||||||
@ -1024,7 +1024,8 @@ export default {
|
|||||||
region: this.originalData.result.addressComponent.city,
|
region: this.originalData.result.addressComponent.city,
|
||||||
output: "json",
|
output: "json",
|
||||||
city_limit: true,
|
city_limit: true,
|
||||||
ak: "qWKt2xbrqXsp2yK35YYXVBNZgrbiCG5v",
|
// ak: "qWKt2xbrqXsp2yK35YYXVBNZgrbiCG5v",
|
||||||
|
ak: that.bdMapAk,
|
||||||
ret_coordtype: "gcj02ll",
|
ret_coordtype: "gcj02ll",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -352,6 +352,7 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
getLocation() {
|
getLocation() {
|
||||||
|
const that = this
|
||||||
uni.getLocation({
|
uni.getLocation({
|
||||||
type: "wgs84",
|
type: "wgs84",
|
||||||
isHighAccuracy: true,
|
isHighAccuracy: true,
|
||||||
@ -359,7 +360,8 @@ export default {
|
|||||||
location = res.latitude + "," + res.longitude;
|
location = res.latitude + "," + res.longitude;
|
||||||
|
|
||||||
let BMap = new bmap.BMapWX({
|
let BMap = new bmap.BMapWX({
|
||||||
ak: "LkqqCMB1qZmjYEkzx0Y1PTfmAUrkWPog",
|
// ak: "LkqqCMB1qZmjYEkzx0Y1PTfmAUrkWPog",
|
||||||
|
ak: that.bdMapAk,
|
||||||
});
|
});
|
||||||
|
|
||||||
let fail = function (res) {
|
let fail = function (res) {
|
||||||
@ -440,7 +442,8 @@ export default {
|
|||||||
location = res.latitude + "," + res.longitude;
|
location = res.latitude + "," + res.longitude;
|
||||||
|
|
||||||
let BMap = new bmap.BMapWX({
|
let BMap = new bmap.BMapWX({
|
||||||
ak: "LkqqCMB1qZmjYEkzx0Y1PTfmAUrkWPog",
|
// ak: "LkqqCMB1qZmjYEkzx0Y1PTfmAUrkWPog",
|
||||||
|
ak: that.bdMapAk,
|
||||||
});
|
});
|
||||||
|
|
||||||
let fail = function (res) {
|
let fail = function (res) {
|
||||||
@ -604,7 +607,8 @@ export default {
|
|||||||
let baiduParams = {
|
let baiduParams = {
|
||||||
uid: uid,
|
uid: uid,
|
||||||
scope: 1,
|
scope: 1,
|
||||||
ak: "qWKt2xbrqXsp2yK35YYXVBNZgrbiCG5v",
|
// ak: "qWKt2xbrqXsp2yK35YYXVBNZgrbiCG5v",
|
||||||
|
ak: this.bdMapAk,
|
||||||
output: "json",
|
output: "json",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -966,7 +966,8 @@ export default {
|
|||||||
location = res.latitude + "," + res.longitude;
|
location = res.latitude + "," + res.longitude;
|
||||||
|
|
||||||
let BMap = new bmap.BMapWX({
|
let BMap = new bmap.BMapWX({
|
||||||
ak: "LkqqCMB1qZmjYEkzx0Y1PTfmAUrkWPog",
|
// ak: "LkqqCMB1qZmjYEkzx0Y1PTfmAUrkWPog",
|
||||||
|
ak: that.bdMapAk,
|
||||||
});
|
});
|
||||||
|
|
||||||
let fail = function (res) {
|
let fail = function (res) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user