diff --git a/src/moduleIOT/pages/iotCarePlan/WL200.tsx b/src/moduleIOT/pages/iotCarePlan/WL200.tsx index 2e68829..c02f734 100644 --- a/src/moduleIOT/pages/iotCarePlan/WL200.tsx +++ b/src/moduleIOT/pages/iotCarePlan/WL200.tsx @@ -11,7 +11,8 @@ import React, { useRef, } from "react"; -// import Echarts from "./components/Echart/index"; +import Echarts from "./components/Echart/index"; +import EchartFace from "./components/Echart_face/index"; import { Block, View, @@ -2036,6 +2037,11 @@ class IotCarePlanWL200 extends Component { isMuted = !isMuted; this.setState({ isMuted }); }; + GetVideosTime = (event) => { + let videoRef = Taro.createVideoContext("myVideo", this); + // videoRef.currentTime + console.log("获取播放时间", event.detail.currentTime); + }; onPlay = (e) => { console.log("出发", e); }; @@ -2260,15 +2266,13 @@ class IotCarePlanWL200 extends Component { src={ActiveModeItem.modeVideo} loop id="myVideo" - // ref={videoRef} onPlay={this.onPlay} muted={isMuted} + onTimeUpdate={this.GetVideosTime} /> )} - - + + {/* */} {/* */} {isShowNurse && ( @@ -2336,7 +2340,8 @@ class IotCarePlanWL200 extends Component { /> )} - {/* */} + +