|
|
@ -1,21 +1,12 @@ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<div :class="['right', { party }]"> |
|
|
|
<div :class="['right', { party }]"> |
|
|
|
<el-tree class="column" |
|
|
|
<el-tree class="column" ref="column" :data="columns" highlight-current :expand-on-click-node="false" |
|
|
|
ref="column" |
|
|
|
:props="defaultProps" node-key="id" @node-click="columnTo"></el-tree> |
|
|
|
:data="columns" |
|
|
|
|
|
|
|
highlight-current |
|
|
|
|
|
|
|
:expand-on-click-node="false" |
|
|
|
|
|
|
|
:props="defaultProps" |
|
|
|
|
|
|
|
node-key="id" |
|
|
|
|
|
|
|
@node-click="columnTo"></el-tree> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<template v-if="site == 2"> |
|
|
|
<template v-if="site == 2"> |
|
|
|
<p class="l-title">{{ $t('column.latestNews') }}</p> |
|
|
|
<p class="l-title">{{ $t('column.latestNews') }}</p> |
|
|
|
<ul class="list"> |
|
|
|
<ul class="list"> |
|
|
|
<li v-for="(item, i) in site2News" |
|
|
|
<li v-for="(item, i) in site2News" :key="i" :title="item.title" @click="toArtice(item)"> |
|
|
|
:key="i" |
|
|
|
|
|
|
|
:title="item.title" |
|
|
|
|
|
|
|
@click="toArtice(item)"> |
|
|
|
|
|
|
|
<p class="text">{{ item.title }}</p> |
|
|
|
<p class="text">{{ item.title }}</p> |
|
|
|
<span class="date">{{ item.releaseTime }}</span> |
|
|
|
<span class="date">{{ item.releaseTime }}</span> |
|
|
|
</li> |
|
|
|
</li> |
|
|
@ -24,10 +15,7 @@ |
|
|
|
<template v-else> |
|
|
|
<template v-else> |
|
|
|
<p class="l-title">{{ $t('column.hot') }}</p> |
|
|
|
<p class="l-title">{{ $t('column.hot') }}</p> |
|
|
|
<ul class="list"> |
|
|
|
<ul class="list"> |
|
|
|
<li v-for="(item, i) in hots" |
|
|
|
<li v-for="(item, i) in hots" :key="i" :title="item.title" @click="toArtice(item)"> |
|
|
|
:key="i" |
|
|
|
|
|
|
|
:title="item.title" |
|
|
|
|
|
|
|
@click="toArtice(item)"> |
|
|
|
|
|
|
|
<p class="text">{{ item.title }}</p> |
|
|
|
<p class="text">{{ item.title }}</p> |
|
|
|
<span class="date">{{ item.releaseTime }}</span> |
|
|
|
<span class="date">{{ item.releaseTime }}</span> |
|
|
|
</li> |
|
|
|
</li> |
|
|
@ -35,10 +23,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
<p class="l-title">{{ $t('column.latestNews') }}</p> |
|
|
|
<p class="l-title">{{ $t('column.latestNews') }}</p> |
|
|
|
<ul class="list"> |
|
|
|
<ul class="list"> |
|
|
|
<li v-for="(item, i) in news" |
|
|
|
<li v-for="(item, i) in news" :key="i" :title="item.title" @click="toArtice(item)"> |
|
|
|
:key="i" |
|
|
|
|
|
|
|
:title="item.title" |
|
|
|
|
|
|
|
@click="toArtice(item)"> |
|
|
|
|
|
|
|
<p class="text">{{ item.title }}</p> |
|
|
|
<p class="text">{{ item.title }}</p> |
|
|
|
<span class="date">{{ item.releaseTime }}</span> |
|
|
|
<span class="date">{{ item.releaseTime }}</span> |
|
|
|
</li> |
|
|
|
</li> |
|
|
@ -91,7 +76,7 @@ export default { |
|
|
|
siteId: this.site, |
|
|
|
siteId: this.site, |
|
|
|
columnIds: [411, 412, 413], |
|
|
|
columnIds: [411, 412, 413], |
|
|
|
pageNum: 1, |
|
|
|
pageNum: 1, |
|
|
|
pageSize: 8, |
|
|
|
pageSize: 5, |
|
|
|
})).then(({ data }) => { |
|
|
|
})).then(({ data }) => { |
|
|
|
this.site2News = Util.removeTag(data.records); |
|
|
|
this.site2News = Util.removeTag(data.records); |
|
|
|
}).catch((res) => { }); |
|
|
|
}).catch((res) => { }); |
|
|
@ -111,10 +96,12 @@ export default { |
|
|
|
<style lang="scss" scoped> |
|
|
|
<style lang="scss" scoped> |
|
|
|
.right { |
|
|
|
.right { |
|
|
|
width: 20%; |
|
|
|
width: 20%; |
|
|
|
|
|
|
|
|
|
|
|
/deep/ .el-tree-node__label { |
|
|
|
/deep/ .el-tree-node__label { |
|
|
|
font-size: 0.78rem; |
|
|
|
font-size: 0.78rem; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.column { |
|
|
|
.column { |
|
|
|
width: 100%; |
|
|
|
width: 100%; |
|
|
|
margin-bottom: 1.56rem; |
|
|
|
margin-bottom: 1.56rem; |
|
|
@ -122,36 +109,45 @@ export default { |
|
|
|
.el-tree-node:focus>.el-tree-node__content { |
|
|
|
.el-tree-node:focus>.el-tree-node__content { |
|
|
|
background-color: #e5edf8; |
|
|
|
background-color: #e5edf8; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/deep/.el-tree-node__content { |
|
|
|
/deep/.el-tree-node__content { |
|
|
|
height: 2.75rem; |
|
|
|
height: 2.75rem; |
|
|
|
background-color: #e5edf8; |
|
|
|
background-color: #e5edf8; |
|
|
|
border-bottom: 2px solid #fff; |
|
|
|
border-bottom: 2px solid #fff; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/deep/.el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content { |
|
|
|
/deep/.el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content { |
|
|
|
color: #fff; |
|
|
|
color: #fff; |
|
|
|
background-color: #0f5698; |
|
|
|
background-color: #0f5698; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.list { |
|
|
|
.list { |
|
|
|
margin-bottom: 20px; |
|
|
|
margin-bottom: 20px; |
|
|
|
|
|
|
|
|
|
|
|
li { |
|
|
|
li { |
|
|
|
padding: 16px 0; |
|
|
|
padding: 16px 0; |
|
|
|
border-bottom: 1px solid #d8d8d8; |
|
|
|
border-bottom: 1px solid #d8d8d8; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.text { |
|
|
|
.text { |
|
|
|
margin-bottom: 5px; |
|
|
|
margin-bottom: 5px; |
|
|
|
font-size: 14px; |
|
|
|
font-size: 14px; |
|
|
|
cursor: pointer; |
|
|
|
cursor: pointer; |
|
|
|
|
|
|
|
|
|
|
|
&:hover { |
|
|
|
&:hover { |
|
|
|
color: $main-color; |
|
|
|
color: $main-color; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.date { |
|
|
|
.date { |
|
|
|
font-size: 12px; |
|
|
|
font-size: 12px; |
|
|
|
color: #999; |
|
|
|
color: #999; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.party { |
|
|
|
.party { |
|
|
|
|
|
|
|
|
|
|
|
.el-tree-node:focus>.el-tree-node__content, |
|
|
|
.el-tree-node:focus>.el-tree-node__content, |
|
|
|
/deep/.el-tree-node__content { |
|
|
|
/deep/.el-tree-node__content { |
|
|
|
background-color: $lightPartyTheme; |
|
|
|
background-color: $lightPartyTheme; |
|
|
|