diff --git a/src/pages/iotCarePlan/components/ModeList/index.less b/src/pages/iotCarePlan/components/ModeList/index.less
index b32db25..db7e5bd 100644
--- a/src/pages/iotCarePlan/components/ModeList/index.less
+++ b/src/pages/iotCarePlan/components/ModeList/index.less
@@ -1,13 +1,18 @@
.mode-list-box {
width: 100%;
- height: 160rpx;
+ height: 180rpx;
+ padding: 10rpx 26rpx;
margin-bottom: 20rpx;
+ background-color: #f2f2f2;
+ border-radius: 30rpx;
+ box-sizing: border-box;
&:last-child {
margin-bottom: 0;
}
.mode-list {
display: flex;
align-items: center;
+
.mode-item-title {
display: flex;
align-items: center;
@@ -18,7 +23,7 @@
font-family: PingFang SC;
font-weight: bold;
color: #000000;
- margin: 0 20rpx;
+ margin-right: 20rpx;
}
.mode-item {
display: flex;
diff --git a/src/pages/iotCarePlan/components/ModeList/index.tsx b/src/pages/iotCarePlan/components/ModeList/index.tsx
index dc26fa6..0aa2a38 100644
--- a/src/pages/iotCarePlan/components/ModeList/index.tsx
+++ b/src/pages/iotCarePlan/components/ModeList/index.tsx
@@ -11,17 +11,17 @@ interface Props {
let scrollIntoView = "0";
function Index({ ModeList }: any) {
- let VisorList = ModeList.filter((item) => item.modeType === 1); // 面罩模式
- let CabinList = ModeList.filter((item) => item.modeType === 2); // 舱体模式
- let YimeishList = ModeList.filter((item) => item.modeType === 3); // 医美术后
+ let VisorList = ModeList.filter((item) => item.modeClass === 1); // 面罩模式
+ let CabinList = ModeList.filter((item) => item.modeClass === 2); // 舱体模式
+ let YimeishList = ModeList.filter((item) => item.modeClass === 3); // 医美术后
return (
-
- {VisorList.length > 0 && (
+ {VisorList.length > 0 && (
+
面罩模式
{VisorList.map((item: any, index: any) => {
@@ -41,14 +41,14 @@ function Index({ ModeList }: any) {
);
})}
- )}
-
-
- {CabinList.length > 0 && (
+
+ )}
+ {CabinList.length > 0 && (
+
舱体模式
{CabinList.map((item: any, index: any) => {
@@ -68,14 +68,15 @@ function Index({ ModeList }: any) {
);
})}
- )}
-
-
- {YimeishList.length > 0 && (
+
+ )}
+
+ {YimeishList.length > 0 && (
+
医美术后
{YimeishList.map((item: any, index: any) => {
@@ -95,8 +96,8 @@ function Index({ ModeList }: any) {
);
})}
- )}
-
+
+ )}
);
}
diff --git a/src/pages/iotCarePlan/iotCarePlan.less b/src/pages/iotCarePlan/iotCarePlan.less
index bcec56b..c38ba08 100644
--- a/src/pages/iotCarePlan/iotCarePlan.less
+++ b/src/pages/iotCarePlan/iotCarePlan.less
@@ -49,4 +49,7 @@
}
}
}
+ .mode-box {
+ // background-color: #fff;
+ }
}
diff --git a/src/pages/iotCarePlan/iotCarePlan.tsx b/src/pages/iotCarePlan/iotCarePlan.tsx
index 9f2f5c9..94ff5a5 100644
--- a/src/pages/iotCarePlan/iotCarePlan.tsx
+++ b/src/pages/iotCarePlan/iotCarePlan.tsx
@@ -36,50 +36,6 @@ class IotCarePlan extends Component {
this.state = {
name: "iotCarePlan",
musicStatus: false, // 声音播放状态
- // visorList: [
- // {
- // title: "visorList",
- // time: "2024-02-04",
- // banner: "",
- // },
- // {
- // title: "visorList",
- // time: "2024-02-04",
- // banner: "",
- // },
- // {
- // title: "visorList",
- // time: "2024-02-04",
- // banner: "",
- // },
- // {
- // title: "visorList",
- // time: "2024-02-04",
- // banner: "",
- // },
- // ],
- // cabinList: [
- // {
- // title: "cabinList",
- // time: "2024-02-04",
- // banner: "",
- // },
- // {
- // title: "cabinList",
- // time: "2024-02-04",
- // banner: "",
- // },
- // {
- // title: "cabinList",
- // time: "2024-02-04",
- // banner: "",
- // },
- // {
- // title: "cabinList",
- // time: "2024-02-04",
- // banner: "",
- // },
- // ],
ModeList: [],
};
@@ -109,7 +65,6 @@ class IotCarePlan extends Component {
instrumentId: id,
};
let res = await InstrumentInfo.modeInfoList(params);
- console.log("GetModeList", res);
if (res.data.code === 200) {
this.setState({ ModeList: res.data.data });
}