import Taro from "@tarojs/taro"; import { Block, View, ScrollView, Image } from "@tarojs/components"; import "./index.less"; interface Props { // link: string; // children?: any; ModeList: any; } 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); // 医美术后 return ( {VisorList.length > 0 && ( 面罩模式 {VisorList.map((item: any, index: any) => { return ( {item.modeName} {item.modeDesc} ); })} )} {CabinList.length > 0 && ( 舱体模式 {CabinList.map((item: any, index: any) => { return ( {item.title} {item.time} ); })} )} {YimeishList.length > 0 && ( 医美术后 {YimeishList.map((item: any, index: any) => { return ( {item.title} {item.time} ); })} )} ); } export default Index;