master
qsj 2 years ago
parent 557fb4226c
commit a83f8c13ed

@ -155,7 +155,7 @@ class IotCarePlanFR200 extends Component<any, any> {
}, // 当前选中模式
SwitchActiveModeItem: {}, // 切换选中模式
ModeID: "mode_", // 模式KEY
activeModeID: "154", // 当前选中模式ID:用于高亮
activeModeID: "", // 当前选中模式ID:用于高亮
ModeStepIndex: 0, // 当前护理功效步骤:每个步骤时间不定,所以时间另外计算,根据步骤显示
ModeStepTimeArray: [], // 护理功效时间步骤用于切换显示GIF
currentServiceData: {
@ -383,7 +383,8 @@ class IotCarePlanFR200 extends Component<any, any> {
ModeList: res.data.data,
});
if (this.state.activeModeID != '') {
if(this.state.activeModeID){
this.state.ModeList.map(item => {
if (item.id === this.state.activeModeID) {
this.setState({
@ -391,11 +392,17 @@ class IotCarePlanFR200 extends Component<any, any> {
});
}
})
}
let res1= res.data.data.find(e =>e.id == this.state.activeModeID)
setTimeout(() => {
this.modeCurrentFun(res1);
}, 100);
} else {
setTimeout(() => {
this.modeCurrentFun(res.data.data[0]);
}, 100);
}
} else {
this.setState({ ModeList: [] });
}
@ -1231,10 +1238,13 @@ class IotCarePlanFR200 extends Component<any, any> {
workMode: ActiveModeItem.modeType, // 使用模式
workStatus: newWorkStatus,
};
console.log(ActiveModeItem,'查看ActiveModeItem');
// 水分测试需要特殊处理
// 水分测试准备 水分测试工作 水分测试启动
if (ActiveModeItem.modeType === "moistureTest") {
console.log('查看切换-----------------------------------------');
sendParams.testStatus = "standby"; // 切换为准备
if (isBtnClick) {
// 水分测试启动
@ -1952,6 +1962,8 @@ class IotCarePlanFR200 extends Component<any, any> {
JSON.stringify(obj)
);
} else if ("moistureTest" === nursingData.workMode) {
// go(`/recoding/pages/moisture_test_report/moisture_test_report?data=${item.nursingData}&date=${item.createTime}`);
// go("/pages/face_report/face_report?id=" + this.state.currentDevice.id);
console.log("水分测试");
} else {
go("/pages/face_report/face_report?id=" + this.state.currentDevice.id);

@ -2048,8 +2048,6 @@ class IotCarePlanWL200 extends Component<any, any> {
this.setState({ isMuted });
};
GetVideosTime = (event) => {
let videoRef = Taro.createVideoContext("myVideo", this);
// videoRef.currentTime
console.log("获取播放时间", event.detail.currentTime);
};
onPlay = (e) => {

Loading…
Cancel
Save