Commit a13e4e20 authored by Facius's avatar Facius

improve: 首页日期

parent 9481e676
Pipeline #2971 canceled with stages
...@@ -259,7 +259,6 @@ export default { ...@@ -259,7 +259,6 @@ export default {
this.systemInfo = uni.getSystemInfoSync() this.systemInfo = uni.getSystemInfoSync()
}, },
onShow() { onShow() {
console.log('----------------')
this.getWeather() this.getWeather()
this.initInfo() this.initInfo()
if (this.checkToken()) { if (this.checkToken()) {
...@@ -297,7 +296,6 @@ export default { ...@@ -297,7 +296,6 @@ export default {
latitude: res.latitude, latitude: res.latitude,
longitude: res.longitude, longitude: res.longitude,
}).then((res) => { }).then((res) => {
console.log('--------getWeather--------', res)
if (res.data) { if (res.data) {
this.weather = res.data this.weather = res.data
} }
...@@ -319,7 +317,7 @@ export default { ...@@ -319,7 +317,7 @@ export default {
}, },
handleComfirmDate(date) { handleComfirmDate(date) {
console.log(date) console.log(date)
this.date = `${date.year}-${date.month}-${date.day}` this.date = `${date.year}-${date.month}-01`
this.monthRecord() this.monthRecord()
}, },
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