Browse Source

合并分支

Limengbo 7 years ago
parent
commit
13f905d335
1 changed files with 3 additions and 1 deletions
  1. 3 1
      pages/index/index.js

+ 3 - 1
pages/index/index.js

@@ -17,6 +17,7 @@ Page({
     time: "",
     rankData: {},
     share: false,
+    studyLog: []
   },
   
   lower: function (e) {
@@ -62,7 +63,8 @@ Page({
         this.setData({
           data: res.data.data,
           grade: util.gradeUpper(res.data.data.users.grade),
-          time: util.day(res.data.data.timeSpend)
+          time: util.day(res.data.data.timeSpend),
+          studyLog: util.studyTime(res.data.data.studyLog)
         })
       })
       //获取排名