const _app = getApp(); // pages/story/a.ts Component({ /** * 组件的属性列表 */ properties: { userInfo: Object, DoctorTitleType: Object, hospitalClassification: Object, hospitalLevel: Object, }, /** * 组件的初始数据 */ data: { take: {}, case: {}, doctorCount: {}, }, lifetimes: { attached() { this.getTake(); this.getCase(); this.getManageDoctor(); }, }, /** * 组件的方法列表 */ methods: { getTake() { wx.ajax({ method: "GET", url: "?r=takeda/doctor/todo", data: {}, }).then((res) => { this.setData({ take: res, }); }); }, getCase() { wx.ajax({ method: "GET", url: "?r=takeda/doctor/case", data: {}, }).then((res) => { this.setData({ case: res, }); }); }, getManageDoctor() { wx.ajax({ method: "GET", url: "?r=takeda/doctor/manage-doctor-count", data: {}, }).then((res) => { this.setData({ doctorCount: res.count, }); }); }, handleInvite() { wx.navigateTo({ url: "/module1/pages/invite/index", }); }, handleOrg() { wx.navigateTo({ url: "/module1/pages/org3/index", }); }, handleEntryCase() { wx.navigateTo({ url: "/module1/pages/entryCases/index", }); }, }, }); export {};