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

校友故事增加查看更多

上级 23b4d169
...@@ -5,6 +5,9 @@ ...@@ -5,6 +5,9 @@
<div class="line"></div> <div class="line"></div>
<div class="text">{{ $t('home.alumni.title') }}</div> <div class="text">{{ $t('home.alumni.title') }}</div>
</div> </div>
<div class="right-text" @click="$router.push({ path: '/alumnus/story' })">
{{ $t('viewMore') }}
</div>
</div> </div>
<div :class="isScale ? 'small-tit max-width scale' : 'small-tit max-width'">{{ $t('home.alumni.des') }}</div> <div :class="isScale ? 'small-tit max-width scale' : 'small-tit max-width'">{{ $t('home.alumni.des') }}</div>
<div class="swiper-content" @mouseenter="swiperStop" @mouseleave="swiperStart"> <div class="swiper-content" @mouseenter="swiperStop" @mouseleave="swiperStart">
...@@ -116,6 +119,15 @@ export default { ...@@ -116,6 +119,15 @@ export default {
margin-left: 9px; margin-left: 9px;
} }
} }
.right-text{
margin-left: auto;
margin-top: 18px;
font-size: 16px;
font-weight: 300;
line-height: 34px;
color: #9B9B9B;
cursor: pointer;
}
} }
.small-tit{ .small-tit{
font-size: 24px; font-size: 24px;
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<div class="swiper-wrapper"> <div class="swiper-wrapper">
<div class="swiper-slide" v-for="(item, index) in listData" :key="index"> <div class="swiper-slide" v-for="(item, index) in listData" :key="index">
<app-link :item="{ news: { data: item, path: '/about/news' } }"> <app-link :item="{ news: { data: item, path: '/about/news' } }">
<img :src="item.web_img_uri"> <img :src="item.web_img_uri" />
<div class="pop-txt-box">{{ item.title }}</div> <div class="pop-txt-box">{{ item.title }}</div>
</app-link> </app-link>
</div> </div>
...@@ -31,7 +31,7 @@ export default { ...@@ -31,7 +31,7 @@ export default {
components: { components: {
appLink appLink
}, },
data () { data() {
return { return {
listData: [], listData: [],
swiperOption: { swiperOption: {
...@@ -60,7 +60,7 @@ export default { ...@@ -60,7 +60,7 @@ export default {
}, },
computed: { computed: {
swiper() { swiper() {
return this.$refs.mySwiper.swiper; return this.$refs.mySwiper.swiper
} }
}, },
methods: { methods: {
...@@ -74,20 +74,20 @@ export default { ...@@ -74,20 +74,20 @@ export default {
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.class-content{ .class-content {
padding-top: 87px; padding-top: 87px;
width: 1200px; width: 1200px;
margin: 0 auto; margin: 0 auto;
.title-content{ .title-content {
display: flex; display: flex;
.left-title{ .left-title {
display: flex; display: flex;
.line{ .line {
width: 6px; width: 6px;
height: 34px; height: 34px;
background: #AA1941; background: #aa1941;
} }
.text{ .text {
font-size: 34px; font-size: 34px;
font-weight: bold; font-weight: bold;
line-height: 34px; line-height: 34px;
...@@ -95,41 +95,43 @@ export default { ...@@ -95,41 +95,43 @@ export default {
margin-left: 9px; margin-left: 9px;
} }
} }
.right-text{ .right-text {
margin-left: auto; margin-left: auto;
margin-top: 18px; margin-top: 18px;
font-size: 16px; font-size: 16px;
font-weight: 300; font-weight: 300;
line-height: 34px; line-height: 34px;
color: #9B9B9B; color: #9b9b9b;
cursor: pointer; cursor: pointer;
// transform: translateY(-34px); // transform: translateY(-34px);
} }
} }
.swiper-content{ .swiper-content {
padding-top: 20px; padding-top: 20px;
position: relative; position: relative;
.swiper-slide{ .swiper-slide {
position: relative; position: relative;
img{ img {
width: 100%; width: 100%;
display: block; display: block;
} }
.pop-txt-box{ .pop-txt-box {
width: 100%; position: absolute;
background: rgba(0, 0, 0, .6); left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.6);
height: 76px; height: 76px;
padding-left: 33px; padding-left: 33px;
line-height: 76px; line-height: 76px;
font-size: 24px; font-size: 24px;
color: #FFFFFF; color: #ffffff;
overflow: hidden; overflow: hidden;
text-overflow:ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
transform: translateY(-76px);
} }
} }
.prev-button{ .prev-button {
position: absolute; position: absolute;
top: 50%; top: 50%;
left: 30px; left: 30px;
...@@ -139,8 +141,9 @@ export default { ...@@ -139,8 +141,9 @@ export default {
background-size: 100% 100%; background-size: 100% 100%;
z-index: 999; z-index: 999;
cursor: pointer; cursor: pointer;
transform: translateY(-50%);
} }
.next-button{ .next-button {
position: absolute; position: absolute;
top: 50%; top: 50%;
right: 30px; right: 30px;
...@@ -150,6 +153,7 @@ export default { ...@@ -150,6 +153,7 @@ export default {
background-size: 100% 100%; background-size: 100% 100%;
z-index: 999; z-index: 999;
cursor: pointer; cursor: pointer;
transform: translateY(-50%);
} }
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论