From 826c6d28b220e0007e83ffdf7325a2a127b7b1df Mon Sep 17 00:00:00 2001 From: lizhipeng Date: Thu, 5 Feb 2026 13:55:37 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E5=AD=97=E4=BD=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/css/style.css | 2 +- src/assets/css/style.less | 2 +- src/lang/en.ts | 11 +++--- src/lang/zh-cn.ts | 11 +++--- src/views/home/left-nav.vue | 63 ++++++++++++++++++++++++++++---- src/views/login/css/style.css | 10 ++++- src/views/login/index.vue | 4 +- src/views/login/less/style.less | 9 ++++- src/views/login/login.vue | 6 +-- src/views/login/other-login.vue | 2 +- src/views/login/visible-code.vue | 11 ++++-- src/views/nuic/index.vue | 8 +++- src/views/nuic/nuic-1.vue | 3 ++ src/views/nuic/nuic-2.vue | 3 ++ src/views/nuic/nuic-3.vue | 27 ++++++++++++-- 15 files changed, 135 insertions(+), 37 deletions(-) diff --git a/src/assets/css/style.css b/src/assets/css/style.css index 1baca71..93df8f9 100644 --- a/src/assets/css/style.css +++ b/src/assets/css/style.css @@ -12,7 +12,6 @@ p { } * { box-sizing: border-box; - font-family: 'Medium'; } html, body, @@ -20,6 +19,7 @@ body, width: 100%; height: 100%; overflow: hidden; + font-family: 'Medium'; } @keyframes loading { 0% { diff --git a/src/assets/css/style.less b/src/assets/css/style.less index fa738dc..46a45b4 100644 --- a/src/assets/css/style.less +++ b/src/assets/css/style.less @@ -13,7 +13,6 @@ p { * { box-sizing: border-box; - font-family: 'Medium'; } html, @@ -22,6 +21,7 @@ body, width: 100%; height: 100%; overflow: hidden; + font-family: 'Medium'; } @keyframes loading { diff --git a/src/lang/en.ts b/src/lang/en.ts index 7d7f254..8b5a8d5 100644 --- a/src/lang/en.ts +++ b/src/lang/en.ts @@ -1,9 +1,10 @@ export default { Login: { - Login: 'Log in', - SignUp: 'Sign up', - LoginTo: 'Log on to', - LoginTitle: 'A multi-agent canvas for rapid, trend driven design iteration.', + login: 'Log in', + register: 'Register', + signUp: 'Sign up', + loginTo: 'Log on to', + loginTitle: 'A multi-agent canvas for rapid, trend driven design iteration.', name: 'Name', email: 'Email', password: 'Password', @@ -42,7 +43,7 @@ export default { next: 'Next', nuic2Title: `What's your dream home vibe ?`, loadMore: 'Load more', - nuic3Title: `Where are you based? What do you do ?`, + nuic3Title: `Where are you based? What do you do ?`, basedIn: 'Based in', role: 'Role', allSet: 'All set!' diff --git a/src/lang/zh-cn.ts b/src/lang/zh-cn.ts index cf4123a..6a1e315 100644 --- a/src/lang/zh-cn.ts +++ b/src/lang/zh-cn.ts @@ -1,9 +1,10 @@ export default { Login: { - Login: '登录', - SignUp: '注册', - LoginTo: '登录到', - LoginTitle: '一个多智能体画布,用于快速、趋势驱动的设计迭代。', + login: '登录', + register: '注册', + signUp: '注册', + loginTo: '登录到', + loginTitle: '一个多智能体画布,用于快速、趋势驱动的设计迭代。', name: '姓名', email: '邮箱', password: '密码', @@ -42,7 +43,7 @@ export default { next: '下一步', nuic2Title: `您理想中 家的氛围 是什么?`, loadMore: '加载更多', - nuic3Title: `您在哪里 工作 ?您从事什么 工作 ?`, + nuic3Title: `您在 哪里 工作?您从事什么 工作 ?`, basedIn: '公司', role: '角色', allSet: '准备好了!', diff --git a/src/views/home/left-nav.vue b/src/views/home/left-nav.vue index 0b4174a..bc76308 100644 --- a/src/views/home/left-nav.vue +++ b/src/views/home/left-nav.vue @@ -25,15 +25,24 @@
{{ item.name }}
-
+
{{ item.name }} - + -
-
Rename
-
Delete
+
+
Rename
+
Delete
@@ -50,6 +59,7 @@ const route = useRoute() const router = useRouter() import { useGlobalStore } from '@/stores' + const id = computed(() => route.params.id) const globalStore = useGlobalStore() const isCollapse = computed(() => globalStore.state.homeLeftNavCollapse) const onCollapse = () => { @@ -97,9 +107,21 @@ showHistory.value = !showHistory.value } const onClickHistoryItem = (item: any) => { - console.log(item) router.push({ name: 'test', params: { id: item.id } }) } + const onRenameHistoryItem = (item: any) => { + // const index = historyList.value.findIndex((i: any) => i.id == item.id) + // if (index != -1) { + + // } + } + const onDeleteHistoryItem = (item: any) => { + console.log(item) + const index = historyList.value.findIndex((i: any) => i.id == item.id) + if (index != -1) { + historyList.value.splice(index, 1) + } + } diff --git a/src/views/login/css/style.css b/src/views/login/css/style.css index af89775..e6d0ada 100644 --- a/src/views/login/css/style.css +++ b/src/views/login/css/style.css @@ -98,8 +98,7 @@ .register > .right > .box > .tip, .login > .right > .box > .tip { font-weight: 400; - font-family: General Sans Variable; - font-style: Regular; + font-family: Regular; font-size: 1.8rem; color: #666; margin-top: 0.4rem; @@ -109,6 +108,10 @@ margin-top: 5rem; width: 100%; } +.register > .right > .box > .el-form::v-deep, +.login > .right > .box > .el-form::v-deep { + font-family: Regular; +} .register > .right > .box > .el-form::v-deep .el-form-item, .login > .right > .box > .el-form::v-deep .el-form-item { margin-bottom: 2rem; @@ -118,6 +121,7 @@ color: #252727; font-size: 1.8rem; margin-bottom: 0.8rem; + font-family: Medium; } .register > .right > .box > .el-form::v-deep .el-input, .login > .right > .box > .el-form::v-deep .el-input { @@ -167,12 +171,14 @@ border-radius: 0.8rem; color: #fff; font-weight: 600; + font-family: SemiBold; } .register > .right > .box > .tip-2, .login > .right > .box > .tip-2 { font-weight: 400; font-size: 1.6rem; color: #666; + font-family: Regular; } .register > .right > .box > .tip-2::v-deep > span, .login > .right > .box > .tip-2::v-deep > span { diff --git a/src/views/login/index.vue b/src/views/login/index.vue index c1d0385..4fe5c57 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -2,8 +2,8 @@

- - + +
diff --git a/src/views/login/less/style.less b/src/views/login/less/style.less index 63deb3c..138b6d3 100644 --- a/src/views/login/less/style.less +++ b/src/views/login/less/style.less @@ -95,8 +95,8 @@ >.tip { font-weight: 400; - font-family: General Sans Variable; - font-style: Regular; + font-family: Regular; + // font-style: Regular; font-size: 1.8rem; color: #666; margin-top: 0.4rem; @@ -107,6 +107,8 @@ width: 100%; &::v-deep { + font-family: Regular; + .el-form-item { margin-bottom: 2rem; } @@ -115,6 +117,7 @@ color: #252727; font-size: 1.8rem; margin-bottom: 0.8rem; + font-family: Medium; } .el-input { @@ -167,6 +170,7 @@ border-radius: 0.8rem; color: #fff; font-weight: 600; + font-family: SemiBold; } } } @@ -175,6 +179,7 @@ font-weight: 400; font-size: 1.6rem; color: #666; + font-family: Regular; &::v-deep>span { text-decoration: underline; diff --git a/src/views/login/login.vue b/src/views/login/login.vue index b9ab3d1..df526e2 100644 --- a/src/views/login/login.vue +++ b/src/views/login/login.vue @@ -17,10 +17,10 @@