Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
JuyuanPrimarySchool
Overview
Overview
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
vue-project
JuyuanPrimarySchool
Commits
81801467
Commit
81801467
authored
Nov 15, 2021
by
zsh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新header
parent
fd06a722
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
139 additions
and
15 deletions
+139
-15
package-lock.json
package-lock.json
+25
-7
runner
runner
+1
-1
index.vue
src/components/Header/index.vue
+109
-3
index.vue
src/pages/index.vue
+1
-4
global.less
static/styles/global.less
+3
-0
No files found.
package-lock.json
View file @
81801467
...
@@ -6724,11 +6724,19 @@
...
@@ -6724,11 +6724,19 @@
}
}
},
},
"echarts"
:
{
"echarts"
:
{
"version"
:
"
4.9.0
"
,
"version"
:
"
5.2.2
"
,
"resolved"
:
"https://registry.npmjs.org/echarts/-/echarts-
4.9.0
.tgz"
,
"resolved"
:
"https://registry.npmjs.org/echarts/-/echarts-
5.2.2
.tgz"
,
"integrity"
:
"sha512-
+ugizgtJ+KmsJyyDPxaw2Br5FqzuBnyOWwcxPKO6y0gc5caYcfnEUIlNStx02necw8jmKmTafmpHhGo4XDtEIA
=="
,
"integrity"
:
"sha512-
yxuBfeIH5c+0FsoRP60w4De6omXhA06c7eUYBsC1ykB6Ys2yK5fSteIYWvkJ4xJVLQgCvAdO8C4mN6MLeJpBaw
=="
,
"requires"
:
{
"requires"
:
{
"zrender"
:
"4.3.2"
"tslib"
:
"2.3.0"
,
"zrender"
:
"5.2.1"
},
"dependencies"
:
{
"tslib"
:
{
"version"
:
"2.3.0"
,
"resolved"
:
"https://registry.npmjs.org/tslib/-/tslib-2.3.0.tgz"
,
"integrity"
:
"sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg=="
}
}
}
},
},
"ee-first"
:
{
"ee-first"
:
{
...
@@ -15286,9 +15294,19 @@
...
@@ -15286,9 +15294,19 @@
}
}
},
},
"zrender"
:
{
"zrender"
:
{
"version"
:
"4.3.2"
,
"version"
:
"5.2.1"
,
"resolved"
:
"https://registry.npmjs.org/zrender/-/zrender-4.3.2.tgz"
,
"resolved"
:
"https://registry.npmjs.org/zrender/-/zrender-5.2.1.tgz"
,
"integrity"
:
"sha512-bIusJLS8c4DkIcdiK+s13HiQ/zjQQVgpNohtd8d94Y2DnJqgM1yjh/jpDb8DoL6hd7r8Awagw8e3qK/oLaWr3g=="
"integrity"
:
"sha512-M3bPGZuyLTNBC6LiNKXJwSCtglMp8XUEqEBG+2MdICDI3d1s500Y4P0CzldQGsqpRVB7fkvf3BKQQRxsEaTlsw=="
,
"requires"
:
{
"tslib"
:
"2.3.0"
},
"dependencies"
:
{
"tslib"
:
{
"version"
:
"2.3.0"
,
"resolved"
:
"https://registry.npmjs.org/tslib/-/tslib-2.3.0.tgz"
,
"integrity"
:
"sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg=="
}
}
}
}
}
}
}
}
runner
@
3e0dc018
Subproject commit
fe3cb93fbe4caf5aa09741b53b8e363fcde43fb2
Subproject commit
3e0dc01835973a7f1d3ecdbb3533cf1826f41fb6
src/components/Header/index.vue
View file @
81801467
<
template
>
<
template
>
<header
id=
"header"
>
{{
title
}}
</header>
<header
id=
"header"
>
<div
class=
"logo"
>
<img
src=
"./images/logo.png"
alt=
"logo"
>
</div>
<h2
class=
"title"
><span>
{{
currPageTitle
}}
</span></h2>
<div
class=
"date"
>
<span
class=
"curr-date"
>
{{
fullDate
||
''
}}
</span>
<span
class=
"curr-times"
>
{{
fullTime
||
''
}}
</span>
</div>
</header>
</
template
>
</
template
>
<
script
>
<
script
>
import
utils
from
'utils'
let
timerId
=
null
export
default
{
export
default
{
data
()
{
data
()
{
return
{}
return
{
fullDate
:
''
,
fullTime
:
''
}
},
},
props
:
[
'title'
],
computed
:
{
// 当前页面名称
currPageTitle
()
{
const
{
meta
=
{}
}
=
this
.
$router
.
currentRoute
return
meta
.
title
||
''
}
},
created
()
{
created
()
{
window
.
vm
=
this
window
.
vm
=
this
this
.
getSysTime
()
},
beforeDestroy
()
{
clearInterval
(
timerId
)
timerId
=
null
},
methods
:
{
getSysTime
()
{
const
that
=
this
try
{
timerId
=
setTimeout
(
function
getTimer
()
{
const
{
fullDate
=
''
,
fullTime
=
''
}
=
utils
.
getCurrTime
(
'/'
)
||
{}
that
.
fullDate
=
fullDate
that
.
fullTime
=
fullTime
timerId
=
setTimeout
(
getTimer
,
1000
)
},
1000
)
}
catch
(
error
)
{
console
.
log
(
'getSysTime-error > '
,
error
)
}
}
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
#header
{
display
:
flex
;
align-items
:
center
;
width
:
100%
;
height
:
@
pageHeaderHeight
;
padding-right
:
35px
;
padding-left
:
25px
;
}
.logo
{
padding-top
:
12px
;
>
img
{
vertical-align
:
-5px
;
}
.logo-desc
{
margin-left
:
24px
;
font-size
:
18px
;
font-family
:
Source
Han
Sans
CN
;
font-weight
:
400
;
color
:
#fff
;
}
}
.title
{
flex
:
1
;
height
:
100%
;
line-height
:
@
pageHeaderHeight
+
4
;
white-space
:
nowrap
;
text-align
:
center
;
>
span
{
font-size
:
34px
;
font-family
:
Adobe
Heiti
Std
;
font-weight
:
bold
;
color
:
#fff
;
background
:
linear-gradient
(
0deg
,
#FFFFFF
0%
,
#FFFFFF
100%
);
background-clip
:
text
;
-webkit-background-clip
:
text
;
-webkit-text-fill-color
:
transparent
;
}
}
.date
{
width
:
205px
;
padding-top
:
30px
;
color
:
#fff
;
>
span
{
font-size
:
18px
;
font-family
:
Source
Han
Sans
CN
;
}
.curr-times
{
margin-left
:
8px
;
font-size
:
24px
;
font-weight
:
bold
;
}
}
</
style
>
>
</
style
>
>
src/pages/index.vue
View file @
81801467
<
template
>
<
template
>
<div
class=
"index-page"
>
<layout
:layoutConf=
"layoutSize"
class=
"index-page"
>
<layout
:layoutConf=
"layoutSize"
>
<Header
title=
"头部标题"
slot=
"header"
/>
<!-- left -->
<!-- left -->
<div
class=
"index-left"
slot=
"left"
></div>
<div
class=
"index-left"
slot=
"left"
></div>
<!-- center -->
<!-- center -->
...
@@ -9,7 +7,6 @@
...
@@ -9,7 +7,6 @@
<!-- right -->
<!-- right -->
<div
class=
"index-right"
slot=
"right"
></div>
<div
class=
"index-right"
slot=
"right"
></div>
</layout>
</layout>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
...
...
static/styles/global.less
0 → 100644
View file @
81801467
// 页面头部高度
@pageHeaderHeight: 57px;
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