天气
This commit is contained in:
@@ -291,16 +291,15 @@
|
||||
console.log(res)
|
||||
if (res.code === 0) {
|
||||
const data = res.data.result.now
|
||||
alert(JSON.stringify(data))
|
||||
|
||||
uni.setStorageSync('address', {
|
||||
...uni.getStorageSync('address'),
|
||||
weather: data.text || ''
|
||||
weather: `${data.text} ${data.temp}°` || ''
|
||||
})
|
||||
|
||||
this.address = {
|
||||
...uni.getStorageSync('address'),
|
||||
weather: data.text || ''
|
||||
weather: `${data.text} ${data.temp}°` || ''
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user