|
|
|
|
@ -407,9 +407,9 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
this.getInstrumentClockSummary();
|
|
|
|
|
this.getInstrumentClockDetail();
|
|
|
|
|
}
|
|
|
|
|
componentDidMount() {}
|
|
|
|
|
componentDidMount() { }
|
|
|
|
|
|
|
|
|
|
componentWillUnmount() {}
|
|
|
|
|
componentWillUnmount() { }
|
|
|
|
|
|
|
|
|
|
componentDidShow() {
|
|
|
|
|
console.log("页面显示了");
|
|
|
|
|
@ -1922,7 +1922,6 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
}
|
|
|
|
|
/** 更新WL200护理历史运行时间 */
|
|
|
|
|
updateFR200NursingHistory = (data: any = null, jsonStatus: any = null) => {
|
|
|
|
|
console.log(11111111);
|
|
|
|
|
|
|
|
|
|
this.FR200NursingHistory = Taro.getStorageSync("FR200NursingHistory");
|
|
|
|
|
|
|
|
|
|
@ -1936,6 +1935,7 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
// 设置正确封面
|
|
|
|
|
if (!data) {
|
|
|
|
|
if (jsonStatus) {
|
|
|
|
|
this.setState({ Electricity: jsonStatus.battery, currentGear: jsonStatus.gear })
|
|
|
|
|
let { timeArr } = this.state;
|
|
|
|
|
let newTime = this.formatTime(
|
|
|
|
|
jsonStatus.totalWorkingMinutes,
|
|
|
|
|
@ -1948,10 +1948,12 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
if (flag) {
|
|
|
|
|
return;
|
|
|
|
|
this.switchVideoPause()
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
timeArr.push(newTime);
|
|
|
|
|
this.setState({ timeArr });
|
|
|
|
|
this.switchVideoPlay()
|
|
|
|
|
timeArr.push(newTime)
|
|
|
|
|
this.setState({ timeArr })
|
|
|
|
|
// 缓存每秒数据
|
|
|
|
|
if (!params.dataArray) params.dataArray = [];
|
|
|
|
|
params.dataArray.push(jsonStatus);
|
|
|
|
|
@ -2293,11 +2295,11 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
let report = true;
|
|
|
|
|
go(
|
|
|
|
|
"/recoding/pages/face_report_one/face_report_one?id=" +
|
|
|
|
|
ids +
|
|
|
|
|
"&report=" +
|
|
|
|
|
report +
|
|
|
|
|
"&obj=" +
|
|
|
|
|
JSON.stringify(obj)
|
|
|
|
|
ids +
|
|
|
|
|
"&report=" +
|
|
|
|
|
report +
|
|
|
|
|
"&obj=" +
|
|
|
|
|
JSON.stringify(obj)
|
|
|
|
|
);
|
|
|
|
|
} else if ("moistureTest" === nursingData.workMode) {
|
|
|
|
|
console.log("水分测试");
|
|
|
|
|
@ -2308,11 +2310,11 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
|
|
|
|
|
go(
|
|
|
|
|
"/recoding/pages/face_report/face_report?id=" +
|
|
|
|
|
deviceid +
|
|
|
|
|
"&recordId=" +
|
|
|
|
|
currentDevice +
|
|
|
|
|
"&report=" +
|
|
|
|
|
report
|
|
|
|
|
deviceid +
|
|
|
|
|
"&recordId=" +
|
|
|
|
|
currentDevice +
|
|
|
|
|
"&report=" +
|
|
|
|
|
report
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
@ -2651,9 +2653,9 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
deviceInfo={currentDevice}
|
|
|
|
|
close={this.connectionClose}
|
|
|
|
|
isDisconnect={!isConnectionBlutoot}
|
|
|
|
|
offlineChange={() => {}}
|
|
|
|
|
offlineChange={() => { }}
|
|
|
|
|
pairingChange={this.pairingChange}
|
|
|
|
|
upgradeFun={() => {}}
|
|
|
|
|
upgradeFun={() => { }}
|
|
|
|
|
/>
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
@ -2675,7 +2677,8 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
className="video-or-image"
|
|
|
|
|
src={currentVideoSrc}
|
|
|
|
|
loop
|
|
|
|
|
id="myVideo"
|
|
|
|
|
id='myVideo'
|
|
|
|
|
controls={false}
|
|
|
|
|
muted={videoVoiceStatus}
|
|
|
|
|
objectFit="cover"
|
|
|
|
|
showFullscreenBtn={false}
|
|
|
|
|
@ -2702,9 +2705,8 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
onClick={this.videoVoiceStatusChange.bind(this)}
|
|
|
|
|
>
|
|
|
|
|
<Image
|
|
|
|
|
src={require(`@/img/${
|
|
|
|
|
videoVoiceStatus ? "mute" : "play"
|
|
|
|
|
}.png`)}
|
|
|
|
|
src={require(`@/img/${videoVoiceStatus ? "mute" : "play"
|
|
|
|
|
}.png`)}
|
|
|
|
|
mode="aspectFill"
|
|
|
|
|
></Image>
|
|
|
|
|
</View>
|
|
|
|
|
|