riku
2022-08-26 9f78f3f014a3423ea3fcab8f9f1056c57cd47fc8
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')
          })
          //折线图数据