|
|
|
@ -359,11 +359,12 @@ export default { |
|
|
|
|
myAmapFun.getWeather({ |
|
|
|
|
success: function (data) { |
|
|
|
|
//成功回调 |
|
|
|
|
this_.showWeather = true |
|
|
|
|
console.log(data, 'success') |
|
|
|
|
this_.city = data.city.data, |
|
|
|
|
this_.time = data.liveData.reporttime, |
|
|
|
|
this_.weather = data.weather.data + ' ' + data.temperature.data + '°C' + ' ' + data.winddirection.data + ' ' + data.windpower.data, |
|
|
|
|
this_.showWeather = true |
|
|
|
|
this_.$forceUpdate() |
|
|
|
|
}, |
|
|
|
|
fail: function (info) { |
|
|
|
|
//失败回调 |
|
|
|
|