Browse Source

取消精确定位

dev
巴林闲侠 2 years ago
parent
commit
f5adc1055e
  1. 3
      weapp/src/packages/patrol/index.jsx

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

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

Loading…
Cancel
Save