水分切换视频

master
qsj 2 years ago
parent 1e38a4fe04
commit 2945b222f3

@ -878,6 +878,7 @@ class IotCarePlanFR200 extends Component<any, any> {
let num = waterStepIndex; let num = waterStepIndex;
if (waterStepIndex < 2) { if (waterStepIndex < 2) {
num = waterStepIndex + 1; num = waterStepIndex + 1;
this.waterTestNext(num)
} }
this.setState({ this.setState({
timerIdSuccess: null, timerIdSuccess: null,
@ -1311,23 +1312,16 @@ class IotCarePlanFR200 extends Component<any, any> {
* @name * @name
* @description +1 * @description +1
*/ */
waterTestNext() { waterTestNext(index) {
let { TestModeStepIndex, ActiveModeItem } = this.state; let ActiveModeItem =this.state.ActiveModeItem
if (TestModeStepIndex < 3) { if (index === 0 && ActiveModeItem.stepOneVideo) {
let index = TestModeStepIndex + 1; // 提前步骤+1
this.setState({
TestModeStepIndex: index,
});
if (index === 1 && ActiveModeItem.stepOneVideo) {
this.VideoSrcLoad(ActiveModeItem.stepOneVideo); this.VideoSrcLoad(ActiveModeItem.stepOneVideo);
} else if (index === 2 && ActiveModeItem.stepTwoVideo) { } else if (index === 1 && ActiveModeItem.stepTwoVideo) {
this.VideoSrcLoad(ActiveModeItem.stepTwoVideo); this.VideoSrcLoad(ActiveModeItem.stepTwoVideo);
} else if (index === 3 && ActiveModeItem.stepThreeVideo) { } else if (index === 2 && ActiveModeItem.stepThreeVideo) {
this.VideoSrcLoad(ActiveModeItem.stepThreeVideo); this.VideoSrcLoad(ActiveModeItem.stepThreeVideo);
} }
} }
}
/** /**
* @name , * @name ,

@ -4,7 +4,7 @@ import { Block, View, Image, Text, Input } from "@tarojs/components";
import { Popup, Progress, Slider } from "@antmjs/vantui"; import { Popup, Progress, Slider } from "@antmjs/vantui";
import { useRef } from "react"; import { useRef } from "react";
import Echarts, { EChartOption, EchartsHandle } from "taro-react-echarts"; import Echarts, { EChartOption, EchartsHandle } from "taro-react-echarts";
import echarts from "@/utils/echartsMin.js"; import * as echarts from "echarts";
import "./index.less"; import "./index.less";
interface Props { interface Props {

Loading…
Cancel
Save