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.
59 lines
1.5 KiB
59 lines
1.5 KiB
const _app = getApp<IAppOption>(); |
|
|
|
// 返回逻辑 |
|
// 1、一级医生和二级医生录入病历、提交反馈后,提交成功页面 按钮: 查看病历详情 返回病历列表 |
|
// 2、二级医生在病历详情页,选择邀请上级后,成功页面:查看病历详情 返回病历列表 从学习窗: |
|
// 3、学习窗顶部进入病历详情:选择邀请上级后,成功页面,按钮:返回学习窗; |
|
// 4、学习窗顶部进入病历详情:提交反馈后,按钮:返回学习窗 |
|
|
|
Page({ |
|
data: { |
|
caseId: "", |
|
rid: "", |
|
|
|
codeUrl: "", |
|
isFollow: "", |
|
|
|
btnType: "1", |
|
}, |
|
onLoad(options) { |
|
this.setData({ |
|
caseId: options.cid, |
|
isFollow: options.isf, |
|
rid: options.rid && options.rid !== "undefined" ? options.rid : "", |
|
}); |
|
if (options.wxi) { |
|
this.setData({ |
|
codeUrl: decodeURIComponent(options.wxi), |
|
}); |
|
} |
|
}, |
|
handleBackCase() { |
|
wx.reLaunch({ |
|
url: "/pages/cases/index", |
|
}); |
|
}, |
|
handleDetail() { |
|
// wx.reLaunch({ |
|
// url: `/module1/pages/casesDetail/index?id=${this.data.caseId}`, |
|
// }); |
|
wx.reLaunch({ |
|
url: "/pages/cases/index", |
|
success: () => { |
|
wx.navigateTo({ |
|
url: `/module1/pages/casesDetail/index?id=${this.data.caseId}`, |
|
}); |
|
}, |
|
}); |
|
}, |
|
handleBackRoom() { |
|
wx.reLaunch({ |
|
url: "/pages/chatRoomList/index", |
|
success: () => { |
|
wx.navigateTo({ |
|
url: `/module1/pages/chatRoom/index?id=${this.data.rid}`, |
|
}); |
|
}, |
|
}); |
|
}, |
|
});
|
|
|