根据位置经纬度获取温度天气风向API
// 获取天气状态
getWeather: function () {
var _this = this;
$.ajax("https://devapi.qweather.com/v7/weather/now?location=105.148371,25.370256&key=a580a69c104d4fcc9d446cdfdc3c2632", {
type: "get",
dataType: "json",
success: function (result) {
if (result.code === "200") {
localStorage.setItem("weather", JSON.stringify(result));
},
});
},