|
@@ -4,7 +4,7 @@
|
|
<div class="swiper">
|
|
<div class="swiper">
|
|
<el-carousel :interval="5000" type="card" height="200px" class="swiper-box">
|
|
<el-carousel :interval="5000" type="card" height="200px" class="swiper-box">
|
|
<el-carousel-item v-for="(r,index) in rotation" :key="index" class="swiper-box-item">
|
|
<el-carousel-item v-for="(r,index) in rotation" :key="index" class="swiper-box-item">
|
|
- <img :src="image(r.image)" class="swiper-img">
|
|
|
|
|
|
+ <img :src="image(r.image)" class="swiper-img" @click="newsTo(0,r)">
|
|
<div class="title">
|
|
<div class="title">
|
|
{{ r.title }}
|
|
{{ r.title }}
|
|
</div>
|
|
</div>
|
|
@@ -241,7 +241,7 @@ import slideLaR from '../components/slideLaR.vue'
|
|
},
|
|
},
|
|
// 爱心榜
|
|
// 爱心榜
|
|
getlaveListson() {
|
|
getlaveListson() {
|
|
- getlaveList({},1,10).then(res => {
|
|
|
|
|
|
+ getlaveList({page:1,limit:2}).then(res => {
|
|
this.rankingList = res.data.data
|
|
this.rankingList = res.data.data
|
|
this.$store.commit('setRankingList',res.data.data)
|
|
this.$store.commit('setRankingList',res.data.data)
|
|
})
|
|
})
|
|
@@ -249,17 +249,17 @@ import slideLaR from '../components/slideLaR.vue'
|
|
// 新闻
|
|
// 新闻
|
|
getNewsList() {
|
|
getNewsList() {
|
|
// 市红十字会新闻
|
|
// 市红十字会新闻
|
|
- getArticList({page:1,limit:20},27).then(({data}) => {
|
|
|
|
|
|
+ getArticList({},27,1,10).then(({data}) => {
|
|
this.cityNewsList = data.list
|
|
this.cityNewsList = data.list
|
|
this.$store.commit('setCityNewsList',data.list)
|
|
this.$store.commit('setCityNewsList',data.list)
|
|
})
|
|
})
|
|
// 县市区红十字新闻
|
|
// 县市区红十字新闻
|
|
- getArticList({page:1,limit:20},28).then(({data}) => {
|
|
|
|
|
|
+ getArticList({},28,1,10).then(({data}) => {
|
|
this.countyNewsList = data.list
|
|
this.countyNewsList = data.list
|
|
this.$store.commit('setCountyNewsList',data.list)
|
|
this.$store.commit('setCountyNewsList',data.list)
|
|
})
|
|
})
|
|
// 公示/公告
|
|
// 公示/公告
|
|
- getArticList({page:1,limit:20},30).then(({data}) => {
|
|
|
|
|
|
+ getArticList({},30,1,10).then(({data}) => {
|
|
this.publicityList = data.list
|
|
this.publicityList = data.list
|
|
this.$store.commit('setPublicityList',data.list)
|
|
this.$store.commit('setPublicityList',data.list)
|
|
})
|
|
})
|