import { View, Text } from "@tarojs/components"; import { genNTRPRequirementText } from "@/utils/helper"; import styles from "./index.module.scss"; // 玩法要求 export default function GamePlayAndRequirement(props) { const { detail: { skill_level_min, skill_level_max, play_type, game_type }, } = props; const requirements = [ { title: "NTRP水平要求", desc: genNTRPRequirementText(skill_level_min, skill_level_max), }, { title: "活动玩法", desc: play_type || "-", }, { title: "人员构成", desc: game_type || "-", }, ]; return ( {/* title */} 玩法要求 {/* requirements */} {requirements.map((item, index) => ( {item.title} {item.desc} ))} ); }