|
|
@@ -702,8 +702,14 @@ Page({
|
|
|
toSciencePage() {
|
|
|
wx.navigateTo({ url: `/module/article/pages/science-list/science-list` });
|
|
|
},
|
|
|
- //获取跳转慢病管理链接(每次点击都拉取最新链接,避免链接过期)
|
|
|
+ //获取跳转慢病管理链接
|
|
|
async goChronicDisease() {
|
|
|
+ // 校验登录态:未登录(无 patientId)则提示并跳转登录页
|
|
|
+ if (!this.data.patient?.patientId) {
|
|
|
+ wx.showToast({ title: "请先登录", icon: "none" });
|
|
|
+ toCertificationPage();
|
|
|
+ return;
|
|
|
+ }
|
|
|
wx.showLoading({ title: "加载中" });
|
|
|
let url = "";
|
|
|
try {
|