From 9f78f3f014a3423ea3fcab8f9f1056c57cd47fc8 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期五, 26 八月 2022 17:16:26 +0800
Subject: [PATCH] 2022.8.26

---
 pages/assessment/assessment.js |   17 ++++++++++-------
 1 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/pages/assessment/assessment.js b/pages/assessment/assessment.js
index bf6226a..00da6ea 100644
--- a/pages/assessment/assessment.js
+++ b/pages/assessment/assessment.js
@@ -121,12 +121,6 @@
     this.ecComponent = this.selectComponent('#mychart-dom-line');
     this.initChart()
     // }, 1000);
-
-    wx.startPullDownRefresh({
-      success: (res) => {},
-      fail: (res) => {},
-      complete: (res) => {},
-    })
   },
 
   /**
@@ -134,6 +128,11 @@
    */
   onShow: function () {
     var that = this
+    wx.startPullDownRefresh({
+      success: (res) => {},
+      fail: (res) => {},
+      complete: (res) => {},
+    })
   },
 
   onPullDownRefresh(){
@@ -206,6 +205,7 @@
             text1: "",
             text2: "鏈娴嬭瘎宸插畬鎴�",
             text3: "鏌ョ湅璇︽儏",
+            hasScore: true
           })
         } else {
           that.setData({
@@ -213,6 +213,7 @@
             text2: "璇峰敖蹇畬鎴愭祴璇�",
             text3: "鍘绘祴璇�",
             score: undefined,
+            hasScore: false
           })
         }
 
@@ -226,8 +227,10 @@
             color: d.color,
             rank: d.rank,
             level: d.level,
+            period: d.period,
             time: d.period.replace('/', '骞�').replace(/\-[0-9]+/, '鏈�'),
-            scoreId: d.tPGuid
+            scoreId: d.tPGuid,
+            updateTime: moment(d.updateDate).format('YYYY-MM-DD hh:mm')
           })
 
           //鎶樼嚎鍥炬暟鎹�

--
Gitblit v1.9.3