teacher.js 258 B

1234567891011121314
  1. import Api from "../../model/api";
  2. Page({
  3. data: {
  4. info: {}
  5. },
  6. async onLoad(options) {
  7. let id = options.id;
  8. const res = await Api.getTeacher(id, true)
  9. this.setData({
  10. info: res.data
  11. })
  12. }
  13. });