fd64d9bb by ex

添加提示

1 parent 082acdbe
...@@ -87,16 +87,17 @@ AppClient.prototype.getGPS = function (jsonStr, callback) { ...@@ -87,16 +87,17 @@ AppClient.prototype.getGPS = function (jsonStr, callback) {
87 }) 87 })
88 } else { 88 } else {
89 this.appObj.registerHandler("postGPS", function (data, responseCallback) { 89 this.appObj.registerHandler("postGPS", function (data, responseCallback) {
90 layer.open({ 90
91 content: JSON.stringify(data)
92 })
93 isRes = true 91 isRes = true
94 var latitude = '' 92 var latitude = ''
95 var longitude = '' 93 var longitude = ''
96 var result = /\{([\s\S]*)\}/.exec(data); 94 var result = /\{([\s\S]*)\}/.exec(data);
97 var arr = result[1].split(',') 95 var arr = result[1].split(',')
98 latitude = arr[0].split(':')[1] 96 longitude = arr[0].split(':')[1]
99 longitude = arr[1].split(':')[1] 97 latitude = arr[1].split(':')[1]
98 layer.open({
99 content: JSON.stringify(longitude,latitude)
100 })
100 callback(latitude, longitude, responseCallback) 101 callback(latitude, longitude, responseCallback)
101 }) 102 })
102 this.appObj.callHandler("getGPS", param, function (data, responseCallback) { 103 this.appObj.callHandler("getGPS", param, function (data, responseCallback) {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!