diff --git a/src/components/bluetoot/connection/fr200.js b/src/components/bluetoot/connection/fr200.js index 981801f..4b997e4 100644 --- a/src/components/bluetoot/connection/fr200.js +++ b/src/components/bluetoot/connection/fr200.js @@ -63,13 +63,14 @@ export const fr200DeviceControlCommand = { * face: "01", 面部 * eyes: "02", 眼部 * - * nasolabialFold: "03", 法令纹 - * mandibularLine: "04", 下颌线 + * nasolabialFold: "03", 法令纹Pro + * mandibularLine: "04", 下颌线Pro * led: "05", led + * headLiftingPro: "09", 抬头纹Pro + * * moistureTest: "06", 水分测试 * maskPenetration: "07",面膜促渗 * essence: "08", 精华模式 - * headLiftingPro: "09", 抬头纹Pro * * neck: "0A", 颈纹 * partition: "11", 分区模式 废弃VM1001 diff --git a/src/instrument/pages/instrument/instrument.tsx b/src/instrument/pages/instrument/instrument.tsx index dc05fee..bb9d24f 100644 --- a/src/instrument/pages/instrument/instrument.tsx +++ b/src/instrument/pages/instrument/instrument.tsx @@ -347,7 +347,7 @@ class Instrument extends Component { // this.openBindingVisible(); msg("绑定成功"); setTimeout(() => { - setStorageSync("instrument_detail", JSON.stringify(channelInfo)); + setStorageSync("instrument_detail", channelInfo); this.getInstrumentIntroInfo(channelInfo.id); }, 500); } else if (code === 202) { @@ -384,6 +384,7 @@ class Instrument extends Component { Taro.setStorageSync("isScan", true); Taro.setStorageSync("serial", channelInfo.serialCode); Taro.switchTab({ url: "/pages/index/index" }); + return; // this.openBindingVisible(); } else if (res.data.code === 202) { this.changeBindBox(); @@ -414,7 +415,7 @@ class Instrument extends Component { this.setState({ isVisibleBinding: false }); msg("绑定成功"); setTimeout(() => { - setStorageSync("instrument_detail", JSON.stringify(channelInfo)); + setStorageSync("instrument_detail", channelInfo); this.getInstrumentIntroInfo(channelInfo.id); }, 500); } else if (res.data.code === 202) { @@ -444,7 +445,7 @@ class Instrument extends Component { if (data.code === 200) { msg("换绑成功"); setTimeout(() => { - setStorageSync("instrument_detail", JSON.stringify(channelInfo)); + setStorageSync("instrument_detail", channelInfo); this.getInstrumentIntroInfo(channelInfo.id); }, 500); } @@ -457,7 +458,7 @@ class Instrument extends Component { }); if (res.data.code === 200) { if (res.data.data.length > 0) { - go("/instrument/pages/instrument/intro??customBack=true&id=" + id); + go("/instrument/pages/instrument/intro?customBack=true&id=" + id); } else { Taro.switchTab({ url: "/pages/index/index" }); } diff --git a/src/instrument/pages/instrument/intro.tsx b/src/instrument/pages/instrument/intro.tsx index bc3f58b..7dc239d 100644 --- a/src/instrument/pages/instrument/intro.tsx +++ b/src/instrument/pages/instrument/intro.tsx @@ -67,6 +67,7 @@ class Intro extends Component { } componentDidMount() { let strObj = getStorageSync("instrument_detail"); + console.log("strObj", strObj); if (strObj) { let instrument = strObj; this.getInstrumentInfo(instrument.id); diff --git a/src/moduleIOT/pages/iotCarePlan/FR200.tsx b/src/moduleIOT/pages/iotCarePlan/FR200.tsx index 9fe3ad3..5a904cb 100644 --- a/src/moduleIOT/pages/iotCarePlan/FR200.tsx +++ b/src/moduleIOT/pages/iotCarePlan/FR200.tsx @@ -412,7 +412,9 @@ class IotCarePlanFR200 extends Component { }, 0); } - /** 选中护理模式 */ + /** + * @name 选中/切换护理模式 + * */ modeCurrentFun = async (data, isNotCheck = false) => { let { isShowNurse } = this.state; // 护理检查改变模式,是否提示切换护理模式 @@ -442,6 +444,16 @@ class IotCarePlanFR200 extends Component { let currentTime = data.modeTimeStr; + let currentWorkModeType = 1; + if (data.modeType === "moistureTest") { + currentWorkModeType = 3; + } else if ( + data.modeType === "maskPenetration" || + data.modeType === "essence" + ) { + currentWorkModeType = 2; + } + this.setState({ ActiveModeItem: data, activeModeID: data.id, @@ -572,9 +584,9 @@ class IotCarePlanFR200 extends Component { setTimeout(() => { this.onNursingTap(); - // 倒计时弹窗: 倒计时完成后,自动开始,并判断弹窗 - let downNum = CountDownTime[this.state.ActiveModeItem.modeType] || 3; - this.showCountdownFun(downNum, () => {}); + // // 倒计时弹窗: 倒计时完成后,自动开始,并判断弹窗 + // let downNum = CountDownTime[this.state.ActiveModeItem.modeType] || 3; + // this.showCountdownFun(downNum, () => {}); }, 500); // 如果检查失败,则报错 @@ -1867,6 +1879,7 @@ class IotCarePlanFR200 extends Component { ModeStepIndex, currentServiceData, ActiveModeItem, + currentWorkModeType, isSwitchActiveMode, ModeID, activeModeID, @@ -2134,12 +2147,12 @@ class IotCarePlanFR200 extends Component { )} {ActiveModeItem.modeType === "moistureTest" && ( - + )}