Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
S
saas-lab
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
saas-lab
Commits
b3012ecb
提交
b3012ecb
authored
10月 19, 2022
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: 开发大赛首页
上级
fad14548
隐藏空白字符变更
内嵌
并排
正在显示
10 个修改的文件
包含
107 行增加
和
2 行删除
+107
-2
game_admin_home_icon_1.png
public/images/game_admin_home_icon_1.png
+0
-0
game_admin_home_icon_2.png
public/images/game_admin_home_icon_2.png
+0
-0
game_admin_home_icon_3.png
public/images/game_admin_home_icon_3.png
+0
-0
game_admin_home_icon_4.png
public/images/game_admin_home_icon_4.png
+0
-0
game_student_home_icon_1.png
public/images/game_student_home_icon_1.png
+0
-0
game_student_home_icon_2.png
public/images/game_student_home_icon_2.png
+0
-0
game_student_home_icon_3.png
public/images/game_student_home_icon_3.png
+0
-0
game_student_home_icon_4.png
public/images/game_student_home_icon_4.png
+0
-0
Footer.vue
src/components/layout/Footer.vue
+1
-0
Game.vue
src/modules/home/views/Game.vue
+106
-2
没有找到文件。
public/images/game_admin_home_icon_1.png
0 → 100644
浏览文件 @
b3012ecb
124.1 KB
public/images/game_admin_home_icon_2.png
0 → 100644
浏览文件 @
b3012ecb
118.2 KB
public/images/game_admin_home_icon_3.png
0 → 100644
浏览文件 @
b3012ecb
129.6 KB
public/images/game_admin_home_icon_4.png
0 → 100644
浏览文件 @
b3012ecb
130.0 KB
public/images/game_student_home_icon_1.png
0 → 100644
浏览文件 @
b3012ecb
141.3 KB
public/images/game_student_home_icon_2.png
0 → 100644
浏览文件 @
b3012ecb
118.2 KB
public/images/game_student_home_icon_3.png
0 → 100644
浏览文件 @
b3012ecb
129.6 KB
public/images/game_student_home_icon_4.png
0 → 100644
浏览文件 @
b3012ecb
118.5 KB
src/components/layout/Footer.vue
浏览文件 @
b3012ecb
...
...
@@ -13,6 +13,7 @@ export default { name: 'AppFooter' }
padding
:
10px
0
;
font-size
:
14px
;
line-height
:
30px
;
color
:
#707070
;
text-align
:
center
;
background-color
:
#fff
;
}
...
...
src/modules/home/views/Game.vue
浏览文件 @
b3012ecb
<
script
setup
lang=
"ts"
></
script
>
<
script
setup
lang=
"ts"
>
import
{
useUserStore
}
from
'@/stores/user'
const
studentMenus
=
[
{
title
:
'我的大赛'
,
href
:
'/student/contest'
,
icon
:
'/images/game_student_home_icon_1.png'
},
{
title
:
'理论知识学习'
,
href
:
'https://saas-learn.ezijing.com'
,
icon
:
'/images/game_student_home_icon_2.png'
},
{
title
:
'1+X考试训练'
,
href
:
'https://x-learning.ezijing.com'
,
icon
:
'/images/game_student_home_icon_3.png'
},
{
title
:
'大赛成绩查询'
,
href
:
'/student/contest/score'
,
icon
:
'/images/game_student_home_icon_4.png'
}
]
const
adminMenus
=
[
{
title
:
'大赛答疑'
,
href
:
'/admin/contest/discuss'
,
icon
:
'/images/game_admin_home_icon_1.png'
},
{
title
:
'大赛评分'
,
href
:
'/admin/contest/check'
,
icon
:
'/images/game_admin_home_icon_2.png'
},
{
title
:
'大赛成绩发布'
,
href
:
'/admin/contest/score'
,
icon
:
'/images/game_admin_home_icon_3.png'
},
{
title
:
'大赛成绩分析'
,
href
:
'/admin/contest/analyze/score'
,
icon
:
'/images/game_admin_home_icon_4.png'
}
]
const
userStore
=
useUserStore
()
const
menus
=
computed
(()
=>
{
return
userStore
.
role
?.
id
===
1
?
studentMenus
:
adminMenus
})
</
script
>
<
template
>
<div></div>
<div
class=
"card-list"
>
<div
class=
"card"
v-for=
"(item, index) in menus"
:key=
"index"
>
<div
class=
"icon"
><img
:src=
"item.icon"
/></div>
<div
class=
"title"
>
{{
item
.
title
}}
</div>
<div
class=
"button"
><a
:href=
"item.href"
>
点击进入
</a></div>
</div>
</div>
</
template
>
<
style
lang=
"scss"
scoped
>
.card-list
{
height
:
100%
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
gap
:
30px
;
}
.card
{
width
:
310px
;
height
:
520px
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
justify-content
:
center
;
background-color
:
#fff
;
.icon
{
width
:
246px
;
height
:
238px
;
img
{
width
:
100%
;
height
:
100%
;
object-fit
:
contain
;
}
}
.title
{
margin
:
70px
0
30px
;
font-size
:
24px
;
color
:
#578ef9
;
}
.button
{
width
:
130px
;
height
:
40px
;
font-size
:
16px
;
line-height
:
40px
;
color
:
#ffffff
;
background
:
linear-gradient
(
297deg
,
#83f0eb
0%
,
#5584f9
100%
);
text-align
:
center
;
border-radius
:
25px
;
a
{
display
:
block
;
}
}
}
</
style
>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论