|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div class="home">
|
|
<div class="home">
|
|
|
<banner></banner>
|
|
<banner></banner>
|
|
|
- <div class="center-content" style="padding-top: 80px;">
|
|
|
|
|
|
|
+ <div class="center-content" style="padding-top: 80px">
|
|
|
<div class="news">
|
|
<div class="news">
|
|
|
<div class="carousel news-item" @mouseover="autoplay = false" @mouseout="autoplay = true">
|
|
<div class="carousel news-item" @mouseover="autoplay = false" @mouseout="autoplay = true">
|
|
|
<el-carousel ref="carousel" height="360px" arrow="never" trigger="hover" @change="changeCarousl">
|
|
<el-carousel ref="carousel" height="360px" arrow="never" trigger="hover" @change="changeCarousl">
|
|
@@ -9,7 +9,7 @@
|
|
|
<el-image
|
|
<el-image
|
|
|
:src="item.img"
|
|
:src="item.img"
|
|
|
@click="all('/news')"
|
|
@click="all('/news')"
|
|
|
- style="width: 100%; height: 100%; cursor: pointer;"
|
|
|
|
|
|
|
+ style="width: 100%; height: 100%; cursor: pointer"
|
|
|
fit="cover"
|
|
fit="cover"
|
|
|
></el-image>
|
|
></el-image>
|
|
|
|
|
|
|
@@ -58,8 +58,8 @@
|
|
|
</router-link>
|
|
</router-link>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="empty" v-else>
|
|
<div class="empty" v-else>
|
|
|
- <i class="el-icon-takeaway-box" style="margin-left: 24px;"></i>
|
|
|
|
|
- <div style="font-size: 20px;">暂无数据</div>
|
|
|
|
|
|
|
+ <i class="el-icon-takeaway-box" style="margin-left: 24px"></i>
|
|
|
|
|
+ <div style="font-size: 20px">暂无数据</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -322,7 +322,11 @@ export default {
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
|
this.$http
|
|
this.$http
|
|
|
- .post('/policyLaw/all', { query: { category: 'NEWS', typeSettingId: 324 } }, { body: 'json' })
|
|
|
|
|
|
|
+ .post(
|
|
|
|
|
+ '/policyLaw/all',
|
|
|
|
|
+ { query: { category: 'NEWS', typeSettingId: 324 }, sort: 'issuedAt,desc' },
|
|
|
|
|
+ { body: 'json' }
|
|
|
|
|
+ )
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
this.newsList = res.content;
|
|
this.newsList = res.content;
|
|
|
});
|
|
});
|
|
@@ -340,7 +344,11 @@ export default {
|
|
|
let name = item == '平台动态' ? 324 : 325;
|
|
let name = item == '平台动态' ? 324 : 325;
|
|
|
const typeSettingId = name;
|
|
const typeSettingId = name;
|
|
|
this.$http
|
|
this.$http
|
|
|
- .post('/policyLaw/all', { query: { category: 'NEWS', typeSettingId } }, { body: 'json' })
|
|
|
|
|
|
|
+ .post(
|
|
|
|
|
+ '/policyLaw/all',
|
|
|
|
|
+ { query: { category: 'NEWS', typeSettingId }, sort: 'issuedAt,desc' },
|
|
|
|
|
+ { body: 'json' }
|
|
|
|
|
+ )
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
this.newsList = res.content;
|
|
this.newsList = res.content;
|
|
|
});
|
|
});
|