微信小程序,定位位附近门店
首先看下效果图
![](https://img-blog.csdnimg.cn/20200719190707136.jpg)
![](https://img-blog.csdnimg.cn/20200719190717293.jpg)
![](https://img-blog.csdnimg.cn/20200719190727721.jpg)
在uni-app插件市场有发布插件,详情代码可以去下载
链接: https://ext.dcloud.net.cn/plugin?id=615
gitee:https://gitee.com/huangchunhongzZ/nearbyStores
使用方法
1、在manifest.json中授权 permission
wx.getLocation的方法需要在 manifest.json 微信小程序中授权 微信接口描述
传统的在pages.json 配置一下信息不生效。
"permission": {
"scope.userLocation": {
"desc": "你的位置信息将用于小程序位置接口的效果展示"
}
},