diff --git a/sourcecode/alipay/app.js b/sourcecode/alipay/app.js index 7894afc16..694225d6c 100644 --- a/sourcecode/alipay/app.js +++ b/sourcecode/alipay/app.js @@ -609,8 +609,8 @@ App({ my.openLocation({ name: values[0], address: values[1], - longitude: values[2], - latitude: values[3], + longitude: parseFloat(values[2]), + latitude: parseFloat(values[3]) }); break; diff --git a/sourcecode/baidu/app.js b/sourcecode/baidu/app.js index 4d74fd060..6a21c3eaa 100755 --- a/sourcecode/baidu/app.js +++ b/sourcecode/baidu/app.js @@ -551,8 +551,8 @@ App({ swan.openLocation({ name: values[0], address: values[1], - longitude: values[2], - latitude: values[3] + longitude: parseFloat(values[2]), + latitude: parseFloat(values[3]) }); break; diff --git a/sourcecode/qq/app.js b/sourcecode/qq/app.js index 7e2199766..964792c81 100755 --- a/sourcecode/qq/app.js +++ b/sourcecode/qq/app.js @@ -520,8 +520,8 @@ App({ qq.openLocation({ name: values[0], address: values[1], - longitude: values[2], - latitude: values[3], + longitude: parseFloat(values[2]), + latitude: parseFloat(values[3]) }); break; diff --git a/sourcecode/toutiao/app.js b/sourcecode/toutiao/app.js index 44a1eace9..be252dbf3 100755 --- a/sourcecode/toutiao/app.js +++ b/sourcecode/toutiao/app.js @@ -526,8 +526,8 @@ App({ tt.openLocation({ name: values[0], address: values[1], - longitude: values[2], - latitude: values[3], + longitude: parseFloat(values[2]), + latitude: parseFloat(values[3]) }); break; diff --git a/sourcecode/weixin/app.js b/sourcecode/weixin/app.js index b07f0985d..ee75643ba 100755 --- a/sourcecode/weixin/app.js +++ b/sourcecode/weixin/app.js @@ -524,8 +524,8 @@ App({ wx.openLocation({ name: values[0], address: values[1], - longitude: values[2], - latitude: values[3], + longitude: parseFloat(values[2]), + latitude: parseFloat(values[3]) }); break;