You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
525 B

// pages/exercise_grade/exercise_grade.js
const app = getApp();
Page({
/**
* 页面的初始数据
*/
data: {
5 years ago
grades:[],
page_status:0
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
this.exercise_id = options.exercise_id;
app.client.get_exercise_grade({exercise_id: this.exercise_id})
.then(res=>{
console.log(res);
5 years ago
this.setData({ grades: res.data.exercise_users, page_status: 1})
})
},
onShareAppMessage: function () {
}
})