|
|
|
|
@ -878,6 +878,7 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
let num = waterStepIndex;
|
|
|
|
|
if (waterStepIndex < 2) {
|
|
|
|
|
num = waterStepIndex + 1;
|
|
|
|
|
this.waterTestNext(num)
|
|
|
|
|
}
|
|
|
|
|
this.setState({
|
|
|
|
|
timerIdSuccess: null,
|
|
|
|
|
@ -1311,21 +1312,14 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
* @name 水分测试下一步,手动调用
|
|
|
|
|
* @description 步骤+1并设置视频
|
|
|
|
|
*/
|
|
|
|
|
waterTestNext() {
|
|
|
|
|
let { TestModeStepIndex, ActiveModeItem } = this.state;
|
|
|
|
|
if (TestModeStepIndex < 3) {
|
|
|
|
|
let index = TestModeStepIndex + 1; // 提前步骤+1
|
|
|
|
|
this.setState({
|
|
|
|
|
TestModeStepIndex: index,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
if (index === 1 && ActiveModeItem.stepOneVideo) {
|
|
|
|
|
this.VideoSrcLoad(ActiveModeItem.stepOneVideo);
|
|
|
|
|
} else if (index === 2 && ActiveModeItem.stepTwoVideo) {
|
|
|
|
|
this.VideoSrcLoad(ActiveModeItem.stepTwoVideo);
|
|
|
|
|
} else if (index === 3 && ActiveModeItem.stepThreeVideo) {
|
|
|
|
|
this.VideoSrcLoad(ActiveModeItem.stepThreeVideo);
|
|
|
|
|
}
|
|
|
|
|
waterTestNext(index) {
|
|
|
|
|
let ActiveModeItem =this.state.ActiveModeItem
|
|
|
|
|
if (index === 0 && ActiveModeItem.stepOneVideo) {
|
|
|
|
|
this.VideoSrcLoad(ActiveModeItem.stepOneVideo);
|
|
|
|
|
} else if (index === 1 && ActiveModeItem.stepTwoVideo) {
|
|
|
|
|
this.VideoSrcLoad(ActiveModeItem.stepTwoVideo);
|
|
|
|
|
} else if (index === 2 && ActiveModeItem.stepThreeVideo) {
|
|
|
|
|
this.VideoSrcLoad(ActiveModeItem.stepThreeVideo);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|