Commit a13e4e20 authored by Facius's avatar Facius

improve: 首页日期

parent 9481e676
Pipeline #2971 canceled with stages
......@@ -259,7 +259,6 @@ export default {
this.systemInfo = uni.getSystemInfoSync()
},
onShow() {
console.log('----------------')
this.getWeather()
this.initInfo()
if (this.checkToken()) {
......@@ -297,7 +296,6 @@ export default {
latitude: res.latitude,
longitude: res.longitude,
}).then((res) => {
console.log('--------getWeather--------', res)
if (res.data) {
this.weather = res.data
}
......@@ -319,7 +317,7 @@ export default {
},
handleComfirmDate(date) {
console.log(date)
this.date = `${date.year}-${date.month}-${date.day}`
this.date = `${date.year}-${date.month}-01`
this.monthRecord()
},
monthRecord() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment