随笔 - 2649  文章 - 2452  评论 - 0  阅读 - 74060

文章分类 -  MeiOS / Location定位

getLocation 获取当前的地理位置
摘要:getLocation ^6.8 获取当前的地理位置 #接口调用示例 this.$bridge .getLocation() .then(res => { this.$alert(res) }) .catch(err => { this.$toast(err) }) #返回参数 成功时返回 Prop 阅读全文
posted @ 2024-12-17 09:30 AtlasLapetos 阅读(5) 评论(0) 推荐(0) 编辑
getLocation 获取今日步数
摘要:getLocation ^8.11 获取今日步数。只支持 ios #接口调用示例 this.$bridge .getTodaySteps() .then((res) => { console.log("getTodaySteps-res", res); }) .catch((err) => { co 阅读全文
posted @ 2024-12-17 09:30 AtlasLapetos 阅读(2) 评论(0) 推荐(0) 编辑
requestLocation 当前定位的周边地址
摘要:requestLocation ^6.2.0 当前定位的周边地址 #请求参数 Prop Type Required Default Description param Object Y {} 属性: operation:{ Type: String, Default: N/A, Descriptio 阅读全文
posted @ 2024-12-17 09:30 AtlasLapetos 阅读(19) 评论(0) 推荐(0) 编辑
getWeatherInfo 根据城市对应的气象局ID获取城市天气信息
摘要:getWeatherInfo ^5.0.0 根据城市对应的气象局ID获取城市天气信息,比如温度,风向等信息 #请求参数 Prop Type Required Default Description param Object Y {} 属性: cityNo: 请求参数 #接口调用示例 this.$br 阅读全文
posted @ 2024-12-17 09:30 AtlasLapetos 阅读(3) 评论(0) 推荐(0) 编辑
getGpsInfo 获取gps信息
摘要:getGpsInfo 获取gps信息 #请求参数 Prop Type Required Default Description param Object Y {} 属性: accuracy:{ Type: Number, Default: 3, Description: (定位的精确度) 1、低精度 阅读全文
posted @ 2024-12-17 09:29 AtlasLapetos 阅读(4) 评论(0) 推荐(0) 编辑
getCityInfo 根据百度地图得到的城市名称获取城市的信息
摘要:getCityInfo ^5.0.0 根据百度地图得到的城市名称获取城市的信息,比如该城市对应的气象局对应的ID #请求参数 Prop Type Required Default Description param Object Y {} 属性: cityName: 请求参数 #接口调用示例 thi 阅读全文
posted @ 2024-12-17 09:29 AtlasLapetos 阅读(9) 评论(0) 推荐(0) 编辑
geoCode 通过地址返回经纬度信息
摘要:geoCode ^6.2.0 通过地址返回经纬度信息 #请求参数 Prop Type Required Default Description operation String Y - 'geoCode' param Object Y {} 属性: city: address: 请求参数 #接口调用 阅读全文
posted @ 2024-12-17 09:29 AtlasLapetos 阅读(5) 评论(0) 推荐(0) 编辑
stopLocationUpdate 取消实时地理位置监听
摘要:stopLocationUpdate ^6.8 取消实时地理位置监听 #接口调用示例 this.$bridge .stopLocationUpdate() .then(res => { this.$alert(res) }) .catch(err => { this.$toast(err) }) # 阅读全文
posted @ 2024-12-17 09:29 AtlasLapetos 阅读(3) 评论(0) 推荐(0) 编辑
startLocationUpdate 监听实时地理位置
摘要:startLocationUpdate ^6.8 监听实时地理位置 #接口调用示例 this.$bridge .startLocationUpdate() .then(res => { this.$alert(res) }) .catch(err => { this.$toast(err) }) # 阅读全文
posted @ 2024-12-17 09:29 AtlasLapetos 阅读(4) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示