Browse Source

测试定位功能

应县
yxq 1 year ago
parent
commit
61dd47a82e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/components/scanCode.vue

+ 1
- 1
Learun.Framework.Ultimate V7/LearunApp-2.2.0/components/scanCode.vue View File

@@ -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


Loading…
Cancel
Save