From e62d14d2f7a68d3ec8443c96d470968c21539c72 Mon Sep 17 00:00:00 2001 From: rd <1344903914@qq.com> Date: Tue, 9 Sep 2025 14:08:54 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9C=AA=E5=BB=BA=E7=AB=8B=E5=95=86?= =?UTF-8?q?=E8=81=94=EF=BC=8C=E9=A6=96=E6=AC=A1=E7=99=BB=E9=99=86=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 2 +- src/router/index.ts | 13 +- src/styles/components/ant-button.scss | 2 +- src/styles/components/ant-input.scss | 4 +- src/styles/components/ant-step.scss | 16 ++ src/styles/font.scss | 16 +- .../login/components/login-form/index.vue | 8 +- .../login/components/register-form/index.vue | 6 +- src/views/trial/img/icon-check.png | Bin 0 -> 3218 bytes src/views/trial/img/icon-info.png | Bin 0 -> 2805 bytes src/views/trial/index.vue | 221 ++++++++++++++++++ src/views/trial/style.scss | 95 ++++++++ 12 files changed, 362 insertions(+), 21 deletions(-) create mode 100644 src/views/trial/img/icon-check.png create mode 100644 src/views/trial/img/icon-info.png create mode 100644 src/views/trial/index.vue create mode 100644 src/views/trial/style.scss diff --git a/src/App.vue b/src/App.vue index 2e627f8..54e0400 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,6 +1,6 @@ diff --git a/src/router/index.ts b/src/router/index.ts index d6de39f..d79a09a 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -32,14 +32,23 @@ export const router = createRouter({ requiresAuth: false, requireLogin: true, group: GROUP_MAIN_NAME, - } + }, }, { path: '/chat/:conversationId?', name: 'Home', component: () => import('@/views/home/index.vue'), meta: { - requiresAuth: false, + requiresAuth: true, + requireLogin: true, + }, + }, + { + path: '/trial', + name: 'Trial', + component: () => import('@/views/trial/index.vue'), + meta: { + requiresAuth: true, requireLogin: true, }, }, diff --git a/src/styles/components/ant-button.scss b/src/styles/components/ant-button.scss index 79571a7..ad53838 100644 --- a/src/styles/components/ant-button.scss +++ b/src/styles/components/ant-button.scss @@ -1,5 +1,5 @@ .ant-btn { - border-radius: 2px !important; + border-radius: 4px !important; border: 1px solid #d7d7d9 !important; color: #3c4043 !important; font-family: $font-family-regular; diff --git a/src/styles/components/ant-input.scss b/src/styles/components/ant-input.scss index a35bcab..1f99625 100644 --- a/src/styles/components/ant-input.scss +++ b/src/styles/components/ant-input.scss @@ -27,7 +27,7 @@ &.ant-input-focus, &.ant-textarea-focus { background-color: var(--color-bg-2) !important; - border-color: rgb(var(--primary-6)) !important; + border-color: $color-primary !important; box-shadow: 0 0 0 0 var(--color-primary-light-2) !important; } &.ant-input-disabled { @@ -72,7 +72,7 @@ textarea.ant-input { &:focus, &-focused { box-shadow: none !important; - border-color: rgb(var(--primary-6)) !important; + border-color: $color-primary !important; } .ant-input { height: 30px; diff --git a/src/styles/components/ant-step.scss b/src/styles/components/ant-step.scss index 2eab583..e2061c1 100644 --- a/src/styles/components/ant-step.scss +++ b/src/styles/components/ant-step.scss @@ -53,4 +53,20 @@ } } } + &.ant-steps-dot { + .ant-steps-item-process { + .ant-steps-item-tail { + &::after { + background-color: #e6e6e8 !important; + } + } + } + .ant-steps-item-finish { + .ant-steps-item-tail { + &::after { + background-color: #6d4cfe !important; + } + } + } + } } diff --git a/src/styles/font.scss b/src/styles/font.scss index 3b1ea9a..28a9c4e 100644 --- a/src/styles/font.scss +++ b/src/styles/font.scss @@ -18,27 +18,27 @@ } .font-family-regular { - font-family: $font-family-regular; + font-family: $font-family-regular !important; } .font-family-medium { - font-family: $font-family-medium; + font-family: $font-family-medium !important; } .font-family-light { - font-family: $font-family-light; + font-family: $font-family-light !important; } .font-family-bold { - font-family: $font-family-bold; + font-family: $font-family-bold !important; } .font-family-manrope-regular { - font-family: $font-family-manrope-regular; + font-family: $font-family-manrope-regular !important; } .font-family-manrope-medium { - font-family: $font-family-manrope-medium; + font-family: $font-family-manrope-medium !important; } .font-family-manrope-bold { - font-family: $font-family-manrope-bold; + font-family: $font-family-manrope-bold !important; } .font-family-manrope-semiBold { - font-family: $font-family-manrope-semiBold; + font-family: $font-family-manrope-semiBold !important; } diff --git a/src/views/login/components/login-form/index.vue b/src/views/login/components/login-form/index.vue index 0dec9e4..f1c5410 100644 --- a/src/views/login/components/login-form/index.vue +++ b/src/views/login/components/login-form/index.vue @@ -33,7 +33,7 @@ -

+

{{ errMsg }}

@@ -43,7 +43,7 @@ -

+

{{ errMsg }}

@@ -263,9 +263,9 @@ const getCaptcha = async () => { }; // 验证码验证通过后 -const handleVerificationSubmit = () => { +const handleVerificationSubmit = async () => { isVerificationVisible.value = false; - postClearRateLimiter(); + await postClearRateLimiter(); getCaptcha(); }; diff --git a/src/views/login/components/register-form/index.vue b/src/views/login/components/register-form/index.vue index e9a0bb9..19a92c2 100644 --- a/src/views/login/components/register-form/index.vue +++ b/src/views/login/components/register-form/index.vue @@ -48,7 +48,7 @@ -

+

{{ errMsg }}

@@ -283,9 +283,9 @@ const getCaptcha = async () => { }; // 验证码验证通过后 -const handleVerificationSubmit = () => { +const handleVerificationSubmit = async () => { isVerificationVisible.value = false; - postClearRateLimiter(); + await postClearRateLimiter(); getCaptcha(); }; diff --git a/src/views/trial/img/icon-check.png b/src/views/trial/img/icon-check.png new file mode 100644 index 0000000000000000000000000000000000000000..b859859709075b3a52f1db9798ce2c87cc513f04 GIT binary patch literal 3218 zcmZuzXH-*57rhCIgx;&6qm+OmAVqu-niMGkfkcV{1rbr{9ZBd4JW&xr1PvlZ0|`|` zN>B{FHw7tz@`$KNXi{SMuK&Ng*4&xdXYV;@=FDC9+{QRq@o`IY0|3BhV{PFK_U(Tg z;t=?Dp1H;ec3i>M=feO%{K(%1v2j*j13^fbvy~Y@8AN^qCoq3gds6_Y$>w4CzyW|) z#m2(aB^vT`)+%HRt7KoMCh!_QgVL%?2+u-6v?{r$h^YZ}+HDO`@& z-kD3Gy2pC5dDIiuzGAJTkqILU{yQi^{)2&-eEz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~A}^qEe6c<>Qr#tkc_Xo*$djc{Px?$~x(eV2-@+5{v48y)bGuTc?xQ=i@uBU^2Y( zEm|GSdd5~RVrTeKo>PkL*K#6-_s>sUQ~CV9uH>#t*}bN7My#Zf+U3r?IFVJ4&<&8`e3+@aUgfCvg?zSna&O-|;4jjwdjS^ZydB4`kj+E=>FP bNLe6VE{V!=d|y+y|D^(3OGjJ{)+_0Md@m)# literal 0 HcmV?d00001 diff --git a/src/views/trial/index.vue b/src/views/trial/index.vue new file mode 100644 index 0000000..77832e3 --- /dev/null +++ b/src/views/trial/index.vue @@ -0,0 +1,221 @@ + + + + + diff --git a/src/views/trial/style.scss b/src/views/trial/style.scss new file mode 100644 index 0000000..9531a7a --- /dev/null +++ b/src/views/trial/style.scss @@ -0,0 +1,95 @@ +.trial-wrap { + background: transparent; + min-width: 1200px; + .cts { + color: #211f24; + font-family: $font-family-medium; + font-size: 14px; + font-style: normal; + font-weight: 500; + line-height: 22px; + } + :deep(.ant-steps) { + .ant-steps-item { + margin-left: 0; + .ant-steps-item-icon { + width: 10px; + height: 10px; + } + .ant-steps-item-content { + margin-top: 8px; + .ant-steps-item-title { + color: var(--Text-1, #211f24); + font-family: $font-family-regular; + font-size: 16px; + font-style: normal; + font-weight: 400; + line-height: 24px; + } + .ant-steps-item-description { + color: var(--Text-3, #737478); + font-family: $font-family-regular; + font-size: 14px; + font-style: normal; + font-weight: 400; + line-height: 22px; + } + } + &.ant-steps-item-wait { + .ant-steps-icon { + .ant-steps-icon-dot { + background: #d7d7d9; + } + } + } + &.ant-steps-item-active, + &.ant-steps-item-finish { + .ant-steps-icon { + .ant-steps-icon-dot { + background: #6d4cfe; + } + } + .ant-steps-item-content { + .ant-steps-item-title { + padding: 0; + font-family: $font-family-medium; + } + } + } + } + } + .header-wrap { + background: transparent; + height: $navbar-height; + line-height: $navbar-height; + padding-inline: inherit; + color: inherit; + width: 100%; + min-width: $layout-min-width; + :deep(.right-wrap) { + .task-icon, + .agent-entry { + display: none; + } + } + } + .trial-content { + width: 100%; + height: 100%; + background: transparent; + min-height: calc(100vh - $navbar-height); + :deep(.ant-form) { + .ant-form-item { + &:not(:last-child) { + margin-bottom: 24px !important; + } + .ant-form-item-label { + > label { + font-family: $font-family-medium; + font-weight: 500; + } + } + } + } + } +}