Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
train-admin-h5
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
tangjiale
train-admin-h5
Commits
05032210
Commit
05032210
authored
Jun 28, 2022
by
tangjiale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新改动
parent
c94e08fd
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
7 deletions
+36
-7
left-nav.vue
components/layout/left-nav.vue
+1
-1
top-head.vue
components/layout/top-head.vue
+2
-2
index.vue
pages/index.vue
+32
-3
login.vue
pages/login.vue
+1
-1
No files found.
components/layout/left-nav.vue
View file @
05032210
...
@@ -74,7 +74,7 @@ export default {
...
@@ -74,7 +74,7 @@ export default {
//菜单列表
//菜单列表
this
.
$service
.
base
.
getPermissions
().
then
((
res
)
=>
{
this
.
$service
.
base
.
getPermissions
().
then
((
res
)
=>
{
this
.
leftNav
=
res
||
[];
this
.
leftNav
=
res
||
[];
//
this.leftNav.unshift({menuName:'首页',menuUrl:'/'})
this
.
leftNav
.
unshift
({
menuName
:
'首页'
,
menuUrl
:
'/'
})
});
});
},
},
updateRoute
(
item
){
updateRoute
(
item
){
...
...
components/layout/top-head.vue
View file @
05032210
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
<el-dropdown
class=
"margin-r"
@
command=
"doneOption"
>
<el-dropdown
class=
"margin-r"
@
command=
"doneOption"
>
<span
class=
"el-dropdown-link"
>
<span
class=
"el-dropdown-link"
>
<div
class=
"flex-c"
>
<div
class=
"flex-c"
>
<img
class=
"header"
src=
"
../..
/assets/images/boy.png"
alt=
""
>
{{
myUserInfo
&&
myUserInfo
.
userName
}}
<img
class=
"header"
src=
"
@
/assets/images/boy.png"
alt=
""
>
{{
myUserInfo
&&
myUserInfo
.
userName
}}
</div>
</div>
</span>
</span>
<el-dropdown-menu
slot=
"dropdown"
>
<el-dropdown-menu
slot=
"dropdown"
>
...
@@ -63,7 +63,7 @@
...
@@ -63,7 +63,7 @@
this
.
$service
.
base
.
getUserInfo
(
this
.
myUserInfo
.
token
).
then
(
result
=>
{
this
.
$service
.
base
.
getUserInfo
(
this
.
myUserInfo
.
token
).
then
(
result
=>
{
this
.
$store
.
commit
(
'updateUserInfo'
,
result
);
this
.
$store
.
commit
(
'updateUserInfo'
,
result
);
setTimeout
(()
=>
{
setTimeout
(()
=>
{
location
.
href
=
'/pxsys/
studentManage
'
location
.
href
=
'/pxsys/'
},
500
)
},
500
)
})
})
})
})
...
...
pages/index.vue
View file @
05032210
...
@@ -3,13 +3,20 @@
...
@@ -3,13 +3,20 @@
* @eMail: 932055106@qq.com
* @eMail: 932055106@qq.com
* @Date: 2022-02-11 16:54:02
* @Date: 2022-02-11 16:54:02
* @LastEditors: tangjiale
* @LastEditors: tangjiale
* @LastEditTime: 2022-06-
09 08:45:01
* @LastEditTime: 2022-06-
28 10:30:10
-->
-->
<
template
>
<
template
>
<div
class=
"page-bg"
>
<div
class=
"page-bg"
>
<div
class=
"card"
>
<div
class=
"card"
>
你好!
<img
class=
"header"
src=
"@/assets/images/boy.png"
alt=
""
>
<div
class=
"card-text"
>
<div
class=
"welcome-tip"
>
您好,
{{
myUserInfo
&&
myUserInfo
.
userName
}}
,祝你开心每一天
</div>
<div
class=
"company"
>
{{
myUserInfo
&&
myUserInfo
.
nickName
}}
|湖南小奔体育科技有限公司
</div>
</div>
</div>
</div>
<img
class=
"index-image"
src=
"https://cdn.xiaobentiyu.cn/pc/admin/home_bg3x.png"
alt=
""
>
</div>
</div>
</
template
>
</
template
>
...
@@ -32,8 +39,30 @@
...
@@ -32,8 +39,30 @@
.page-bg
{
.page-bg
{
width
:
100%
;
width
:
100%
;
.card{
.card{
padding
:
40px
20px
;
height
:
100px
;
padding
:
0px
20px
;
background-color
:
#fff
;
background-color
:
#fff
;
align-items
:
center
;
display
:
flex
;
.header{
height
:
60px
;
width
:
60px
;
}
.card-text
{
margin-left
:
30px
;
}
.welcome-tip
{
font-size
:
22px
;
}
.company
{
margin-top
:
15px
;
font-size
:
16px
;
}
}
.index-image
{
display
:
block
;
width
:
490px
;
height
:
361px
;
margin
:
50px
auto
160px
auto
;
}
}
}
}
</
style
>
</
style
>
pages/login.vue
View file @
05032210
...
@@ -72,7 +72,7 @@
...
@@ -72,7 +72,7 @@
this
.
$service
.
base
.
getUserInfo
(
res
.
token
).
then
(
result
=>
{
this
.
$service
.
base
.
getUserInfo
(
res
.
token
).
then
(
result
=>
{
result
.
token
=
res
.
token
result
.
token
=
res
.
token
this
.
$store
.
commit
(
'updateUserInfo'
,
result
);
this
.
$store
.
commit
(
'updateUserInfo'
,
result
);
this
.
$router
.
push
(
'/
studentManage
'
);
this
.
$router
.
push
(
'/'
);
})
})
})
})
},
},
...
...
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