|
|
@@ -640,12 +640,10 @@ Page({
|
|
|
wx.navigateTo({ url: `/module/article/pages/science-list/science-list` });
|
|
|
},
|
|
|
async toReportPage() {
|
|
|
- console.log("toReportPage==跳转到报告页面");
|
|
|
// const { patient } = await getPatients(/*this.data.patientId*/);
|
|
|
if (!this.data.patient) await toCertificationPage();
|
|
|
else {
|
|
|
const id = this.data.healthId;
|
|
|
- console.log("id==报告id", id);
|
|
|
if (id)
|
|
|
wx.navigateTo({ url: `/module/health/pages/report/report?id=${id}` });
|
|
|
else wx.showToast({ title: "暂无分析报告", icon: "none" });
|
|
|
@@ -717,7 +715,7 @@ Page({
|
|
|
async checkConsultationStatus() {
|
|
|
//获取正在咨询中的咨询id
|
|
|
const res = await Post("/consultManage/getConsultIng");
|
|
|
- const isConsulting = !!res.data.id;
|
|
|
+ const isConsulting = !!res.data?.id;
|
|
|
const hasNewMessage = res.data?.patientUnreadCount > 0;
|
|
|
// 是否有新消息
|
|
|
this.setData({ hasNewMessage });
|
|
|
@@ -757,7 +755,7 @@ Page({
|
|
|
url: `/module/article/pages/punch-card/punch-card?id=${id}`,
|
|
|
});
|
|
|
} else {
|
|
|
- // todo 打卡
|
|
|
+ // 打卡
|
|
|
const cardId = e.currentTarget.dataset.id;
|
|
|
await addPatientOnlineRecordClockIn(cardId);
|
|
|
wx.showToast({
|
|
|
@@ -799,7 +797,6 @@ Page({
|
|
|
src: item.photo,
|
|
|
});
|
|
|
}
|
|
|
-
|
|
|
// 添加itemImgFirst
|
|
|
if (item?.itemImgFirst) {
|
|
|
item.carouselMediaList.push({
|
|
|
@@ -816,12 +813,10 @@ Page({
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
-
|
|
|
// 更新 careList
|
|
|
this.setData({
|
|
|
careList: res,
|
|
|
});
|
|
|
-
|
|
|
// 更新 displayList 并恢复展开状态
|
|
|
const { allExpanded } = this.data;
|
|
|
let newDisplayList: any[] =
|
|
|
@@ -853,7 +848,6 @@ Page({
|
|
|
* 轮播组件进入/退出全屏时,隐藏/显示底部 tabbar,防止遮挡视频进度条
|
|
|
*/
|
|
|
onCarouselFullscreenChange(e: { detail?: { fullScreen?: boolean } }) {
|
|
|
- console.log(e, "全屏模式");
|
|
|
const fullScreen = !!e.detail?.fullScreen;
|
|
|
this.setData({
|
|
|
tabbarHidden: fullScreen,
|