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
399 B
28 lines
399 B
const app = getApp();
|
|
Page({
|
|
|
|
data: {
|
|
|
|
},
|
|
|
|
onLoad: function (options) {
|
|
let {course_id} = options;
|
|
this.setData({course_id});
|
|
this.refresh();
|
|
},
|
|
refresh(){
|
|
let {course_id} = this.data;
|
|
app.api("courses.apply_teachers")({course_id})
|
|
.then(res=>{
|
|
;
|
|
this.setData(res);
|
|
}).catch(e=>{
|
|
app.showError(e);
|
|
})
|
|
},
|
|
|
|
onShow: function () {
|
|
|
|
}
|
|
|
|
}) |