From a98ea9c3878e41318b85edea2ba0735e2a3e8926 Mon Sep 17 00:00:00 2001
From: abab2320 <1589841436@qq.com>
Date: Tue, 1 Apr 2025 16:46:02 +0800
Subject: [PATCH] =?UTF-8?q?=E7=95=8C=E9=9D=A2=E5=88=9D=E6=AD=A5=E4=BF=AE?=
=?UTF-8?q?=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Front/vue-unilife/package.json | 1 +
Front/vue-unilife/pnpm-lock.yaml | 3 +
Front/vue-unilife/src/components/LogPage.vue | 4 +-
.../src/components/Personal/AcountManager.vue | 187 +++++++++++++++++-
.../src/components/Personal/Personal.vue | 16 +-
Front/前端环境.md | 9 +-
6 files changed, 202 insertions(+), 18 deletions(-)
diff --git a/Front/vue-unilife/package.json b/Front/vue-unilife/package.json
index 6b23c2e..b53d3a7 100644
--- a/Front/vue-unilife/package.json
+++ b/Front/vue-unilife/package.json
@@ -9,6 +9,7 @@
"preview": "vite preview"
},
"dependencies": {
+ "@element-plus/icons-vue": "^2.3.1",
"@vue/shared": "^3.5.13",
"axios": "^1.8.3",
"element-plus": "^2.9.7",
diff --git a/Front/vue-unilife/pnpm-lock.yaml b/Front/vue-unilife/pnpm-lock.yaml
index 9a44cde..f958087 100644
--- a/Front/vue-unilife/pnpm-lock.yaml
+++ b/Front/vue-unilife/pnpm-lock.yaml
@@ -8,6 +8,9 @@ importers:
.:
dependencies:
+ '@element-plus/icons-vue':
+ specifier: ^2.3.1
+ version: 2.3.1(vue@3.5.13(typescript@5.7.3))
'@vue/shared':
specifier: ^3.5.13
version: 3.5.13
diff --git a/Front/vue-unilife/src/components/LogPage.vue b/Front/vue-unilife/src/components/LogPage.vue
index 16f4cac..21adf4f 100644
--- a/Front/vue-unilife/src/components/LogPage.vue
+++ b/Front/vue-unilife/src/components/LogPage.vue
@@ -137,7 +137,7 @@ const onLoginSubmit = () => {
if(login_password_email.value == testEmail.value && login_password.value == testPassword.value) {
console.log('测试登录成功')
console.log(router)
- router.push({name:'Personal'})
+ router.push({name:'Home'})
} else {
login().then((res) => {
if(res.code === 200) {
@@ -314,7 +314,7 @@ async function login(){
padding: 0;
}
- body{
+ :global(body){
height: 100vh;;
/*弹性布局,水平垂直居中*/
display:flex;
diff --git a/Front/vue-unilife/src/components/Personal/AcountManager.vue b/Front/vue-unilife/src/components/Personal/AcountManager.vue
index 6da00db..f3f925f 100644
--- a/Front/vue-unilife/src/components/Personal/AcountManager.vue
+++ b/Front/vue-unilife/src/components/Personal/AcountManager.vue
@@ -1,17 +1,190 @@
- 测试样例
-
- 测试样例2
-
+
+
+
+
+
+ 个人信息
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/Front/vue-unilife/src/components/Personal/Personal.vue b/Front/vue-unilife/src/components/Personal/Personal.vue
index fc8a4ba..2769359 100644
--- a/Front/vue-unilife/src/components/Personal/Personal.vue
+++ b/Front/vue-unilife/src/components/Personal/Personal.vue
@@ -99,17 +99,17 @@ export default defineComponent({
justify-content:center;
align-items:center;
font:900 100px '';
- color:rgba(110,90,240,0.3);
+ color:rgba(175, 90, 240, 0.308);
background-color: #e4e9f5;
}
.shell{
- position:absolute;
+ position:fixed;
top:0%;
left:0%;
width:84px;
height:100%;
- background-color:#fff;
+ background-color:#ead1fb;
z-index:9999;
transition:width 0.5s;
padding-left:10px;
@@ -145,7 +145,7 @@ export default defineComponent({
}
.active{
- background-color: #e4e9f5;
+ background-color: #fff;
border-top-left-radius: 50px;
border-bottom-left-radius: 50px;
}
@@ -158,7 +158,7 @@ export default defineComponent({
width:30px;
height:30px;
border-bottom-right-radius:25px;
- box-shadow:5px 5px 0 5px #e4e9f5;
+ box-shadow:5px 5px 0 5px #fff;
background:transparent;
}
@@ -170,7 +170,7 @@ export default defineComponent({
width:30px;
height:30px;
border-top-right-radius: 25px;
- box-shadow:5px -5px 0 5px #e4e9f5;
+ box-shadow:5px -5px 0 5px #fff;
background:transparent;
}
@@ -194,7 +194,7 @@ export default defineComponent({
height:70px;
color:#333;
transition:0.5s;
- color: rgb(110,90,240)
+ color: rgb(153, 109, 240)
}
.icon i{
@@ -218,7 +218,7 @@ export default defineComponent({
.shell ul li:hover a .icon,
.shell ul li:hover a .text
{
- color: #ffa117;/*字体和图标被选中后的颜色 */
+ color: #f3e7e9;/*字体和图标被选中后的颜色 */
}
.active a .icon::before{
diff --git a/Front/前端环境.md b/Front/前端环境.md
index e2facf6..4e311b5 100644
--- a/Front/前端环境.md
+++ b/Front/前端环境.md
@@ -52,4 +52,11 @@ pnpm add element-plus
pnpm i vue-router
pnpm add vue-router@4
```
-用来完成界面跳转,同时完成vuerouter与ts的适配
\ No newline at end of file
+用来完成界面跳转,同时完成vuerouter与ts的适配
+
+
+
+### 安装elementplus的icon库
+```
+pnpm install @element-plus/icons-vue
+```
\ No newline at end of file