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.
|
|
|
const _app = getApp<IAppOption>();
|
|
|
|
|
|
|
|
// 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 {};
|