|
|
@ -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) |
|
|
|