blak-kong 2 years ago
parent 3a4019a313
commit 18eaff89e6

@ -204,25 +204,26 @@ class IotCarePlan extends Component<any, any> {
WL200NursingHistory: any = null; // 护理缓存历史 WL200NursingHistory: any = null; // 护理缓存历史
hadCheckReport = false; // 是否已检查仪器护理记录 hadCheckReport = false; // 是否已检查仪器护理记录
hadGotInstrumentHistoryData = false; // 是否已缓存仪器历史数据 hadGotInstrumentHistoryData = false; // 是否已缓存仪器历史数据
hadLoadedPage = false; // 判断是否首次进入页面
async onLoad() { async onLoad() {
// 保持屏幕常亮 // 保持屏幕常亮
Taro.setKeepScreenOn({ Taro.setKeepScreenOn({
keepScreenOn: true, keepScreenOn: true,
}); });
this.initData();
} }
componentDidMount() { componentDidMount() {}
this.setState({
videoContext: Taro.createVideoContext("myVideo"),
standVideoContext: null,
});
}
componentWillUnmount() {} componentWillUnmount() {}
componentDidShow() { componentDidShow() {
console.log("页面显示了"); console.log("页面显示了");
this.initData();
if (!this.hadLoadedPage) {
this.hadLoadedPage = true; // 二次进入页面(非首次进入)
return;
}
this.getWL200NursingHistory(); this.getWL200NursingHistory();
// 重置初始值,每次进入页面重新检查面罩护理记录 // 重置初始值,每次进入页面重新检查面罩护理记录

Loading…
Cancel
Save