소스 검색

location info issue fix

tags/2.2.4
Stormeye.Wu 6 년 전
부모
커밋
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 => {


불러오는 중...
취소
저장