This commit is contained in:
张成
2025-11-15 23:51:38 +08:00
parent 6519cb8eec
commit 4b5c677856
14 changed files with 78 additions and 32 deletions

View File

@@ -6,7 +6,7 @@ import { calculateDistance } from "@/utils";
import { useUserInfo } from "@/store/userStore";
import * as LoginService from "@/services/loginService";
import img from "@/config/images";
import { navto } from "@/utils/helper";
import { navto, formatNtrpDisplay } from "@/utils/helper";
import styles from "./index.module.scss";
function genRecommendGames(games, location, avatar) {
@@ -44,10 +44,10 @@ function genRecommendGames(games, location, avatar) {
checkedApplications: current_players,
levelRequirements:
skill_level_max !== skill_level_min
? `${skill_level_min || "-"}-${skill_level_max || "-"}`
? `${formatNtrpDisplay(skill_level_min) || "-"}-${formatNtrpDisplay(skill_level_max) || "-"}`
: skill_level_min === "1"
? "无要求"
: `${skill_level_min}以上`,
: `${formatNtrpDisplay(skill_level_min)}以上`,
playType: play_type,
};
});
@@ -125,7 +125,7 @@ export default function OrganizerInfo(props) {
styles["organizer-avatar-name-message-stats-separator"]
}
/>
<Text>NTRP {ntrp_level || "初学者"}</Text>
<Text>NTRP {ntrp_level ? formatNtrpDisplay(ntrp_level) : "初学者"}</Text>
</View>
</View>
<View className={styles["organizer-actions"]}>