删除意外多出来的代码

master
blak-kong 2 years ago
parent 71d57fc628
commit 22b0302113

@ -346,6 +346,7 @@ class IotCarePlanFR200 extends Component<any, any> {
], ],
}; };
} }
bluetoothContainer: any = null;
isFullScreen: boolean = false; isFullScreen: boolean = false;
// 不涉及渲染的页面变量 // 不涉及渲染的页面变量
isRuning: any = true; // 设备默认运行中fr200贴脸就会自动开始工作 isRuning: any = true; // 设备默认运行中fr200贴脸就会自动开始工作
@ -468,12 +469,12 @@ class IotCarePlanFR200 extends Component<any, any> {
// 监听蓝牙连接状态改变 // 监听蓝牙连接状态改变
Taro.onBLEConnectionStateChange(this.listener); Taro.onBLEConnectionStateChange(this.listener);
let bluetoothContainer = new BluetoothContainer( this.bluetoothContainer = new BluetoothContainer(
this.props.bluetoothInfo, this.props.bluetoothInfo,
deviceToolKitInstance, deviceToolKitInstance,
this this
); );
bluetoothContainer.notifyBLECharacteristicValueChange(); this.bluetoothContainer.notifyBLECharacteristicValueChange();
setTimeout(() => { setTimeout(() => {
this.handleWorkStatus(false, MODE_WORKING_ENUM.STANDBY); this.handleWorkStatus(false, MODE_WORKING_ENUM.STANDBY);
@ -2463,7 +2464,7 @@ class IotCarePlanFR200 extends Component<any, any> {
showFullscreenBtn={false} showFullscreenBtn={false}
onLoadedMetaData={this.GetVideosTime} onLoadedMetaData={this.GetVideosTime}
/> />
{/* <button onClick={this.executePromises}>点击按钮</button> */}
{errorTips && ( {errorTips && (
<Block> <Block>
<View className="msg-tips"> <View className="msg-tips">
@ -2477,30 +2478,22 @@ class IotCarePlanFR200 extends Component<any, any> {
)} )}
</View> </View>
{ActiveModeItem.modeType !== "moistureTest" && ( <View className="fr200-iot-device">
<View className="fr200-iot-device"> <View className="item">
<View className="item"> <Text className="device-time">
<Text className="device-time"> <Text className="time">{currentTime}</Text>
<Text className="time">{currentTime}</Text> </Text>
</Text> </View>
</View> <View className="line" />
<View className="line" /> <View className="item">
<View className="item"> <Text className="gear">{currentGear}</Text>
<Text className="gear">
{ActiveModeItem.modeType === "led"
? "-"
: currentGear}
</Text>
</View>
<View className="line" />
<ElectricityView
Electricity={Electricity}
DeviceConnectStatus={DeviceConnectStatus}
/>
</View> </View>
)} <View className="line" />
<ElectricityView
Electricity={Electricity}
DeviceConnectStatus={DeviceConnectStatus}
/>
</View>
</View> </View>
{ModeList.length > 0 && ( {ModeList.length > 0 && (
@ -2516,194 +2509,48 @@ class IotCarePlanFR200 extends Component<any, any> {
onModeLockOpen={this.onModeLockOpen} onModeLockOpen={this.onModeLockOpen}
/> />
)} )}
{/* <button onClick={this.look.bind(this)}>echarts </button> <button onClick={this.updata.bind(this)}> </button>
<button onClick={this.updata.bind(this)}> </button> */} {/* <button onClick={this.updata.bind(this)}>添加数据 </button> */}
<PopupAlert <View className={classnames({ show: showEcharts })}>
isShow={isNotEnoughTime} <Echarts
isClose series={series}
title="提示" full={this.full.bind(this)}
content="您的本次护理时间不足,请重新护理" ></Echarts>
confirmButtonText="确认"
textAlgin="center" <EchartsFullScean
close={this.closeNotEnoughTime} series={series}
confirm={this.closeNotEnoughTime} full={this.full}
/> ></EchartsFullScean>
</View>
<PopupAlert
isShow={isShowErrorTipsText} {(ActiveModeItem.modeType === "maskPenetration" ||
isClose ActiveModeItem.modeType === "essence") && (
zIndex={10020} <Gears
myClassName="level-up" onEmitMinus={this.handleMinus}
title="提示" onEmitAdd={this.handleAdd}
content={errorTipsText} GearData={GearData}
confirmButtonText="知道了" ></Gears>
textAlgin="center"
close={this.closeErrorTipsText}
confirm={this.closeErrorTipsText}
/>
<PopupConfirm
isShow={isShowTipsSave}
isClose
zIndex={10020}
myClassName="level-up"
title="提示"
content={
<Block>
<View></View>
<View></View>
</Block>
}
cancelButtonText="取消"
confirmButtonText="确认"
textAlgin="center"
close={this.closeTipsSave}
cancel={this.cancelTipsSave}
confirm={this.confirmTipsSave}
/>
<PopupStatus
isShow={isShowNursingSuccess}
isClose
title="您已结束本次护理"
type="success"
content="正在上传护理记录……"
confirmButtonText="知道了"
textAlgin="center"
close={() => {
/*不需要做处理*/
}}
/>
{isConnectShow && (
<ConnectionBluetoot
deviceInfo={currentDevice}
close={this.connectionClose}
isDisconnect={!isConnectionBlutoot}
offlineChange={() => {}}
pairingChange={this.pairingChange}
upgradeFun={() => {}}
/>
)} )}
<Popup {ActiveModeItem.modeType === "moistureTest" && (
show={isShowHistoryMsg} <WaterTest
className="custom-popup" isRuningTest={isRuningTest}
overlay={false} stepList={waterStepList}
> stepIndex={waterStepIndex}
<View className="sync-history-msg">...</View> ></WaterTest>
</Popup> )}
</View> </View>
<View> <Footer
<View className="iot-main"> currentWorkModeType={currentWorkModeType}
<View className="banner-box"> isRuningTest={isRuningTest}
<View> isStopNurse={isStopNurse}
<Video onEmitStartNurse={this.onStartNurse}
className="video-or-image" onEmitSwitchChange={this.onSwitchChange}
src={currentVideoSrc} onEmitEndPlan={this.onEndPlan}
loop onsuccess={this.onsuccess}
id="myVideo" />
objectFit="cover"
enablePlayGesture
showFullscreenBtn={false}
onLoadedMetaData={this.GetVideosTime}
/>
{/* <button onClick={this.executePromises}>点击按钮</button> */}
{errorTips && (
<Block>
<View className="msg-tips">
<Image
className="msg-tips-img"
src={require("@/img/tips.png")}
/>
<View className="msg-tips-content">
{errorTips}
</View>
</View>
</Block>
)}
</View>
<View className="fr200-iot-device">
<View className="item">
<Text className="device-time">
<Text className="time">{currentTime}</Text>
</Text>
</View>
<View className="line" />
<View className="item">
<Text className="gear">{currentGear}</Text>
</View>
<View className="line" />
<ElectricityView
Electricity={Electricity}
DeviceConnectStatus={DeviceConnectStatus}
/>
</View>
</View>
{ModeList.length > 0 && (
<ModeListView
isPop={false}
isShowNurse={isShowNurse}
ModeList={ModeList}
ModeType={ModeType}
ModeID={ModeID}
activeModeID={activeModeID}
onEmit={this.modeCurrentFun}
onEmitShowAll={this.openModeSwitch}
onModeLockOpen={this.onModeLockOpen}
/>
)}
<button onClick={this.updata.bind(this)}>
{" "}
</button>
{/* <button onClick={this.updata.bind(this)}>添加数据 </button> */}
<View className={classnames({ show: showEcharts })}>
<Echarts
series={series}
full={this.full.bind(this)}
></Echarts>
<EchartsFullScean
series={series}
full={this.full}
></EchartsFullScean>
</View>
{/* {(ActiveModeItem.modeType === "face" ||
ActiveModeItem.modeType === "eyes") && <Echarts></Echarts>} */}
{(ActiveModeItem.modeType === "maskPenetration" ||
ActiveModeItem.modeType === "essence") && (
<Gears
onEmitMinus={this.handleMinus}
onEmitAdd={this.handleAdd}
GearData={GearData}
></Gears>
)}
{ActiveModeItem.modeType === "moistureTest" && (
<WaterTest
isRuningTest={isRuningTest}
stepList={waterStepList}
stepIndex={waterStepIndex}
></WaterTest>
)}
</View>
{/* <Footer
currentWorkModeType={currentWorkModeType}
isRuningTest={isRuningTest}
isStopNurse={isStopNurse}
onEmitStartNurse={this.onStartNurse}
onEmitSwitchChange={this.onSwitchChange}
onEmitEndPlan={this.onEndPlan}
onsuccess={this.onsuccess}
/> */}
</View>
</View> </View>
</View> </View>
)} )}

Loading…
Cancel
Save