|
@@ -3838,6 +3838,7 @@ Page({
|
|
|
},
|
|
|
//获取位置
|
|
|
getSelfLocation: function () {
|
|
|
+ console.log("我调用位置接口了");
|
|
|
var qqmapsdk = new QQMapWX({
|
|
|
key: 'B5DBZ-NGIHP-SQMD4-LHMG3-NJ72Z-7KFOV' //申请的开发者秘钥key
|
|
|
});
|
|
@@ -3846,7 +3847,7 @@ Page({
|
|
|
//type: 'wgs84',
|
|
|
type: 'gcj02',
|
|
|
success: function (res) {
|
|
|
- console.log(res, "0000000");
|
|
|
+ console.log(res, "00我调用位置接口成功了");
|
|
|
// 返回当前定位的经纬度
|
|
|
var latitude = parseFloat(res.latitude).toFixed(5);
|
|
|
var longitude = parseFloat(res.longitude).toFixed(5);
|