1
This commit is contained in:
@@ -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"]}>
|
||||
|
||||
Reference in New Issue
Block a user