Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
A
alumni-show-h5
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
alumni-show-h5
Commits
5496137c
提交
5496137c
authored
10月 23, 2020
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
样式调整
上级
01d86d75
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
24 行增加
和
28 行删除
+24
-28
Index.vue
src/views/home/Index.vue
+23
-27
vue.config.js
vue.config.js
+1
-1
没有找到文件。
src/views/home/Index.vue
浏览文件 @
5496137c
...
...
@@ -9,12 +9,7 @@
<!-- 导航 -->
<div
class=
"nav"
>
<ul
class=
"nav-list"
>
<li
class=
"nav-item"
v-for=
"(item, index) in navList"
:key=
"index"
@
click=
"handleNavClick(item)"
>
<li
class=
"nav-item"
v-for=
"(item, index) in navList"
:key=
"index"
@
click=
"handleNavClick(item)"
>
<div
class=
"pic"
>
<img
:src=
"item.src"
/>
</div>
...
...
@@ -26,10 +21,7 @@
<div
class=
"top-bar"
>
<ul
class=
"top-bar-list"
>
<li
class=
"top-bar-item top-bar-item__group"
@
click=
"$router.push(
{ name: 'group' })">组织排行
</li>
<li
class=
"top-bar-item top-bar-item__activity"
@
click=
"$router.push(
{ name: 'activity' })"
>活动排行
</li>
<li
class=
"top-bar-item top-bar-item__activity"
@
click=
"$router.push(
{ name: 'activity' })">活动排行
</li>
</ul>
</div>
<card
title=
"热门推荐"
>
...
...
@@ -39,7 +31,7 @@
<div
class=
"popular-item-pic"
>
<img
:src=
"item.src"
/>
</div>
<div
class=
"popular-item-main"
>
{{
item
.
title
}}
</div>
<div
class=
"popular-item-main"
>
{{
item
.
title
}}
</div>
</a>
</div>
</div>
...
...
@@ -133,6 +125,8 @@ export default {
}
}
.top-bar-list
{
margin-left
:
-5px
;
margin-right
:
-5px
;
margin-bottom
:
10px
;
display
:
flex
;
justify-content
:
space-between
;
...
...
@@ -149,36 +143,38 @@ export default {
}
.top-bar-item__group
{
background
:
url('~@/assets/img/home_group_bg.png')
no-repeat
center
;
background-size
:
co
ver
;
background-size
:
co
ntain
;
}
.top-bar-item__activity
{
background
:
url('~@/assets/img/home_activity_bg.png')
no-repeat
center
;
background-size
:
co
ver
;
background-size
:
co
ntain
;
}
.popular-list
{
display
:
flex
;
overflow-x
:
auto
;
overflow-y
:
hidden
;
margin-left
:
-15px
;
margin-right
:
-15px
;
-webkit-overflow-scrolling
:
touch
;
justify-content
:
space-between
;
// display: flex;
// overflow-x: auto;
// overflow-y: hidden;
// margin-left: -15px;
// margin-right: -15px;
// -webkit-overflow-scrolling: touch;
}
.popular-item
{
flex-shrink
:
0
;
margin-bottom
:
18px
;
margin-right
:
15px
;
width
:
1
65px
;
height
:
140px
;
margin-bottom
:
0
.18rem
;
// margin-right: 0.15rem
;
width
:
1
.65rem
;
min-height
:
1
.4rem
;
background
:
#ffffff
;
box-shadow
:
0px
2px
6px
0px
rgba
(
74
,
9
,
25
,
0
.05
);
border-radius
:
6px
;
overflow
:
hidden
;
&
:first-child
{
margin-left
:
15px
;
}
//
&:first-child {
//
margin-left: 15px;
//
}
}
.popular-item-pic
{
height
:
95px
;
height
:
0
.95rem
;
img
{
width
:
100%
;
height
:
100%
;
...
...
@@ -189,6 +185,6 @@ export default {
font-size
:
13px
;
color
:
#1b1b1b
;
text-align
:
center
;
padding
:
8px
10px
;
padding
:
0
.08rem
0
.1rem
;
}
</
style
>
vue.config.js
浏览文件 @
5496137c
...
...
@@ -10,7 +10,7 @@ module.exports = {
},
proxy
:
{
'/api'
:
{
target
:
'https://alumni
2
.ezijing.com'
target
:
'https://alumni.ezijing.com'
}
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论