|
@@ -51,7 +51,7 @@ |
|
|
}else{ |
|
|
}else{ |
|
|
this.TOAST("正在定位...") |
|
|
this.TOAST("正在定位...") |
|
|
} |
|
|
} |
|
|
wx.getLocation({ |
|
|
|
|
|
|
|
|
this.wxObject.getLocation({ |
|
|
type: "gcj02", // 默认为wgs84的gps坐标,如果要返回直接给openLocation用的火星坐标,可传入'gcj02' |
|
|
type: "gcj02", // 默认为wgs84的gps坐标,如果要返回直接给openLocation用的火星坐标,可传入'gcj02' |
|
|
success: function (res) { |
|
|
success: function (res) { |
|
|
var latitude = res.latitude; // 纬度,浮点数,范围为90 ~ -90 |
|
|
var latitude = res.latitude; // 纬度,浮点数,范围为90 ~ -90 |
|
|