tanyanfei 4 months ago
parent
commit
984aa2beb4
1 changed files with 5 additions and 1 deletions
  1. 5 1
      pages/index/index.js

+ 5 - 1
pages/index/index.js

@@ -93,7 +93,7 @@ Page({
         for (let key in weeks) {
         for (let key in weeks) {
           scoredays.push({
           scoredays.push({
             name:key,
             name:key,
-            data:weeks[key]
+            data:weeks[key].reverse()
           })
           })
         }
         }
         this.setData({
         this.setData({
@@ -128,6 +128,10 @@ Page({
           wx.showToast({
           wx.showToast({
             title: '打分成功',
             title: '打分成功',
           })
           })
+          this.setData({
+            isScore:1
+          })
+          this.getWeekAvg()
       }
       }
     })
     })
   },
   },