schoolIntrouce.js 380 B

123456789101112131415
  1. import Api from "../../model/api";
  2. import {handleRichTextImgAuto} from "../../utils/utils";
  3. Page({
  4. data: {
  5. info: {},
  6. },
  7. async onLoad(options) {
  8. const res = await Api.getCollegeList(true);
  9. res.data[0].collegeContent = handleRichTextImgAuto(res.data[0].collegeContent);
  10. this.setData({
  11. info: res.data[0],
  12. })
  13. },
  14. })