From d5662e5810bc36a9e0de5d556f9650753ee84d3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=9D=B0?= Date: Mon, 29 Dec 2025 11:40:52 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/UploadCover/upload-from-wx.tsx | 2 +- .../ntrp-evaluate/index.module.scss | 49 +++++++++++++++++-- src/other_pages/ntrp-evaluate/index.tsx | 22 +++++++-- 3 files changed, 65 insertions(+), 8 deletions(-) diff --git a/src/components/UploadCover/upload-from-wx.tsx b/src/components/UploadCover/upload-from-wx.tsx index 9258045..24e849d 100644 --- a/src/components/UploadCover/upload-from-wx.tsx +++ b/src/components/UploadCover/upload-from-wx.tsx @@ -33,7 +33,7 @@ async function convert_to_jpg_and_compress( return new Promise((resolve, reject) => { Taro.canvasToTempFilePath({ canvas: canvas as unknown as Taro.Canvas, - fileType: "jpg", + fileType: "png", quality: 0.7, success: (res) => resolve(res.tempFilePath), fail: reject, diff --git a/src/other_pages/ntrp-evaluate/index.module.scss b/src/other_pages/ntrp-evaluate/index.module.scss index 7b5ac7c..c8a5426 100644 --- a/src/other_pages/ntrp-evaluate/index.module.scss +++ b/src/other_pages/ntrp-evaluate/index.module.scss @@ -146,8 +146,22 @@ .introContainer { width: 100vw; height: 100vh; - background: radial-gradient(227.15% 100% at 50% 0%, #bfffef 0%, #fff 36.58%), - #fafafa; + background-size: cover; + background-repeat: no-repeat; + position: relative; + + &::before { + content: ""; + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + background: radial-gradient(227.15% 100% at 50% 0%, #bfffef 0%, #fff 36.58%), + #fafafa; + z-index: -1; + pointer-events: none; + } .result { .avatarWrap { @@ -235,6 +249,8 @@ height: 52px; border-radius: 16px; border: 1px solid rgba(0, 0, 0, 0.06); + background: #fff; + box-shadow: 0 8px 64px 0 rgba(0, 0, 0, 0.1); overflow: hidden; position: relative; @@ -258,6 +274,16 @@ font-style: normal; font-weight: 600; line-height: normal; + + &.primary { + color: #fff; + background: #000; + + .arrowImage { + width: 20px; + height: 20px; + } + } } } @@ -363,8 +389,23 @@ .testContainer { width: 100vw; height: 100vh; - background: radial-gradient(227.15% 100% at 50% 0%, #bfffef 0%, #fff 36.58%), - #fafafa; + background-repeat: no-repeat; + background-size: cover; + background-position: center; + position: relative; + + &::before { + content: ""; + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + background: radial-gradient(227.15% 100% at 50% 0%, #bfffef 0%, #fff 36.58%), + #fafafa; + z-index: -1; + pointer-events: none; + } .bar { margin: 12px 20px 36px; diff --git a/src/other_pages/ntrp-evaluate/index.tsx b/src/other_pages/ntrp-evaluate/index.tsx index 40f7051..38cde35 100644 --- a/src/other_pages/ntrp-evaluate/index.tsx +++ b/src/other_pages/ntrp-evaluate/index.tsx @@ -223,7 +223,12 @@ function Intro() { } return ( - + {ntrpData?.has_test_record ? ( @@ -271,7 +276,7 @@ function Intro() { - + + + 再次测试 + +