|
|
|
|
@ -185,8 +185,6 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
SwitchActiveModeItem: {}, // 切换选中模式
|
|
|
|
|
ModeID: "mode_", // 模式KEY
|
|
|
|
|
activeModeID: "", // 当前选中模式ID:用于高亮
|
|
|
|
|
ModeStepIndex: 0, // 当前护理功效步骤:每个步骤时间不定,所以时间另外计算,根据步骤显示
|
|
|
|
|
ModeStepTimeArray: [], // 护理功效时间步骤,用于切换显示GIF
|
|
|
|
|
|
|
|
|
|
// TestModeStepIndex: 0, // 水分测试步骤
|
|
|
|
|
EssenceStepIndex: 0, // 精华促渗步骤
|
|
|
|
|
@ -197,12 +195,6 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
MaskModeBuzzingIndex: 0, // 面膜蜂鸣
|
|
|
|
|
MaskModeVibrateIndex: 0, // 面膜震动
|
|
|
|
|
|
|
|
|
|
currentServiceData: {
|
|
|
|
|
// 当前展示的开启暂停GIF: 因为时间判断不方便,所以单独领出来
|
|
|
|
|
startSource: "",
|
|
|
|
|
stopSource: "",
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// 倒计时
|
|
|
|
|
isShowCountdown: false, // 倒计时弹窗
|
|
|
|
|
countdown: 3,
|
|
|
|
|
@ -382,7 +374,7 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
"intelligence",
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
/** 基础版:脸部/眼部/PRO 设备使用时,会自动开启暂停 */
|
|
|
|
|
/** 基础版:脸部/眼部/PRO 设备使用时,会自动开启,不能暂停 */
|
|
|
|
|
BaseModeType: string[] = [
|
|
|
|
|
"face",
|
|
|
|
|
"eyes",
|
|
|
|
|
@ -602,7 +594,6 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
ActiveModeItem: data,
|
|
|
|
|
activeModeID: data.id,
|
|
|
|
|
ModeID: "mode_" + data.id,
|
|
|
|
|
ModeStepIndex: 0,
|
|
|
|
|
waterStepIndex: 0, // 水分测试步骤
|
|
|
|
|
EssenceStepIndex: 0, // 精华促渗步骤
|
|
|
|
|
MaskModeStepIndex: 0, // 面膜促渗步骤
|
|
|
|
|
@ -618,9 +609,10 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
this.changeItemUpdateFR200NursingHistory();
|
|
|
|
|
this.stepNext(); // 仅切换模式,不执行开始逻辑
|
|
|
|
|
|
|
|
|
|
// FR200水分测试不可自动运行,需手动点击开始测试,手动启动检测
|
|
|
|
|
// FR200 水分测试和促渗不可自动运行,需手动点击开始测试,手动启动检测
|
|
|
|
|
// 其他模式可以自动运行
|
|
|
|
|
if (data.modeType !== "moistureTest") {
|
|
|
|
|
let notStartArr = ["moistureTest", "maskPenetration", "essence"];
|
|
|
|
|
if (!notStartArr.includes(data.modeType)) {
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
this.onNursingTap("switch");
|
|
|
|
|
}, 800);
|
|
|
|
|
@ -2317,7 +2309,6 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
isStopNurse,
|
|
|
|
|
ModeList,
|
|
|
|
|
ModeType,
|
|
|
|
|
ModeStepIndex,
|
|
|
|
|
ActiveModeItem,
|
|
|
|
|
currentWorkModeType,
|
|
|
|
|
isSwitchActiveMode,
|
|
|
|
|
@ -2347,7 +2338,6 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
showEcharts,
|
|
|
|
|
echartsData,
|
|
|
|
|
isShowReReadRecordConnect,
|
|
|
|
|
currentServiceData,
|
|
|
|
|
series,
|
|
|
|
|
isFullScreen,
|
|
|
|
|
} = this.state;
|
|
|
|
|
@ -2423,6 +2413,85 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
confirm={this.confirmModeSwitchBtn}
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
{ActiveModeItem.openSourceData.length > 0 && (
|
|
|
|
|
<PopupStepTips
|
|
|
|
|
isShow={isShowStepTips}
|
|
|
|
|
isLarge
|
|
|
|
|
isFirstEntry={false}
|
|
|
|
|
confirmButtonText="知道了"
|
|
|
|
|
data={ActiveModeItem.openSourceData}
|
|
|
|
|
close={this.closeStepTips}
|
|
|
|
|
/>
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
<PopupAlert
|
|
|
|
|
isShow={isNotEnoughTime}
|
|
|
|
|
isClose
|
|
|
|
|
title="提示"
|
|
|
|
|
content="您的本次护理时间不足,请重新护理"
|
|
|
|
|
confirmButtonText="确认"
|
|
|
|
|
textAlgin="center"
|
|
|
|
|
close={this.closeNotEnoughTime}
|
|
|
|
|
confirm={this.closeNotEnoughTime}
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<PopupAlert
|
|
|
|
|
isShow={isShowErrorTipsText}
|
|
|
|
|
isClose
|
|
|
|
|
zIndex={10020}
|
|
|
|
|
myClassName="level-up"
|
|
|
|
|
title="提示"
|
|
|
|
|
content={errorTipsText}
|
|
|
|
|
confirmButtonText="知道了"
|
|
|
|
|
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
|
|
|
|
|
show={isShowHistoryMsg}
|
|
|
|
|
className="custom-popup"
|
|
|
|
|
|