| | |
| | | this.ecComponent = this.selectComponent('#mychart-dom-line'); |
| | | this.initChart() |
| | | // }, 1000); |
| | | |
| | | wx.startPullDownRefresh({ |
| | | success: (res) => {}, |
| | | fail: (res) => {}, |
| | | complete: (res) => {}, |
| | | }) |
| | | }, |
| | | |
| | | /** |
| | |
| | | */ |
| | | onShow: function () { |
| | | var that = this |
| | | wx.startPullDownRefresh({ |
| | | success: (res) => {}, |
| | | fail: (res) => {}, |
| | | complete: (res) => {}, |
| | | }) |
| | | }, |
| | | |
| | | onPullDownRefresh(){ |
| | |
| | | text1: "", |
| | | text2: "本次测评已完成", |
| | | text3: "查看详情", |
| | | hasScore: true |
| | | }) |
| | | } else { |
| | | that.setData({ |
| | |
| | | text2: "请尽快完成测评", |
| | | text3: "去测评", |
| | | score: undefined, |
| | | hasScore: false |
| | | }) |
| | | } |
| | | |
| | |
| | | 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') |
| | | }) |
| | | |
| | | //折线图数据 |