测试
This commit is contained in:
@@ -308,7 +308,6 @@
|
|||||||
|
|
||||||
getWeather (code) {
|
getWeather (code) {
|
||||||
this.$http.post(`/api/bdweather/wdata?districtId=${code}`).then(res => {
|
this.$http.post(`/api/bdweather/wdata?districtId=${code}`).then(res => {
|
||||||
console.log(res)
|
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
const data = res.data.result.now
|
const data = res.data.result.now
|
||||||
|
|
||||||
@@ -357,12 +356,10 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
error: res => {
|
error: res => {
|
||||||
alert(JSON.stringify(res))
|
|
||||||
console.log(res)
|
console.log(res)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
alert(JOSN.stringify(e))
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -81,7 +81,8 @@
|
|||||||
this.address = uni.getStorageSync('address').address || ''
|
this.address = uni.getStorageSync('address').address || ''
|
||||||
this.weather = uni.getStorageSync('address').weather || ''
|
this.weather = uni.getStorageSync('address').weather || ''
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
deep: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user