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.
23 lines
408 B
23 lines
408 B
5 years ago
|
const app = getApp();
|
||
|
Page({
|
||
|
data: {
|
||
5 years ago
|
grades:[],
|
||
|
page_status:0
|
||
5 years ago
|
},
|
||
|
|
||
|
onLoad: function (options) {
|
||
|
this.exercise_id = options.exercise_id;
|
||
5 years ago
|
app.api("exercises.exercise_lists")({exercise_id: this.exercise_id})
|
||
5 years ago
|
.then(res=>{
|
||
|
console.log(res);
|
||
5 years ago
|
this.setData({ grades: res.exercise_users, page_status: 1})
|
||
5 years ago
|
})
|
||
|
},
|
||
|
|
||
|
onReady: function () {
|
||
|
|
||
|
},
|
||
|
onShow: function () {
|
||
|
|
||
|
}
|
||
|
})
|