|
@@ -7,7 +7,7 @@ import { login } from "../../lib/logic";
|
|
|
import { useRouteQuery } from "../../utils/route-query";
|
|
import { useRouteQuery } from "../../utils/route-query";
|
|
|
import { appUpdate } from "../../lib/wx/update";
|
|
import { appUpdate } from "../../lib/wx/update";
|
|
|
import { addPatientOnlineRecordClockIn } from "./request";
|
|
import { addPatientOnlineRecordClockIn } from "./request";
|
|
|
-
|
|
|
|
|
|
|
+import { Get } from "../../lib/request/method";
|
|
|
const { shared, Easing, timing } = wx.worklet;
|
|
const { shared, Easing, timing } = wx.worklet;
|
|
|
const offset = shared(0);
|
|
const offset = shared(0);
|
|
|
|
|
|
|
@@ -328,14 +328,12 @@ Page({
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
// 诊疗随访提醒
|
|
// 诊疗随访提醒
|
|
|
- goComplete(e: {
|
|
|
|
|
|
|
+ async goComplete(e: {
|
|
|
currentTarget: { dataset: { page: string; id: number; title: string } };
|
|
currentTarget: { dataset: { page: string; id: number; title: string } };
|
|
|
}) {
|
|
}) {
|
|
|
const { title } = e.currentTarget.dataset;
|
|
const { title } = e.currentTarget.dataset;
|
|
|
let page = e.currentTarget.dataset.page;
|
|
let page = e.currentTarget.dataset.page;
|
|
|
let id = e.currentTarget.dataset.id;
|
|
let id = e.currentTarget.dataset.id;
|
|
|
- // let page = '/module/chats/pages/index/index';
|
|
|
|
|
- // let id = 1;
|
|
|
|
|
if (page === "/module/chats/pages/index/index") {
|
|
if (page === "/module/chats/pages/index/index") {
|
|
|
if (title === "健康评估") {
|
|
if (title === "健康评估") {
|
|
|
wx.setStorageSync("isAnalysis", 4);
|
|
wx.setStorageSync("isAnalysis", 4);
|
|
@@ -347,9 +345,26 @@ Page({
|
|
|
url: `${page}?component=questionnaire&messageType=1&id=${id}`,
|
|
url: `${page}?component=questionnaire&messageType=1&id=${id}`,
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
+ } else if (page === "/module/article/pages/science-info/science-info") {
|
|
|
|
|
+ try {
|
|
|
|
|
+ const res = await Get(`/psarticle/clickPsaNotice`, {
|
|
|
|
|
+ params: { noticeSendRecordId: id },
|
|
|
|
|
+ });
|
|
|
|
|
+ const url = res?.data;
|
|
|
|
|
+ const item = {
|
|
|
|
|
+ url,
|
|
|
|
|
+ };
|
|
|
|
|
+ wx.navigateTo({
|
|
|
|
|
+ url: `${page}`,
|
|
|
|
|
+ }).then((res) => {
|
|
|
|
|
+ res.eventChannel.emit("load", item);
|
|
|
|
|
+ });
|
|
|
|
|
+ } catch (error) {
|
|
|
|
|
+ console.log(error);
|
|
|
|
|
+ }
|
|
|
} else {
|
|
} else {
|
|
|
|
|
+ // 随访
|
|
|
wx.redirectTo({ url: `${page}?id=${id}` });
|
|
wx.redirectTo({ url: `${page}?id=${id}` });
|
|
|
- // wx.navigateTo({ url: `/module/follow/pages/evaluation/report?id=${id}` });
|
|
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
// 随访评估报告已出
|
|
// 随访评估报告已出
|
|
@@ -383,7 +398,7 @@ Page({
|
|
|
showCancel: false,
|
|
showCancel: false,
|
|
|
confirmText: `重新加载`,
|
|
confirmText: `重新加载`,
|
|
|
})
|
|
})
|
|
|
- .catch(() => {});
|
|
|
|
|
|
|
+ .catch(() => { });
|
|
|
await this.load(true);
|
|
await this.load(true);
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
@@ -399,7 +414,7 @@ Page({
|
|
|
.then((solarTerms) => {
|
|
.then((solarTerms) => {
|
|
|
this.setData({ solarTerms });
|
|
this.setData({ solarTerms });
|
|
|
})
|
|
})
|
|
|
- .catch(() => {});
|
|
|
|
|
|
|
+ .catch(() => { });
|
|
|
this.setData({ _loaded: true });
|
|
this.setData({ _loaded: true });
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -582,17 +597,15 @@ Page({
|
|
|
(<any>this).applyAnimatedStyle(".fab-2", () => {
|
|
(<any>this).applyAnimatedStyle(".fab-2", () => {
|
|
|
"worklet";
|
|
"worklet";
|
|
|
return {
|
|
return {
|
|
|
- transform: `translateX(${-offset.value}px) translateY(${
|
|
|
|
|
- -offset.value / 2
|
|
|
|
|
- }px)`,
|
|
|
|
|
|
|
+ transform: `translateX(${-offset.value}px) translateY(${-offset.value / 2
|
|
|
|
|
+ }px)`,
|
|
|
};
|
|
};
|
|
|
});
|
|
});
|
|
|
(<any>this).applyAnimatedStyle(".fab-3", () => {
|
|
(<any>this).applyAnimatedStyle(".fab-3", () => {
|
|
|
"worklet";
|
|
"worklet";
|
|
|
return {
|
|
return {
|
|
|
- transform: `translateX(${-offset.value}px) translateY(${
|
|
|
|
|
- offset.value / 2
|
|
|
|
|
- }px)`,
|
|
|
|
|
|
|
+ transform: `translateX(${-offset.value}px) translateY(${offset.value / 2
|
|
|
|
|
+ }px)`,
|
|
|
};
|
|
};
|
|
|
});
|
|
});
|
|
|
(<any>this).applyAnimatedStyle(".fab-4", () => {
|
|
(<any>this).applyAnimatedStyle(".fab-4", () => {
|
|
@@ -676,7 +689,7 @@ Page({
|
|
|
const { data } = await getShortScienceList();
|
|
const { data } = await getShortScienceList();
|
|
|
this.setData({ scienceList: data });
|
|
this.setData({ scienceList: data });
|
|
|
console.log(data, "data===scienceList");
|
|
console.log(data, "data===scienceList");
|
|
|
- } catch (error) {}
|
|
|
|
|
|
|
+ } catch (error) { }
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
observerPatient(model: { patientId: string; sex: "0" | "1" }) {
|
|
observerPatient(model: { patientId: string; sex: "0" | "1" }) {
|