diff --git a/src/components/Radar/index.tsx b/src/components/Radar/index.tsx index bd81a80..88aa701 100644 --- a/src/components/Radar/index.tsx +++ b/src/components/Radar/index.tsx @@ -92,12 +92,34 @@ const RadarChart: React.FC = forwardRef((props, ref) => { }); // === 数据区域 === + // ctx.beginPath(); + // values.forEach((val, i) => { + // const angle = ((Math.PI * 2) / labels.length) * i - Math.PI / 2; + // const r = (val / maxValue) * radius; + // const x = center.x + r * Math.cos(angle); + // const y = center.y + r * Math.sin(angle); + // if (i === 0) ctx.moveTo(x, y); + // else ctx.lineTo(x, y); + // }); + // ctx.closePath(); + // ctx.fillStyle = "rgba(0,200,180,0.3)"; + // ctx.fill(); + // ctx.strokeStyle = "#00c8b4"; + // ctx.lineWidth = 3; + // ctx.stroke(); + const baseRadius = (radius / levels) * 1; // 第二个环为起点 + const usableRadius = radius - baseRadius; + ctx.beginPath(); values.forEach((val, i) => { const angle = ((Math.PI * 2) / labels.length) * i - Math.PI / 2; - const r = (val / maxValue) * radius; + + // 关键修改:值从第二个环开始 + const r = baseRadius + (val / maxValue) * usableRadius; + const x = center.x + r * Math.cos(angle); const y = center.y + r * Math.sin(angle); + if (i === 0) ctx.moveTo(x, y); else ctx.lineTo(x, y); }); diff --git a/src/other_pages/ntrp-evaluate/index.module.scss b/src/other_pages/ntrp-evaluate/index.module.scss index 161972f..e83d71e 100644 --- a/src/other_pages/ntrp-evaluate/index.module.scss +++ b/src/other_pages/ntrp-evaluate/index.module.scss @@ -236,6 +236,30 @@ border-radius: 16px; border: 1px solid rgba(0, 0, 0, 0.06); overflow: hidden; + position: relative; + + &.customBtn { + .button { + opacity: 0; + position: absolute; + left: 0; + top: 0; + } + + .customBtnCover { + display: flex; + align-items: center; + justify-content: center; + width: 100%; + height: 100%; + font-feature-settings: "liga" off, "clig" off; + font-family: "PingFang SC"; + font-size: 16px; + font-style: normal; + font-weight: 600; + line-height: normal; + } + } .button { display: flex; diff --git a/src/other_pages/ntrp-evaluate/index.tsx b/src/other_pages/ntrp-evaluate/index.tsx index 05aab07..1f4b069 100644 --- a/src/other_pages/ntrp-evaluate/index.tsx +++ b/src/other_pages/ntrp-evaluate/index.tsx @@ -259,13 +259,16 @@ function Intro() { - + + + 继续使用上次测试结果 + @@ -682,7 +685,8 @@ function Result() { - 变线+网前,下一步就是赢比赛! + {/* 变线+网前,下一步就是赢比赛! */} + {result?.level_description}