|
|
|
|
@ -5,7 +5,9 @@
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<div class="news__header">
|
|
|
|
|
<div class="news__header--diamond">热点资料</div>
|
|
|
|
|
<div class="news__header--line"></div>
|
|
|
|
|
<div class="news__header--line">
|
|
|
|
|
<span @click="toList({ sort_name: 'dianjiliang' })">更多<i class="el-icon-d-arrow-right" style="font-weight: 600;"></i></span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<el-skeleton animated :loading="loading">
|
|
|
|
|
<template #template>
|
|
|
|
|
@ -15,7 +17,7 @@
|
|
|
|
|
</template>
|
|
|
|
|
<template>
|
|
|
|
|
<ul class="news__list">
|
|
|
|
|
<li class="news__list--item" v-for="i in details.hot">
|
|
|
|
|
<li class="news__list--item" v-for="i in details.hot" @click="toList({ sort_name: 'dianjiliang' })">
|
|
|
|
|
<div>{{ i.biaoti }}</div>
|
|
|
|
|
<div>{{ $moment(new Date(i.created_at)).format("YYYY-MM-DD") }}</div>
|
|
|
|
|
</li>
|
|
|
|
|
@ -28,7 +30,9 @@
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<div class="news__header">
|
|
|
|
|
<div class="news__header--diamond">最新资料</div>
|
|
|
|
|
<div class="news__header--line"></div>
|
|
|
|
|
<div class="news__header--line">
|
|
|
|
|
<span @click="toList({ sort_name: 'created_at' })">更多<i class="el-icon-d-arrow-right" style="font-weight: 600;"></i></span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<el-skeleton animated :loading="loading">
|
|
|
|
|
@ -39,7 +43,7 @@
|
|
|
|
|
</template>
|
|
|
|
|
<template>
|
|
|
|
|
<ul class="news__list">
|
|
|
|
|
<li class="news__list--item" v-for="i in details.last">
|
|
|
|
|
<li class="news__list--item" v-for="i in details.last" @click="toList({ sort_name: 'created_at' })">
|
|
|
|
|
<div>{{ i.biaoti }}</div>
|
|
|
|
|
<div>{{ $moment(new Date(i.created_at)).format("YYYY-MM-DD") }}</div>
|
|
|
|
|
</li>
|
|
|
|
|
@ -75,7 +79,7 @@
|
|
|
|
|
<div>
|
|
|
|
|
<div class="department__list">
|
|
|
|
|
<div v-for="item in departments" class="department__list--item" @click="toList({ dept:item })">
|
|
|
|
|
<div>{{ item.name }}</div>
|
|
|
|
|
<p>{{ item.name }}</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="department__list--item">
|
|
|
|
|
<div @click="$router.push('/index/department')">更多...</div>
|
|
|
|
|
@ -200,10 +204,12 @@ export default {
|
|
|
|
|
console.log(this.labelGroup);
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
toList ({ tag, dept }) {
|
|
|
|
|
tag?.id ? this.$store.commit('reception/SET_SELECTED',{ key: 'tag_id', value: tag.id }) : ''
|
|
|
|
|
dept?.id ? this.$store.commit('reception/SET_SELECTED',{ key: 'dept_id', value: dept.id }) : ''
|
|
|
|
|
|
|
|
|
|
toList ({ tag, dept, leixing, sort_name }) {
|
|
|
|
|
console.log(111, sort_name, leixing)
|
|
|
|
|
tag?.id ? this.$store.commit('reception/SET_SELECTED',{ key: 'tag_id', value: tag.id, refresh: true }) : ''
|
|
|
|
|
dept?.id ? this.$store.commit('reception/SET_SELECTED',{ key: 'dept_id', value: dept.id, refresh: true }) : ''
|
|
|
|
|
leixing ? this.$store.commit('reception/SET_SELECTED',{ key: 'leixing', value: leixing }) : ''
|
|
|
|
|
sort_name ? this.$store.commit('reception/SET_SELECTED',{ key: 'sort_name', value: sort_name, refresh: true }) : ''
|
|
|
|
|
this.$router.push(`/index/list1?${this.$store.getters.select}`)
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
@ -269,10 +275,14 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
&--line {
|
|
|
|
|
flex: 1;
|
|
|
|
|
height: 1px;
|
|
|
|
|
background: #c7d9e5;
|
|
|
|
|
color: #999;
|
|
|
|
|
text-align: right;
|
|
|
|
|
border-bottom: 1px solid #c7d9e5;
|
|
|
|
|
|
|
|
|
|
margin-left: 10px;
|
|
|
|
|
& > span {
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -389,26 +399,29 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&__list {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
align-items: center;
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-template-columns: repeat(5, 1fr);
|
|
|
|
|
grid-gap: 17px;
|
|
|
|
|
|
|
|
|
|
margin-top: 41px;
|
|
|
|
|
|
|
|
|
|
&--item {
|
|
|
|
|
background: #fff;
|
|
|
|
|
width: 176px;
|
|
|
|
|
//width: 176px;
|
|
|
|
|
height: 80px;
|
|
|
|
|
color: #1a5ca3;
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
line-height: 80px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
transition: all 0.2ms;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
|
|
|
|
margin-bottom: 20px;
|
|
|
|
|
padding: 0 10px;
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
color: #fff;
|
|
|
|
|
@ -459,7 +472,7 @@ export default {
|
|
|
|
|
transition: all 0.4s;
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
transform: scale(1.1, 1.1);
|
|
|
|
|
transform: scale(1.05, 1.05);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
&__left--single {
|
|
|
|
|
|