Browse Source

开启精确定位

dev
巴林闲侠 2 years ago
parent
commit
23b59303ee
  1. 4
      weapp/src/packages/patrol/index.jsx

4
weapp/src/packages/patrol/index.jsx

@ -160,8 +160,8 @@ const Index = () => {
Taro.getLocation({ Taro.getLocation({
// type: 'wgs84', // type: 'wgs84',
type: 'gcj02', type: 'gcj02',
// isHighAccuracy: true, isHighAccuracy: true,
isHighAccuracy: false, // isHighAccuracy: false,
highAccuracyExpireTime: 1000 * 6, highAccuracyExpireTime: 1000 * 6,
success: function (res) { success: function (res) {
setLongitude(res.longitude) setLongitude(res.longitude)

Loading…
Cancel
Save