修复视频问题

master
rongweikang 2 years ago
parent 404e01cc1a
commit e01aad14ac

@ -407,9 +407,9 @@ class IotCarePlanFR200 extends Component<any, any> {
this.getInstrumentClockSummary();
this.getInstrumentClockDetail();
}
componentDidMount() {}
componentDidMount() { }
componentWillUnmount() {}
componentWillUnmount() { }
componentDidShow() {
console.log("页面显示了");
@ -1922,7 +1922,6 @@ class IotCarePlanFR200 extends Component<any, any> {
}
/** 更新WL200护理历史运行时间 */
updateFR200NursingHistory = (data: any = null, jsonStatus: any = null) => {
console.log(11111111);
this.FR200NursingHistory = Taro.getStorageSync("FR200NursingHistory");
@ -1936,6 +1935,7 @@ class IotCarePlanFR200 extends Component<any, any> {
// 设置正确封面
if (!data) {
if (jsonStatus) {
this.setState({ Electricity: jsonStatus.battery, currentGear: jsonStatus.gear })
let { timeArr } = this.state;
let newTime = this.formatTime(
jsonStatus.totalWorkingMinutes,
@ -1948,10 +1948,12 @@ class IotCarePlanFR200 extends Component<any, any> {
}
});
if (flag) {
return;
this.switchVideoPause()
return
}
timeArr.push(newTime);
this.setState({ timeArr });
this.switchVideoPlay()
timeArr.push(newTime)
this.setState({ timeArr })
// 缓存每秒数据
if (!params.dataArray) params.dataArray = [];
params.dataArray.push(jsonStatus);
@ -2293,11 +2295,11 @@ class IotCarePlanFR200 extends Component<any, any> {
let report = true;
go(
"/recoding/pages/face_report_one/face_report_one?id=" +
ids +
"&report=" +
report +
"&obj=" +
JSON.stringify(obj)
ids +
"&report=" +
report +
"&obj=" +
JSON.stringify(obj)
);
} else if ("moistureTest" === nursingData.workMode) {
console.log("水分测试");
@ -2308,11 +2310,11 @@ class IotCarePlanFR200 extends Component<any, any> {
go(
"/recoding/pages/face_report/face_report?id=" +
deviceid +
"&recordId=" +
currentDevice +
"&report=" +
report
deviceid +
"&recordId=" +
currentDevice +
"&report=" +
report
);
}
};
@ -2651,9 +2653,9 @@ class IotCarePlanFR200 extends Component<any, any> {
deviceInfo={currentDevice}
close={this.connectionClose}
isDisconnect={!isConnectionBlutoot}
offlineChange={() => {}}
offlineChange={() => { }}
pairingChange={this.pairingChange}
upgradeFun={() => {}}
upgradeFun={() => { }}
/>
)}
@ -2675,7 +2677,8 @@ class IotCarePlanFR200 extends Component<any, any> {
className="video-or-image"
src={currentVideoSrc}
loop
id="myVideo"
id='myVideo'
controls={false}
muted={videoVoiceStatus}
objectFit="cover"
showFullscreenBtn={false}
@ -2702,9 +2705,8 @@ class IotCarePlanFR200 extends Component<any, any> {
onClick={this.videoVoiceStatusChange.bind(this)}
>
<Image
src={require(`@/img/${
videoVoiceStatus ? "mute" : "play"
}.png`)}
src={require(`@/img/${videoVoiceStatus ? "mute" : "play"
}.png`)}
mode="aspectFill"
></Image>
</View>

@ -9,11 +9,13 @@
height: 160rpx;
background-color: #fff;
border-radius: 30rpx 0rpx 0rpx 30rpx;
box-shadow: 1rpx 2rpx 16rpx 2rpx rgba(97, 97, 97, 0.1);
box-shadow: -60rpx 0 60rpx rgba(240,240,240,1);
text-align: center;
// align-items: center;
z-index: 20;
box-sizing: border-box;
.title {
font-size: 26rpx;
text-align: center;

@ -1517,8 +1517,8 @@ class Index extends Component<any, any> {
<View className='index-infobox5'>
{instrumentList.length > 0 && (
<Block>
<View className="nurse_plan_box flex aitems sb">
<View className="title"></View>
<View className='nurse_plan_box flex aitems sb'>
<View className='title'></View>
<View
className='txt_box flex jcenter aitems'
@ -1646,8 +1646,8 @@ class Index extends Component<any, any> {
</Popup>
<PopupWe
isShow={isModeLockWE}
title="电流定制"
textAlgin="center"
title='电流定制'
textAlgin='center'
isClose={false}
close={this.handlepopup}

Loading…
Cancel
Save