Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
C
crsf-ptvue
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wuhan
crsf-ptvue
Commits
cef9b7f4
Commit
cef9b7f4
authored
Sep 15, 2021
by
xiexingan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 右上角站点长度样式
parent
19a1c87b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
25 deletions
+23
-25
index.vue
src/layout/header-aside/components/header-user/index.vue
+6
-3
layout.vue
src/layout/header-aside/layout.vue
+17
-22
No files found.
src/layout/header-aside/components/header-user/index.vue
View file @
cef9b7f4
...
...
@@ -169,9 +169,12 @@ export default {
.user-info
{
width
:
84px
;
height
:
36px
;
background
:
url(../../imgs/subwayBg.png)
;
background-size
:
100%
100%
;
height
:
34px
;
border-top
:
1px
solid
rgba
(
255
,
255
,
255
,
0
.75
);
border-bottom
:
1px
solid
rgba
(
255
,
255
,
255
,
0
.75
);
border-left
:
1px
solid
rgba
(
255
,
255
,
255
,
0
.75
);
border-top-left-radius
:
7px
;
border-bottom-left-radius
:
7px
;
text-align
:center
;
opacity
:
0
;
float
:
right
;
...
...
src/layout/header-aside/layout.vue
View file @
cef9b7f4
...
...
@@ -26,8 +26,9 @@
<div
class=
"current-date"
>
{{
time
|
formatDate2
}}
</div>
</div>
<div
class=
"subway-container"
>
<div
class=
"subway-info"
>
<span
:class=
"station.length
<6
?'
lineFeed
'
:
''"
>
{{
station
}}
</span>
<div
class=
"subway-info"
:style=
"
{width:station.length*13+ 'px','min-width':'60px'}">
<!--
<span
:class=
"station.length
<6
?'
lineFeed
'
:
''"
>
{{
station
}}
</span>
-->
<span>
{{
station
}}
</span>
<!--
<div
class=
"out-img"
>
</div>
-->
</div>
...
...
@@ -199,14 +200,13 @@ export default {
this
.
zdCountNum
=
this
.
size
.
split
(
'-'
)[
0
]
this
.
xlCountNum
=
this
.
size
.
split
(
'-'
)[
1
]
let
currentPath
=
this
.
$route
.
path
let
currentPath
=
this
.
$route
.
path
let
routeName
=
currentPath
.
slice
(
0
,
7
)
if
(
routeName
==
'/routes'
)
{
this
.
isShow
=
true
}
else
{
this
.
isShow
=
false
}
},
filters
:
{
formatDate
:
function
(
value
)
{
...
...
@@ -265,7 +265,6 @@ export default {
this
.
xlCountNum
=
val
.
split
(
'-'
)[
1
]
// console.log(this.zdCountNum, '1--------1')
// console.log(this.xlCountNum, '2--------2')
},
'$route.path'
(
val
)
{
// console.log(val, '--------')
...
...
@@ -445,7 +444,6 @@ export default {
transform
:
translateY
(
60px
);
}
// 注册主题
@import
"~@/assets/style/theme/register.scss"
;
// 左上角logo
...
...
@@ -494,23 +492,20 @@ export default {
}
.subway-info
{
min-width
:
104px
;
height
:
36px
;
line-height
:
36px
;
background
:
url(./imgs/subwayBg.png)
;
background-size
:
100%
100%
;
transform
:
translateX
(
12px
);
height
:
34px
;
line-height
:
34px
;
text-align
:right
;
span
{
display
:inline-block
;
height
:
36px
;
// padding-top:2px;
padding-right
:
16px
;
font-size
:
12px
;
padding-right
:
16px
;
font-family
:
Microsoft
YaHei
;
font-weight
:
400
;
color
:
rgba
(
255
,
255
,
255
,
0
.75
);
}
transform
:
translateX
(
12px
);
border-top
:
1px
solid
rgba
(
255
,
255
,
255
,
0
.75
);
border-bottom
:
1px
solid
rgba
(
255
,
255
,
255
,
0
.75
);
border-left
:
1px
solid
rgba
(
255
,
255
,
255
,
0
.75
);
border-top-left-radius
:
7px
;
border-bottom-left-radius
:
7px
;
}
}
</
style
>
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