浏览代码

location info issue fix

tags/2.2.4
Stormeye.Wu 7 年前
父节点
当前提交
28f1548890
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. +0
    -1
      app.js
  2. +2
    -1
      pages/index/index.js

+ 0
- 1
app.js 查看文件

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


+ 2
- 1
pages/index/index.js 查看文件

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


正在加载...
取消
保存