|
@@ -1133,7 +1133,9 @@ export default {
|
|
doGetLocation() {
|
|
doGetLocation() {
|
|
return new Promise((resolve, reject) => {
|
|
return new Promise((resolve, reject) => {
|
|
uni.getLocation({
|
|
uni.getLocation({
|
|
- type: 'wgs84',
|
|
|
|
|
|
+ //type: 'wgs84',
|
|
|
|
+ type: 'gcj02',
|
|
|
|
+ isHighAccuracy: true,
|
|
success: (res) => {
|
|
success: (res) => {
|
|
uni.setStorageSync('user_latitude', res.latitude);
|
|
uni.setStorageSync('user_latitude', res.latitude);
|
|
uni.setStorageSync('user_longitude', res.longitude);
|
|
uni.setStorageSync('user_longitude', res.longitude);
|