Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
scm_app
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
40db6d65
authored
May 29, 2026
by
liangjianmin
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
style(home): 优化首页样式和布局
- 调整问候语的样式,修改字体大小和行高 - 更新统计卡片的边距和阴影效果 - 修改个人中心页面的背景颜色和边框半径
parent
627768c0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
58 additions
and
77 deletions
assets/css/home/index.scss
assets/css/mine/index.scss
pages/home/index.vue
assets/css/home/index.scss
View file @
40db6d65
...
...
@@ -44,22 +44,14 @@
}
.greeting
{
display
:
flex
;
flex-direction
:
column
;
margin-bottom
:
36rpx
;
.g-sub
{
font-size
:
22rpx
;
color
:
rgba
(
255
,
255
,
255
,
0
.6
);
letter-spacing
:
4rpx
;
margin-bottom
:
8rpx
;
}
margin-bottom
:
40rpx
;
.g-main
{
font-size
:
4
0
rpx
;
font-weight
:
7
00
;
font-size
:
4
4
rpx
;
font-weight
:
6
00
;
color
:
#ffffff
;
letter-spacing
:
1rpx
;
letter-spacing
:
0
.5rpx
;
line-height
:
1
.3
;
}
}
...
...
@@ -67,9 +59,9 @@
position
:
relative
;
display
:
flex
;
background
:
#ffffff
;
border-radius
:
2
8
rpx
;
padding
:
40
rpx
24rpx
;
box-shadow
:
0
1
6rpx
40rpx
rgba
(
30
,
58
,
138
,
0
.16
);
border-radius
:
2
4
rpx
;
padding
:
36
rpx
24rpx
;
box-shadow
:
0
1
2rpx
32rpx
rgba
(
30
,
58
,
138
,
0
.12
);
.stat-item
{
flex
:
1
;
...
...
@@ -79,11 +71,11 @@
animation
:
statFadeIn
0
.6s
cubic-bezier
(
0
.34
,
1
.56
,
0
.64
,
1
)
backwards
;
.stat-num
{
font-size
:
52
rpx
;
font-weight
:
7
00
;
font-size
:
48
rpx
;
font-weight
:
6
00
;
color
:
#1e293b
;
line-height
:
1
;
margin-bottom
:
1
2
rpx
;
margin-bottom
:
1
0
rpx
;
}
.stat-label
{
...
...
@@ -120,18 +112,18 @@
margin
:
28rpx
0
24rpx
;
.title-bar
{
width
:
8
rpx
;
height
:
30
rpx
;
border-radius
:
4
rpx
;
width
:
6
rpx
;
height
:
28
rpx
;
border-radius
:
3
rpx
;
background
:
linear-gradient
(
180deg
,
#3b82f6
,
#2563eb
);
margin-right
:
1
6
rpx
;
margin-right
:
1
4
rpx
;
}
.section-title
{
font-size
:
3
2
rpx
;
font-weight
:
7
00
;
font-size
:
3
0
rpx
;
font-weight
:
6
00
;
color
:
#0f172a
;
letter-spacing
:
1
rpx
;
letter-spacing
:
0
.5
rpx
;
}
}
...
...
@@ -180,9 +172,9 @@
.entry-title
{
font-size
:
28rpx
;
font-weight
:
6
00
;
font-weight
:
5
00
;
color
:
#1e293b
;
letter-spacing
:
0
.
5
rpx
;
letter-spacing
:
0
.
3
rpx
;
}
.entry-tip
{
...
...
assets/css/mine/index.scss
View file @
40db6d65
.mine-page
{
min-height
:
100vh
;
padding-bottom
:
158rpx
;
background
:
#f
4f6fb
;
background
:
#f
8fafc
;
.profile-hero
{
position
:
relative
;
padding
:
56rpx
32rpx
40
rpx
;
overflow
:
hidden
;
padding
:
48rpx
32rpx
48
rpx
;
margin-bottom
:
16rpx
;
.hero-bg
{
position
:
absolute
;
top
:
0
;
left
:
0
;
right
:
0
;
height
:
280rpx
;
background
:
linear-gradient
(
135deg
,
#1e3a8a
0%
,
#2563eb
55%
,
#3b82f6
100%
);
border-radius
:
0
0
48rpx
48rpx
;
&
:
:
before
{
content
:
''
;
position
:
absolute
;
top
:
-60rpx
;
right
:
-50rpx
;
width
:
320rpx
;
height
:
320rpx
;
background
:
radial-gradient
(
circle
,
rgba
(
255
,
255
,
255
,
0
.12
)
0%
,
transparent
70%
);
}
height
:
198rpx
;
background
:
linear-gradient
(
135deg
,
#2563eb
0%
,
#3b82f6
100%
);
border-radius
:
0
0
32rpx
32rpx
;
}
.profile-card
{
...
...
@@ -35,20 +25,20 @@
align-items
:
center
;
.avatar
{
width
:
120
rpx
;
height
:
120
rpx
;
border-radius
:
32
rpx
;
background
:
rgba
(
255
,
255
,
255
,
0
.
18
);
backdrop-filter
:
blur
(
10
rpx
);
border
:
2rpx
solid
rgba
(
255
,
255
,
255
,
0
.3
5
);
width
:
96
rpx
;
height
:
96
rpx
;
border-radius
:
24
rpx
;
background
:
rgba
(
255
,
255
,
255
,
0
.
2
);
backdrop-filter
:
blur
(
8
rpx
);
border
:
2rpx
solid
rgba
(
255
,
255
,
255
,
0
.3
);
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
margin-right
:
2
8
rpx
;
margin-right
:
2
0
rpx
;
.avatar-text
{
font-size
:
52
rpx
;
font-weight
:
7
00
;
font-size
:
40
rpx
;
font-weight
:
5
00
;
color
:
#ffffff
;
}
}
...
...
@@ -58,30 +48,30 @@
flex-direction
:
column
;
.p-name
{
font-size
:
40
rpx
;
font-weight
:
7
00
;
font-size
:
36
rpx
;
font-weight
:
6
00
;
color
:
#ffffff
;
letter-spacing
:
1
rpx
;
margin-bottom
:
12
rpx
;
letter-spacing
:
0
.5
rpx
;
margin-bottom
:
8
rpx
;
}
.p-position
{
font-size
:
24rpx
;
color
:
rgba
(
255
,
255
,
255
,
0
.8
5
);
color
:
rgba
(
255
,
255
,
255
,
0
.8
);
}
}
}
}
.info-list
{
margin
:
0
32rpx
;
margin
:
32rpx
32rpx
0
;
background
:
#ffffff
;
border-radius
:
2
8
rpx
;
padding
:
8rpx
32
rpx
;
box-shadow
:
0
8rpx
28
rpx
rgba
(
15
,
23
,
42
,
0
.06
);
border-radius
:
2
0
rpx
;
padding
:
8rpx
28
rpx
;
box-shadow
:
0
4rpx
16
rpx
rgba
(
15
,
23
,
42
,
0
.06
);
.info-item
{
padding
:
3
2
rpx
0
;
padding
:
3
0
rpx
0
;
border-bottom
:
1rpx
solid
#f1f5f9
;
&
:last-child
{
...
...
@@ -89,13 +79,13 @@
}
.info-icon
{
width
:
6
4
rpx
;
height
:
6
4
rpx
;
border-radius
:
1
8
rpx
;
width
:
6
0
rpx
;
height
:
6
0
rpx
;
border-radius
:
1
6
rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
margin-right
:
2
4
rpx
;
margin-right
:
2
0
rpx
;
flex-shrink
:
0
;
}
...
...
@@ -109,7 +99,7 @@
.info-value
{
flex
:
1
;
font-size
:
28rpx
;
font-weight
:
6
00
;
font-weight
:
5
00
;
color
:
#1e293b
;
text-align
:
right
;
word-break
:
break-all
;
...
...
@@ -118,13 +108,13 @@
}
.logout-wrap
{
padding
:
48
rpx
32rpx
;
padding
:
36
rpx
32rpx
;
.logout-btn
{
height
:
9
6
rpx
;
height
:
9
2
rpx
;
background
:
#ffffff
;
border-radius
:
2
4
rpx
;
box-shadow
:
0
8rpx
24
rpx
rgba
(
239
,
68
,
68
,
0
.08
);
border-radius
:
2
0
rpx
;
box-shadow
:
0
4rpx
16
rpx
rgba
(
239
,
68
,
68
,
0
.08
);
transition
:
all
0
.2s
ease
;
&
:active
{
...
...
@@ -133,11 +123,11 @@
}
.logout-text
{
font-size
:
30
rpx
;
font-weight
:
6
00
;
font-size
:
28
rpx
;
font-weight
:
5
00
;
color
:
#ef4444
;
margin-left
:
1
2
rpx
;
letter-spacing
:
1
rpx
;
margin-left
:
1
0
rpx
;
letter-spacing
:
0
.5
rpx
;
}
}
}
...
...
pages/home/index.vue
View file @
40db6d65
...
...
@@ -4,7 +4,6 @@
<view
class=
"hero-bg"
></view>
<view
class=
"hero-inner"
>
<view
class=
"greeting"
>
<text
class=
"g-sub"
>
SUPPLY CHAIN
</text>
<text
class=
"g-main"
>
供应链审批系统
</text>
</view>
<view
class=
"stat-card"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment