@@ -20,8 +20,13 @@ Page({
this.setData({
date: y + '-' + m + '-' + d
})
- this.getData()
+ $api.getDate().then(res => {
+ this.setData({
+ date: res.data.data
+ })
+ this.getData()
},
getData() {
wx.showNavigationBarLoading()