const app = getApp(); Page({ data: { grades:[], page_status:0 }, onLoad: function (options) { this.exercise_id = options.exercise_id; app.api("exercises.exercise_lists")({exercise_id: this.exercise_id}) .then(res=>{ console.log(res); this.setData({ grades: res.exercise_users, page_status: 1}) }) }, onReady: function () { }, onShow: function () { } })