水分切换视频

master
qsj 2 years ago
parent 1e38a4fe04
commit 2945b222f3

@ -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);
}
}

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

Loading…
Cancel
Save