|
|
|
@ -116,73 +116,88 @@ |
|
|
|
|
</template> |
|
|
|
|
<ul class="news-carousel"> |
|
|
|
|
<li v-if="articles1.length"> |
|
|
|
|
<el-carousel :interval="5000" |
|
|
|
|
height="284px" |
|
|
|
|
arrow="always"> |
|
|
|
|
<el-carousel-item v-for="item in articles1" |
|
|
|
|
:key="item"> |
|
|
|
|
<img class="pic" |
|
|
|
|
src="http://10.10.11.7/images/iasf/8.png" |
|
|
|
|
alt=""> |
|
|
|
|
<div class="texts"> |
|
|
|
|
<h6 @click="toAll(modules[6].form)">{{ getColumnTitle(modules[6].form) }} <i class="el-icon-arrow-right"></i></h6> |
|
|
|
|
<div class="des-wrap"> |
|
|
|
|
<p class="meta">{{ item.source }}</p> |
|
|
|
|
<p class="meta">{{ curArticle1.source }}</p> |
|
|
|
|
<div class="des" |
|
|
|
|
@click="toArtice(item, modules[6].form)">{{ item.title }}</div> |
|
|
|
|
@click="toArtice(curArticle1, modules[6].form)">{{ curArticle1.title }}</div> |
|
|
|
|
</div> |
|
|
|
|
<p class="date">{{ item.releaseTime }}</p> |
|
|
|
|
<p class="date">{{ curArticle1.releaseTime }}</p> |
|
|
|
|
</div> |
|
|
|
|
<div class="action"> |
|
|
|
|
<i class="el-icon-arrow-left dir" |
|
|
|
|
@click.stop="prevCarousel(1)"></i> |
|
|
|
|
<ul class="inds"> |
|
|
|
|
<li v-for="i in articles1.length > 3 ? 4 : articles1.length" |
|
|
|
|
:key="i" |
|
|
|
|
:class="{active: curInd1 == i - 1}" |
|
|
|
|
@click.stop="switchCarousel(1, i - 1)"></li> |
|
|
|
|
</ul> |
|
|
|
|
<i class="el-icon-arrow-right dir" |
|
|
|
|
@click.stop="nextCarousel(1)"></i> |
|
|
|
|
</div> |
|
|
|
|
</el-carousel-item> |
|
|
|
|
</el-carousel> |
|
|
|
|
</li> |
|
|
|
|
<li v-if="articles2.length"> |
|
|
|
|
<el-carousel :interval="5000" |
|
|
|
|
height="284px" |
|
|
|
|
arrow="always"> |
|
|
|
|
<el-carousel-item v-for="item in articles2" |
|
|
|
|
:key="item"> |
|
|
|
|
<img class="pic" |
|
|
|
|
src="http://10.10.11.7/images/iasf/9.png" |
|
|
|
|
alt=""> |
|
|
|
|
<div class="texts"> |
|
|
|
|
<h6 @click="toAll(modules[7].form)">{{ getColumnTitle(modules[7].form) }} <i class="el-icon-arrow-right"></i></h6> |
|
|
|
|
<div class="des-wrap"> |
|
|
|
|
<p class="meta">{{ item.classificationName }}</p> |
|
|
|
|
<p class="meta">{{ curArticle2.classificationName }}</p> |
|
|
|
|
<div class="des" |
|
|
|
|
@click="toArtice(item, modules[7].form)">{{ item.title }}</div> |
|
|
|
|
@click="toArtice(curArticle2, modules[7].form)">{{ curArticle2.title }}</div> |
|
|
|
|
</div> |
|
|
|
|
<p class="date">{{ item.releaseTime }}</p> |
|
|
|
|
<p class="date">{{ curArticle2.releaseTime }}</p> |
|
|
|
|
</div> |
|
|
|
|
<div class="action"> |
|
|
|
|
<i class="el-icon-arrow-left dir" |
|
|
|
|
@click.stop="prevCarousel(2)"></i> |
|
|
|
|
<ul class="inds"> |
|
|
|
|
<li v-for="i in articles2.length > 3 ? 4 : articles2.length" |
|
|
|
|
:key="i" |
|
|
|
|
:class="{active: curInd2 == i - 1}" |
|
|
|
|
@click.stop="switchCarousel(2, i - 1)"></li> |
|
|
|
|
</ul> |
|
|
|
|
<i class="el-icon-arrow-right dir" |
|
|
|
|
@click.stop="nextCarousel(2)"></i> |
|
|
|
|
</div> |
|
|
|
|
</el-carousel-item> |
|
|
|
|
</el-carousel> |
|
|
|
|
</li> |
|
|
|
|
<li v-if="articles3.length"> |
|
|
|
|
<el-carousel :interval="5000" |
|
|
|
|
height="284px" |
|
|
|
|
arrow="always"> |
|
|
|
|
<el-carousel-item v-for="item in articles3" |
|
|
|
|
:key="item"> |
|
|
|
|
<img class="pic" |
|
|
|
|
src="http://10.10.11.7/images/iasf/10.png" |
|
|
|
|
alt=""> |
|
|
|
|
<div class="texts"> |
|
|
|
|
<h6 @click="toAll(modules[8].form)">{{ getColumnTitle(modules[8].form) }} <i class="el-icon-arrow-right"></i></h6> |
|
|
|
|
<div class="activity"> |
|
|
|
|
<div v-if="item.activityStartTime" |
|
|
|
|
<div v-if="curArticle3.activityStartTime" |
|
|
|
|
class="date-y"> |
|
|
|
|
<p class="d">{{ item.activityStartTime.split(' ')[0].split('-')[2] }}</p> |
|
|
|
|
<p class="y">{{ item.activityStartTime.split(' ')[0].split('-')[0] + '-' + item.activityStartTime.split(' ')[0].split('-')[1] }}</p> |
|
|
|
|
<p class="d">{{ curArticle3.activityStartTime.split(' ')[0].split('-')[2] }}</p> |
|
|
|
|
<p class="y">{{ curArticle3.activityStartTime.split(' ')[0].split('-')[0] + '-' + curArticle3.activityStartTime.split(' ')[0].split('-')[1] }}</p> |
|
|
|
|
</div> |
|
|
|
|
<div class="des-wrap"> |
|
|
|
|
<p class="meta">{{ item.classificationName }}</p> |
|
|
|
|
<p class="meta">{{ curArticle3.classificationName }}</p> |
|
|
|
|
<div class="des" |
|
|
|
|
@click="toArtice(item, modules[8].form)">{{ item.title }}</div> |
|
|
|
|
@click="toArtice(curArticle3, modules[8].form)">{{ curArticle3.title }}</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</el-carousel-item> |
|
|
|
|
</el-carousel> |
|
|
|
|
<div class="action"> |
|
|
|
|
<i class="el-icon-arrow-left dir" |
|
|
|
|
@click.stop="prevCarousel(3)"></i> |
|
|
|
|
<ul class="inds"> |
|
|
|
|
<li v-for="i in articles3.length > 3 ? 4 : articles3.length" |
|
|
|
|
:key="i" |
|
|
|
|
:class="{active: curInd3 == i - 1}" |
|
|
|
|
@click.stop="switchCarousel(3, i - 1)"></li> |
|
|
|
|
</ul> |
|
|
|
|
<i class="el-icon-arrow-right dir" |
|
|
|
|
@click.stop="nextCarousel(3)"></i> |
|
|
|
|
</div> |
|
|
|
|
</li> |
|
|
|
|
</ul> |
|
|
|
|
</div> |
|
|
|
@ -674,7 +689,7 @@ export default { |
|
|
|
|
left: 0; |
|
|
|
|
width: 100%; |
|
|
|
|
height: 100%; |
|
|
|
|
padding: 50px; |
|
|
|
|
padding: 50px 30px; |
|
|
|
|
color: #fff; |
|
|
|
|
background-color: rgba(0, 0, 0, 0.3); |
|
|
|
|
} |
|
|
|
@ -710,6 +725,7 @@ export default { |
|
|
|
|
margin-bottom: 5px; |
|
|
|
|
} |
|
|
|
|
.des-wrap { |
|
|
|
|
max-width: calc(100% - 100px); |
|
|
|
|
height: auto; |
|
|
|
|
margin: 0; |
|
|
|
|
} |
|
|
|
|