|
|
|
@ -8,9 +8,16 @@ interface Props {
|
|
|
|
ModeList: any;
|
|
|
|
ModeList: any;
|
|
|
|
ModeType: string; // all visor cabin yimeish
|
|
|
|
ModeType: string; // all visor cabin yimeish
|
|
|
|
ActiveModeItem: any;
|
|
|
|
ActiveModeItem: any;
|
|
|
|
|
|
|
|
isShowNurse: boolean; // 是否已进入护理详情页
|
|
|
|
onEmit: Function; // 每次点击item,回调事件和数据给父组件
|
|
|
|
onEmit: Function; // 每次点击item,回调事件和数据给父组件
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function Index({ ModeList, ModeType, ActiveModeItem, onEmit }: Props) {
|
|
|
|
function Index({
|
|
|
|
|
|
|
|
ModeList,
|
|
|
|
|
|
|
|
ModeType,
|
|
|
|
|
|
|
|
isShowNurse,
|
|
|
|
|
|
|
|
ActiveModeItem,
|
|
|
|
|
|
|
|
onEmit,
|
|
|
|
|
|
|
|
}: Props) {
|
|
|
|
let VisorList = ModeList.filter((item) => item.modeClass === 1); // 面罩模式
|
|
|
|
let VisorList = ModeList.filter((item) => item.modeClass === 1); // 面罩模式
|
|
|
|
let CabinList = ModeList.filter((item) => item.modeClass === 2); // 舱体模式
|
|
|
|
let CabinList = ModeList.filter((item) => item.modeClass === 2); // 舱体模式
|
|
|
|
let YimeishList = ModeList.filter((item) => item.modeClass === 3); // 医美术后
|
|
|
|
let YimeishList = ModeList.filter((item) => item.modeClass === 3); // 医美术后
|
|
|
|
@ -41,7 +48,7 @@ function Index({ ModeList, ModeType, ActiveModeItem, onEmit }: Props) {
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<Block>
|
|
|
|
<Block>
|
|
|
|
<View className="mode-list-main">
|
|
|
|
<View className="mode-list-main">
|
|
|
|
{ModeList.length > 0 && ModeType !== "all" && (
|
|
|
|
{ModeList.length > 0 && isShowNurse && (
|
|
|
|
<View className="change-all-mode-btn">
|
|
|
|
<View className="change-all-mode-btn">
|
|
|
|
<View className="title">全部模式</View>
|
|
|
|
<View className="title">全部模式</View>
|
|
|
|
<Image
|
|
|
|
<Image
|
|
|
|
|