Traditional Culture Encyclopedia - Weather inquiry - How does WeChat applet have address weather in navigation bar?
How does WeChat applet have address weather in navigation bar?
1. Set the background color and text color of the navigation bar and the text content of the title in the app.json file of the applet. In the applet page, the user's location information is obtained by using the map API provided by WeChat and displayed on the page.
2. Use the third-party weather API to obtain the weather information of the current user's location and display it on the page. Pass the obtained address and weather information to the title of the navigation bar and the position to be displayed in the page through the setData method.
- Related articles
- Write a spring in which everything in the first grade recovers.
- Teaching plan of "what season is it now" for social activities that drag classes.
- Classic and wonderful advertising words about mango
- What are the four-character idioms that express sunshine?
- The difference between Frida Meng and Hetian Qidan
- What are the animal weather proverbs?
- Analysis of the causes of mine geological environmental problems
- Can milk tea be drunk overnight? Can milk tea stay overnight in the refrigerator?
- Is No.7 Izu suitable for fishing crucian carp in winter?
- Around March 10, I will go to Shanghai, Suzhou and Hangzhou for ten days. What clothes and shoes are suitable for this season?