提交 5496137c authored 作者: 王鹏飞's avatar 王鹏飞

样式调整

上级 01d86d75
...@@ -9,12 +9,7 @@ ...@@ -9,12 +9,7 @@
<!-- 导航 --> <!-- 导航 -->
<div class="nav"> <div class="nav">
<ul class="nav-list"> <ul class="nav-list">
<li <li class="nav-item" v-for="(item, index) in navList" :key="index" @click="handleNavClick(item)">
class="nav-item"
v-for="(item, index) in navList"
:key="index"
@click="handleNavClick(item)"
>
<div class="pic"> <div class="pic">
<img :src="item.src" /> <img :src="item.src" />
</div> </div>
...@@ -26,10 +21,7 @@ ...@@ -26,10 +21,7 @@
<div class="top-bar"> <div class="top-bar">
<ul class="top-bar-list"> <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__group" @click="$router.push({ name: 'group' })">组织排行</li>
<li <li class="top-bar-item top-bar-item__activity" @click="$router.push({ name: 'activity' })">活动排行</li>
class="top-bar-item top-bar-item__activity"
@click="$router.push({ name: 'activity' })"
>活动排行</li>
</ul> </ul>
</div> </div>
<card title="热门推荐"> <card title="热门推荐">
...@@ -39,7 +31,7 @@ ...@@ -39,7 +31,7 @@
<div class="popular-item-pic"> <div class="popular-item-pic">
<img :src="item.src" /> <img :src="item.src" />
</div> </div>
<div class="popular-item-main">{{item.title}}</div> <div class="popular-item-main">{{ item.title }}</div>
</a> </a>
</div> </div>
</div> </div>
...@@ -133,6 +125,8 @@ export default { ...@@ -133,6 +125,8 @@ export default {
} }
} }
.top-bar-list { .top-bar-list {
margin-left: -5px;
margin-right: -5px;
margin-bottom: 10px; margin-bottom: 10px;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
...@@ -149,36 +143,38 @@ export default { ...@@ -149,36 +143,38 @@ export default {
} }
.top-bar-item__group { .top-bar-item__group {
background: url('~@/assets/img/home_group_bg.png') no-repeat center; background: url('~@/assets/img/home_group_bg.png') no-repeat center;
background-size: cover; background-size: contain;
} }
.top-bar-item__activity { .top-bar-item__activity {
background: url('~@/assets/img/home_activity_bg.png') no-repeat center; background: url('~@/assets/img/home_activity_bg.png') no-repeat center;
background-size: cover; background-size: contain;
} }
.popular-list { .popular-list {
display: flex; display: flex;
overflow-x: auto; justify-content: space-between;
overflow-y: hidden; // display: flex;
margin-left: -15px; // overflow-x: auto;
margin-right: -15px; // overflow-y: hidden;
-webkit-overflow-scrolling: touch; // margin-left: -15px;
// margin-right: -15px;
// -webkit-overflow-scrolling: touch;
} }
.popular-item { .popular-item {
flex-shrink: 0; flex-shrink: 0;
margin-bottom: 18px; margin-bottom: 0.18rem;
margin-right: 15px; // margin-right: 0.15rem;
width: 165px; width: 1.65rem;
height: 140px; min-height: 1.4rem;
background: #ffffff; background: #ffffff;
box-shadow: 0px 2px 6px 0px rgba(74, 9, 25, 0.05); box-shadow: 0px 2px 6px 0px rgba(74, 9, 25, 0.05);
border-radius: 6px; border-radius: 6px;
overflow: hidden; overflow: hidden;
&:first-child { // &:first-child {
margin-left: 15px; // margin-left: 15px;
} // }
} }
.popular-item-pic { .popular-item-pic {
height: 95px; height: 0.95rem;
img { img {
width: 100%; width: 100%;
height: 100%; height: 100%;
...@@ -189,6 +185,6 @@ export default { ...@@ -189,6 +185,6 @@ export default {
font-size: 13px; font-size: 13px;
color: #1b1b1b; color: #1b1b1b;
text-align: center; text-align: center;
padding: 8px 10px; padding: 0.08rem 0.1rem;
} }
</style> </style>
...@@ -10,7 +10,7 @@ module.exports = { ...@@ -10,7 +10,7 @@ module.exports = {
}, },
proxy: { proxy: {
'/api': { '/api': {
target: 'https://alumni2.ezijing.com' target: 'https://alumni.ezijing.com'
} }
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论