Parcourir la source

location info issue fix

tags/2.2.4
Stormeye.Wu il y a 6 ans
Parent
révision
28f1548890
2 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. +0
    -1
      app.js
  2. +2
    -1
      pages/index/index.js

+ 0
- 1
app.js Voir le fichier

@@ -5,7 +5,6 @@ App({
onLaunch: function(options) {
var that = this;
that.globalData.sceneAddress = options.scene;
that.getLocation();
},
/**
* 获取地址位置信息


+ 2
- 1
pages/index/index.js Voir le fichier

@@ -20,6 +20,7 @@ Page({
onLoad: function(options) {
var that = this;
var scene = decodeURIComponent(options.scene);
app.getLocation();
},

onShow: function() {
@@ -51,7 +52,7 @@ Page({
code: code,
sceneAddress: app.globalData.sceneAddress,
latitude: '' + app.globalData.locationInfo.latitude,
longtitude: '' + app.globalData.locationInfo.longtitude,
longitude: '' + app.globalData.locationInfo.longitude,
}
})
.then(res => {


Chargement…
Annuler
Enregistrer