diff --git a/project.config.json b/project.config.json index 5b91d3e..8c8e96f 100644 --- a/project.config.json +++ b/project.config.json @@ -8,7 +8,7 @@ "compileHotReLoad": false, "postcss": false, "preloadBackgroundData": false, - "minified": false, + "minified": true, "newFeature": true, "autoAudits": false, "coverView": true, diff --git a/project.private.config.json b/project.private.config.json index f22c5fe..8793a36 100644 --- a/project.private.config.json +++ b/project.private.config.json @@ -3,6 +3,20 @@ "condition": { "miniprogram": { "list": [ + { + "name": "moduleIOT/pages/iotCarePlan/WL200", + "pathName": "moduleIOT/pages/iotCarePlan/WL200", + "query": "", + "launchMode": "default", + "scene": null + }, + { + "name": "pages/index/index", + "pathName": "pages/index/index", + "query": "", + "launchMode": "default", + "scene": null + }, { "name": "pages/face_report_one/face_report_one", "pathName": "pages/face_report_one/face_report_one", @@ -12,5 +26,8 @@ } ] } + }, + "setting": { + "bigPackageSizeSupport": true } } \ No newline at end of file diff --git a/src/moduleIOT/pages/iotCarePlan/FR200.tsx b/src/moduleIOT/pages/iotCarePlan/FR200.tsx index 5953838..d2a1b6e 100644 --- a/src/moduleIOT/pages/iotCarePlan/FR200.tsx +++ b/src/moduleIOT/pages/iotCarePlan/FR200.tsx @@ -11,6 +11,7 @@ import React, { } from "react"; import Echarts from "./components/Echart/index"; +import Gears from "./components/Gears/index" import { Block, View, @@ -127,6 +128,12 @@ class IotCarePlanFR200 extends Component { matrixElectricity: 4, // WE200发箍电量 workMode: "", //当前模式 + // 挡位调节组件参数 + GearData:[ + {name:'额头',forehead:5,Total:10}, + {name:'左脸颊',forehead:6,Total:10}, + {name:'右脸颊',forehead:2,Total:10}, + ], gear: { gear: 1 }, currentShowDialog: "", @@ -507,6 +514,22 @@ class IotCarePlanFR200 extends Component { } return false; } + // 加减组件- 减号操作 +handleMinus = async (data,inde) => { + let GearData =this.state.GearData + if(GearData[inde].forehead !== 1){ + GearData[inde].forehead = GearData[inde].forehead - 1 + this.setState({GearData}) + } +}; +// 加减组件- 加号操作 +handleAdd = async (data,inde) => { + let GearData =this.state.GearData + if(GearData[inde].forehead !== GearData[inde].Total){ + GearData[inde].forehead = GearData[inde].forehead + 1 + this.setState({GearData}) + } +}; /** 切换护理模式 */ switchModeCurrentFun = async (data) => { @@ -1864,6 +1887,7 @@ class IotCarePlanFR200 extends Component { let { title, isConnectShow, + GearData, isShowStepTips, isShowNurse, isStopNurse, @@ -2135,6 +2159,10 @@ class IotCarePlanFR200 extends Component { )} +