In the WeChat service account or official account, how to write the front-end and back-end to obtain the user's city location and display it on the service account page? How to implement the code?
In the WeChat service account or official account, how to write the front-end and back-end to obtain the user's city location and display it on the service account page? How to implement the code?
This has a plug-in, search it on Baidu
Just use the map api
onload calls the WeChat built-in method wx.getLocation method to obtain the positioning information, and then performs subsequent operations