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

@@ -14,6 +14,7 @@ import { useUserInfo, useUserActions } from "@/store/userStore";
import { useEvaluate, EvaluateScene } from "@/store/evaluateStore";
import { useGlobalState } from "@/store/global";
import { delay, getCurrentFullPath } from "@/utils";
import { formatNtrpDisplay } from "@/utils/helper";
import CloseIcon from "@/static/ntrp/ntrp_close_icon.svg";
import DocCopy from "@/static/ntrp/ntrp_doc_copy.svg";
import ArrowRight from "@/static/ntrp/ntrp_arrow_right.svg";
@@ -224,7 +225,7 @@ function Intro() {
</View>
<View className={styles.levelWrap}>
<Text>NTRP</Text>
<Text className={styles.level}>{ntrp_level}</Text>
<Text className={styles.level}>{formatNtrpDisplay(ntrp_level)}</Text>
</View>
<View className={styles.slogan}>
<Text>线+</Text>
@@ -524,7 +525,7 @@ function Result() {
ctx.fillText("你的 NTRP 测试结果为", 20, 40);
ctx.fillStyle = "#00E5AD";
ctx.font = "bold 22px sans-serif";
ctx.fillText(`NTRP ${result?.ntrp_level}`, 20, 70);
ctx.fillText(`NTRP ${formatNtrpDisplay(result?.ntrp_level)}`, 20, 70);
// 绘制雷达图
const img = canvas.createImage();
@@ -634,7 +635,7 @@ function Result() {
</View>
<View className={styles.levelWrap}>
<Text>NTRP</Text>
<Text className={styles.level}>{result?.ntrp_level}</Text>
<Text className={styles.level}>{formatNtrpDisplay(result?.ntrp_level)}</Text>
</View>
<View className={styles.slogan}>
<Text>线+</Text>
@@ -650,7 +651,7 @@ function Result() {
</View>
{userInfo.id ? (
<View className={styles.updateTip}>
<Text> NTRP {result?.ntrp_level} </Text>
<Text> NTRP {formatNtrpDisplay(result?.ntrp_level)} </Text>
<Text className={styles.grayTip}>()</Text>
</View>
) : (