|
|
|
|
@ -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 (
|
|
|
|
|
<Block>
|
|
|
|
|
<ScrollView
|
|
|
|
|
className="mode-list-box"
|
|
|
|
|
scroll-x="true"
|
|
|
|
|
scrollIntoView={scrollIntoView}
|
|
|
|
|
>
|
|
|
|
|
{VisorList.length > 0 && (
|
|
|
|
|
{VisorList.length > 0 && (
|
|
|
|
|
<ScrollView
|
|
|
|
|
className="mode-list-box"
|
|
|
|
|
scroll-x="true"
|
|
|
|
|
scrollIntoView={scrollIntoView}
|
|
|
|
|
>
|
|
|
|
|
<View className="mode-list">
|
|
|
|
|
<View className="mode-item-title">面罩模式</View>
|
|
|
|
|
{VisorList.map((item: any, index: any) => {
|
|
|
|
|
@ -41,14 +41,14 @@ function Index({ ModeList }: any) {
|
|
|
|
|
);
|
|
|
|
|
})}
|
|
|
|
|
</View>
|
|
|
|
|
)}
|
|
|
|
|
</ScrollView>
|
|
|
|
|
<ScrollView
|
|
|
|
|
className="mode-list-box"
|
|
|
|
|
scrollX={true}
|
|
|
|
|
scrollIntoView={scrollIntoView}
|
|
|
|
|
>
|
|
|
|
|
{CabinList.length > 0 && (
|
|
|
|
|
</ScrollView>
|
|
|
|
|
)}
|
|
|
|
|
{CabinList.length > 0 && (
|
|
|
|
|
<ScrollView
|
|
|
|
|
className="mode-list-box"
|
|
|
|
|
scrollX={true}
|
|
|
|
|
scrollIntoView={scrollIntoView}
|
|
|
|
|
>
|
|
|
|
|
<View className="mode-list">
|
|
|
|
|
<View className="mode-item-title">舱体模式</View>
|
|
|
|
|
{CabinList.map((item: any, index: any) => {
|
|
|
|
|
@ -68,14 +68,15 @@ function Index({ ModeList }: any) {
|
|
|
|
|
);
|
|
|
|
|
})}
|
|
|
|
|
</View>
|
|
|
|
|
)}
|
|
|
|
|
</ScrollView>
|
|
|
|
|
<ScrollView
|
|
|
|
|
className="mode-list-box"
|
|
|
|
|
scrollX={true}
|
|
|
|
|
scrollIntoView={scrollIntoView}
|
|
|
|
|
>
|
|
|
|
|
{YimeishList.length > 0 && (
|
|
|
|
|
</ScrollView>
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
{YimeishList.length > 0 && (
|
|
|
|
|
<ScrollView
|
|
|
|
|
className="mode-list-box"
|
|
|
|
|
scrollX={true}
|
|
|
|
|
scrollIntoView={scrollIntoView}
|
|
|
|
|
>
|
|
|
|
|
<View className="mode-list">
|
|
|
|
|
<View className="mode-item-title">医美术后</View>
|
|
|
|
|
{YimeishList.map((item: any, index: any) => {
|
|
|
|
|
@ -95,8 +96,8 @@ function Index({ ModeList }: any) {
|
|
|
|
|
);
|
|
|
|
|
})}
|
|
|
|
|
</View>
|
|
|
|
|
)}
|
|
|
|
|
</ScrollView>
|
|
|
|
|
</ScrollView>
|
|
|
|
|
)}
|
|
|
|
|
</Block>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|