第一版绿谷官网
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

200 lines
5.1 KiB

<!--
Copyright (c) 2020.
author: song
email: 15235360226@163.com
-->
<template>
<div :class="i === 1 ? 'index-wrap' : 'index-wrap1'">
<div class="d-flex flex-column" v-if="i === 0">
<div class="d-flex flex-nowrap align-center baseColor">
<span class="font-bold-20">行业资讯</span>
<!-- <img class="bullhorn ml-3" src="@/assets/bullhorn.png" /> -->
<div class="flex-1"></div>
<a-button
@click="$router.push('/ItInformation')"
class="d-flex align-end font-16 baseColor pa-0"
style="display: inline-block; font-size: 12px"
type="link"
>
更多
<img src="../../views/FirstPages/img/right.png" style="width: 7px; height: 10px; margin: 0 10px" />
<!-- <a-icon style="font-size: 12px" type="right" /> -->
</a-button>
</div>
<a-divider class="my-3" />
</div>
<!-- <div class="d-flex flex-column" v-if="i === 1">
<div class="d-flex flex-nowrap align-center baseColor">
<span class="font-bold-24">活动公告</span>
<img class="bullhorn ml-4" src="@/assets/bullhorn.png" />
<div class="flex-1"></div>
<a-button
@click="$router.push('/Activity')"
class="d-flex align-end font-16 baseColor pa-0"
style="display: inline-block;"
type="link"
>
more
<a-icon style="font-size:12px" type="right" />
</a-button>
</div>
<a-divider class="my-3" />
</div> -->
<div class="d-flex flex-column" v-if="i === 2">
<div class="d-flex flex-nowrap align-center baseColor">
<span class="font-bold-20">企业简报</span>
<!-- <img class="bullhorn ml-3" src="@/assets/bullhorn.png" /> -->
<div class="flex-1"></div>
<a-button
@click="$router.push('/Briefing')"
class="d-flex align-end font-16 baseColor pa-0"
style="display: inline-block; font-size: 12px"
type="link"
>
更多
<img src="../../views/FirstPages/img/right.png" style="width: 7px; height: 10px; margin: 0 10px" />
</a-button>
</div>
<a-divider class="my-3" />
</div>
<div class="policy-box" v-if="lists && lists[i].news && lists[i].news.length > 0">
<div :key="index" class="div-box" v-for="(item, index) in lists[i].news">
<div @click="jumpDetails(item, i)" class="d-flex flex-nowrap" style="cursor: pointer">
<div class="d-flex flex-row justify-center align-center" style="margin-bottom: 5px">
<div class="original"></div>
<div class="item-title" style="margin: 5px; font-size: 20px; color: gray">{{ item.title }}</div>
<!-- <div class="item-content" v-if="i === 1">
<span v-dompurify-html="item.intro"></span>
</div> -->
<!-- <div class="item-content1" v-else>
<span v-dompurify-html="item.content || '暂无内容'"></span>
</div> -->
</div>
</div>
</div>
</div>
<div v-else>
<a-skeleton />
</div>
</div>
</template>
<script>
import { mapState, mapMutations } from 'vuex';
export default {
name: 'IndexNewList',
props: {
i: {
type: Number,
default: 0,
},
lists: {
type: Array,
default: () => [],
},
},
data() {
return { monthEnglish: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Spt', 'Oct', 'Nov', 'Dec'] };
},
methods: {
...mapMutations('home', ['setActDetail']),
// 跳转到详情界面
jumpDetails(item, i) {
this.setActDetail(item);
if (i === 0) {
this.$router.push('/ItDetails');
}
if (i === 2) {
this.$router.push('/BriefingDetails');
}
if (i === 1) {
this.$router.push('/ActDetails');
}
},
},
};
</script>
<style scoped lang="stylus">
.index-wrap {
width: 90%;
margin: 15px auto 15px auto;
overflow: hidden;
opacity: 1;
}
.index-wrap1 {
width: 96%;
margin: 15px auto 15px auto;
overflow: hidden;
opacity: 1;
}
.bullhorn {
width: 24px;
height: 24px;
}
.policy-box {
.div-box {
position: relative;
// background: #fff;
.time {
color: rgba(0, 0, 0, 0.25);
.day {
position: relative;
top: -15px;
}
}
}
}
.item-title {
overflow: hidden;
display: -webkit-box;
font-size: 14px;
color: rgba(0, 0, 0, 0.65);
font-family: Microsoft YaHei;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
}
.original {
margin: 0 10px 0 10px;
position: relative;
top: 1px;
left: 0;
width: 5px;
height: 5px;
border-radius: 5px;
background: #2fb5ca;
}
.item-content {
overflow: hidden;
display: -webkit-box;
line-height: 25px;
font-size: 12px;
color: rgba(0, 0, 0, 0.45);
font-family: Microsoft YaHei;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.item-content1 {
overflow: hidden;
display: -webkit-box;
margin-top: 8px;
line-height: 28px;
font-size: 12px;
color: rgba(0, 0, 0, 0.45);
font-family: Microsoft YaHei;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
}
</style>