Pārlūkot izejas kodu

测试定位功能

应县
yxq pirms 1 gada
vecāks
revīzija
61dd47a82e
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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 Parādīt failu

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


Notiek ielāde…
Atcelt
Saglabāt