Browse Source

location info issue fix

tags/2.2.4
Stormeye.Wu 7 years ago
parent
commit
28f1548890
2 changed files with 2 additions and 2 deletions
  1. +0
    -1
      app.js
  2. +2
    -1
      pages/index/index.js

+ 0
- 1
app.js View File

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


+ 2
- 1
pages/index/index.js View File

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


Loading…
Cancel
Save