|
@@ -21,13 +21,7 @@ Page({
|
|
|
console.log(ringChart.getCurrentDataIndex(e));
|
|
|
},
|
|
|
onLoad(options){
|
|
|
- let that=this
|
|
|
- this.data.startdata = data.getDateStr(data.formatDate(), -30)
|
|
|
- this.data.enddata = data.formatDate()
|
|
|
- this.req(this.data.startdata, this.data.enddata)
|
|
|
- this.setData({
|
|
|
- user:wx.getStorageSync('user')
|
|
|
- })
|
|
|
+
|
|
|
},
|
|
|
req: function (start,end){
|
|
|
let that = this
|
|
@@ -143,5 +137,11 @@ Page({
|
|
|
setTimeout(() => {
|
|
|
ringChart.stopAnimation();
|
|
|
}, 500);
|
|
|
+ this.data.startdata = data.getDateStr(data.formatDate(), -30)
|
|
|
+ this.data.enddata = data.formatDate()
|
|
|
+ this.req(this.data.startdata, this.data.enddata)
|
|
|
+ this.setData({
|
|
|
+ user: wx.getStorageSync('user')
|
|
|
+ })
|
|
|
}
|
|
|
});
|