瀏覽代碼

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


Loading…
取消
儲存