| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 | 
							
- var app = getApp()
 
- var api = require('../../utils/api.js');
 
- Page({
 
-   data: {
 
-     loged: [
 
-       {
 
-         month: 'current',
 
-         day: '1',
 
-         color: '#77b9b9'
 
-       },
 
-       {
 
-         month: 'current',
 
-         day: '2',
 
-         color: '#77b9b9'
 
-       },
 
-       {
 
-         month: 'current',
 
-         day: '3',
 
-         color: '#f65556'
 
-       },
 
-       {
 
-         month: 'current',
 
-         day: '4',
 
-         color: '#f65556'
 
-       },
 
-       {
 
-         month: 'current',
 
-         day: '5',
 
-         color: '#f65556'
 
-       }, {
 
-         month: 'current',
 
-         day: '6',
 
-         color: '#77b9b9'
 
-       },
 
-       {
 
-         month: 'current',
 
-         day: '7',
 
-         color: '#77b9b9'
 
-       },
 
-       {
 
-         month: 'current',
 
-         day: '8',
 
-         color: '#77b9b9'
 
-       },
 
-       {
 
-         month: 'current',
 
-         day: '9',
 
-         color: '#77b9b9'
 
-       },
 
-     ],
 
-     thisMonthLearnTime: 0,
 
-     totalLearnTime: 0,
 
-     checkCardDays: 0
 
-   },
 
-   onLoad: function () {
 
-     var pt_student = wx.getStorageSync('pt_student')
 
-     wx.request({
 
-       url: api.getMyLearnInfoUrl,
 
-       method: 'GET',
 
-       data: {
 
-         'student_id': pt_student.id
 
-       },
 
-       success: res => {
 
-         if (res.data.status == 'success') {
 
-           console.log(res)
 
-           this.setData({
 
-             loged: res.data.checkCardList,
 
-             thisMonthLearnTime: res.data.thisMonthLearnTime,
 
-             totalLearnTime: res.data.totalLearnTime,
 
-             checkCardDays: res.data.checkCardDays
 
-           })
 
-         }
 
-       }
 
-     })
 
-   }
 
- })
 
 
  |