Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 2ebca81b
authored
Jun 28, 2023
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
首页svg背景暗黑
1 parent
dcec1c10
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
4 deletions
vue3-lw-pc/src/views/index/asstes/bg.svg
vue3-lw-pc/src/views/index/index.vue
vue3-lw-pc/src/views/index/asstes/bg.svg
View file @
2ebca81
<svg
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
fill=
"none"
version=
"1.1"
width=
"218"
height=
"198"
viewBox=
"0 0 218 198"
><defs><linearGradient
x1=
"0.5"
y1=
"0"
x2=
"0.5"
y2=
"1"
id=
"master_svg0_1_0523"
><stop
offset=
"49.817198514938354%"
stop-color=
"#FFFFFF"
stop-opacity=
"1"
/><stop
offset=
"100%"
stop-color=
"#FFFFFF"
stop-opacity=
"0.20000000298023224"
/></linearGradient></defs><g
style=
"mix-blend-mode:passthrough"
><path
d=
"M178.763,38L202,38C210.837,38,218,45.1634,218,54L218,182C218,190.837,210.837,198,202,198L16,198C7.16344,198,0,190.837,0,182L0,54C0,45.1634,7.16344,38,16,38L39.2366,38C49.636,38,58.4828,30.8652,64.6375,22.4827C74.6473,8.84961,90.7902,0,109,0C127.21,0,143.353,8.84961,153.363,22.4827C159.517,30.8652,168.364,38,178.763,38"
fill-rule=
"evenodd"
fill=
"url(#master_svg0_1_0523)"
fill-opacity=
"1"
/></g></svg>
\ No newline at end of file
<svg
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
fill=
"none"
version=
"1.1"
width=
"218"
height=
"198"
viewBox=
"0 0 218 198"
>
<defs>
<linearGradient
x1=
"0.5"
y1=
"0"
x2=
"0.5"
y2=
"1"
id=
"master_svg0_1_0523"
>
<stop
offset=
"49.817198514938354%"
stop-color=
"currentColor"
stop-opacity=
"1"
/>
<stop
offset=
"100%"
stop-color=
"currentColor"
stop-opacity=
"0.20000000298023224"
/>
</linearGradient>
</defs>
<g
style=
"mix-blend-mode:passthrough"
>
<path
d=
"M178.763,38L202,38C210.837,38,218,45.1634,218,54L218,182C218,190.837,210.837,198,202,198L16,198C7.16344,198,0,190.837,0,182L0,54C0,45.1634,7.16344,38,16,38L39.2366,38C49.636,38,58.4828,30.8652,64.6375,22.4827C74.6473,8.84961,90.7902,0,109,0C127.21,0,143.353,8.84961,153.363,22.4827C159.517,30.8652,168.364,38,178.763,38"
fill-rule=
"evenodd"
fill=
"url(#master_svg0_1_0523)"
fill-opacity=
"1"
/>
</g>
</svg>
\ No newline at end of file
vue3-lw-pc/src/views/index/index.vue
View file @
2ebca81
...
...
@@ -3,13 +3,13 @@
<div
class=
"index-l"
>
<div
class=
"flex"
>
<div
class=
"userinfo"
>
<div
v-html=
"bgSvg"
class=
"bgSvg"
></div>
<div
class=
"portrait"
>
<img
class=
"portrait-img"
:src=
"$store.user.avatar"
alt=
""
v-if=
"$store.user.avatar"
/>
<!--
<svg-icon
icon=
"user"
class=
"code-user"
v-else
></svg-icon>
-->
</div>
<div
class=
"wel toe"
>
<span>
{{
greetings
}}
,
</span>
<span>
{{
$store
.
user
.
name
}}
</span>
<span>
{{
greetings
}}
,
{{
$store
.
user
.
name
}}
</span>
</div>
<div
class=
"role toe g-bg-lg"
>
{{
roleGroup
||
'管理员'
}}
</div>
</div>
...
...
@@ -171,6 +171,7 @@ import { getUserProfile } from '@/api/system/user'
import
*
as
api
from
'@/api/index'
// import { getCustomerServiceQrUrl } from '@/api/login'
import
{
CountTo
}
from
'vue3-count-to'
import
bgSvg
from
'./asstes/bg.svg?raw'
export
default
{
name
:
'Index'
,
components
:
{
...
...
@@ -181,6 +182,7 @@ export default {
data
()
{
return
{
api
,
bgSvg
,
table
:
{
currentEdition
:
'-'
,
// 当前版本
userNumbers
:
0
,
// 使用人数
...
...
@@ -417,11 +419,15 @@ export default {
flex-direction
:
column
;
align-items
:
center
;
width
:
218px
;
background
:
url('./asstes/bg.svg')
no-repeat
;
border-radius
:
var
(
--border-radius-big
);
padding
:
0px
20px
20px
;
margin-top
:
-38px
;
.bgSvg
{
color
:
var
(
--bg-white
);
position
:
absolute
;
}
.portrait
{
position
:
relative
;
padding
:
10px
;
.portrait-img
{
display
:
block
;
...
...
@@ -433,11 +439,13 @@ export default {
}
}
.wel
{
position
:
relative
;
font-size
:
22px
;
font-weight
:
bold
;
margin
:
2px
0
16px
;
}
.role
{
position
:
relative
;
color
:
white
;
padding
:
6px
8px
;
font-size
:
12px
;
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment