|
|
@ -40,28 +40,38 @@ Component({ |
|
|
|
rankList: [], |
|
|
|
rankList: [], |
|
|
|
|
|
|
|
|
|
|
|
newCaseShow: false, |
|
|
|
newCaseShow: false, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tips: {}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
guide: 0, |
|
|
|
|
|
|
|
guideShow: false, |
|
|
|
|
|
|
|
guideList: ["4-1", "1-2", "3-3"], |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
lifetimes: { |
|
|
|
lifetimes: { |
|
|
|
attached() { |
|
|
|
attached() { |
|
|
|
const { DepartmentId, DepartmentName } = this.data.userInfo.Department[0]; |
|
|
|
app.waitLogin(true).then(() => { |
|
|
|
this.setData({ |
|
|
|
const { DepartmentId, DepartmentName } = this.data.userInfo.Department[0]; |
|
|
|
Department: this.data.userInfo.Department, |
|
|
|
this.setData({ |
|
|
|
DepartmentId, |
|
|
|
Department: this.data.userInfo.Department, |
|
|
|
DepartmentName, |
|
|
|
DepartmentId, |
|
|
|
}); |
|
|
|
DepartmentName, |
|
|
|
this.getTake(); |
|
|
|
}); |
|
|
|
this.getCase(); |
|
|
|
this.getTake(); |
|
|
|
this.getManageDoctor(); |
|
|
|
this.getCase(); |
|
|
|
this.getRankList(); |
|
|
|
this.getManageDoctor(); |
|
|
|
|
|
|
|
this.getRankList(); |
|
|
|
|
|
|
|
this.getTips(); |
|
|
|
|
|
|
|
this.getGuide(); |
|
|
|
|
|
|
|
|
|
|
|
this.waitEchart(async () => { |
|
|
|
this.waitEchart(async () => { |
|
|
|
this.getChat1(); |
|
|
|
this.getChat1(); |
|
|
|
this.getChat2(); |
|
|
|
this.getChat2(); |
|
|
|
this.getChat3(); |
|
|
|
this.getChat3(); |
|
|
|
// const chart1: any = await this.initChart1();
|
|
|
|
// const chart1: any = await this.initChart1();
|
|
|
|
// const chart2: any = await this.initChart2();
|
|
|
|
// const chart2: any = await this.initChart2();
|
|
|
|
// const chart3: any = await this.initChart3();
|
|
|
|
// const chart3: any = await this.initChart3();
|
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
@ -720,6 +730,53 @@ Component({ |
|
|
|
url: "/pages/cases/index", |
|
|
|
url: "/pages/cases/index", |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
getTips() { |
|
|
|
|
|
|
|
wx.ajax({ |
|
|
|
|
|
|
|
method: "GET", |
|
|
|
|
|
|
|
url: "?r=takeda/doctor/get-tips", |
|
|
|
|
|
|
|
data: {}, |
|
|
|
|
|
|
|
}).then((res) => { |
|
|
|
|
|
|
|
this.setData({ |
|
|
|
|
|
|
|
tips: res, |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getGuide() { |
|
|
|
|
|
|
|
wx.ajax({ |
|
|
|
|
|
|
|
method: "GET", |
|
|
|
|
|
|
|
url: "?r=takeda/account/get-guide", |
|
|
|
|
|
|
|
data: {}, |
|
|
|
|
|
|
|
}).then((res) => { |
|
|
|
|
|
|
|
this.setData({ |
|
|
|
|
|
|
|
guideShow: res.tipStatus === 2, |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
touchmovePreview() { |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
handleTapPreview() { |
|
|
|
|
|
|
|
if (this.data.guide === this.data.guideList.length - 1) { |
|
|
|
|
|
|
|
this.setData({ |
|
|
|
|
|
|
|
guideShow: false, |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
this.handleGuideClose(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
this.setData({ |
|
|
|
|
|
|
|
guide: Number(this.data.guide) + 1, |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
handleGuideClose() { |
|
|
|
|
|
|
|
this.setData({ |
|
|
|
|
|
|
|
guideShow: false, |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
wx.ajax({ |
|
|
|
|
|
|
|
method: "POST", |
|
|
|
|
|
|
|
url: "?r=takeda/account/close-guide", |
|
|
|
|
|
|
|
data: {}, |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|