Browse Source

高精度定位

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

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

@ -147,6 +147,8 @@ const Index = () => {
let key = 'ODQBZ-3FZAU-6VIVL-2XXNM-F7CP7-WVFCY' // key
Taro.getLocation({
type: 'wgs84',
isHighAccuracy: true,
highAccuracyExpireTime: 1000 * 6,
success: function (res) {
setLongitude(res.longitude)
setLatitude(res.latitude)

Loading…
Cancel
Save