From 436269788407f33caa7a42a5064e8a42ae908340 Mon Sep 17 00:00:00 2001 From: qsj <731458905@qq.com> Date: Thu, 21 Mar 2024 14:59:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/moduleIOT/pages/iotCarePlan/FR200.tsx | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/src/moduleIOT/pages/iotCarePlan/FR200.tsx b/src/moduleIOT/pages/iotCarePlan/FR200.tsx index 7f339a0..6c99ad7 100644 --- a/src/moduleIOT/pages/iotCarePlan/FR200.tsx +++ b/src/moduleIOT/pages/iotCarePlan/FR200.tsx @@ -1726,8 +1726,10 @@ class IotCarePlanFR200 extends Component { // 脸部one todoPromise = async () => { const nowFR200NursingHistory = Taro.getStorageSync("FR200NursingHistory"); + console.log(nowFR200NursingHistory,'nowFR200NursingHistory'); + // 护理脸部 - if (nowFR200NursingHistory.workMode === "face") { + if (nowFR200NursingHistory.jsonStatus.workMode === "face") { // 把working=工作中的状态数据筛选出来 let filtered = nowFR200NursingHistory.dataArray.filter( (item) => item.workStatus === "working" @@ -1790,23 +1792,7 @@ class IotCarePlanFR200 extends Component { }; return nursingData; - } else { - let GearData = this.state.GearData; - // 肌肤报告 - let Allnum = 0; - GearData.forEach((e) => { - Allnum = +e.forehead; - }); - // 向下取整 - Allnum = Math.floor(Allnum / 3); - let nursingData = { - nursingData: JSON.stringify({ - Allnum, - GearData, - }), - }; - return nursingData; - } + } }; // 计算挡位