微信小程序,定位位附近门店
首先看下效果图
![](https://i-blog.csdnimg.cn/blog_migrate/bcb76263e86198b7b3faccfb3b6add3e.jpeg)
![](https://i-blog.csdnimg.cn/blog_migrate/025f332488361c9149392778cb532926.jpeg)
![](https://i-blog.csdnimg.cn/blog_migrate/b5d68d975b4fdc0bd5c1c82648a309f1.jpeg)
在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":