2020-06-07 10:28:34 +08:00
|
|
|
<template>
|
|
|
|
<div>
|
|
|
|
<Header></Header>
|
2020-06-10 11:19:26 +08:00
|
|
|
<IndexSwiper></IndexSwiper>
|
2020-06-07 10:28:34 +08:00
|
|
|
<Dynamic :dynamic="dynamic"></Dynamic>
|
|
|
|
<IndexService :activityList="activityList"></IndexService>
|
2020-06-10 11:19:26 +08:00
|
|
|
<!--<IndexSpecialties :specialties="specialties"></IndexSpecialties>-->
|
2020-06-07 10:28:34 +08:00
|
|
|
<DigitalResource :literature="literature"></DigitalResource>
|
2020-06-10 11:19:26 +08:00
|
|
|
<IndexVideo :exhibition="exhibition"></IndexVideo>
|
2020-06-07 10:28:34 +08:00
|
|
|
<Footer></Footer>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import Header from '@/common/components/Header'
|
|
|
|
import IndexSwiper from './components/Swiper'
|
|
|
|
import Dynamic from './components/IndexDynamic'
|
|
|
|
import IndexService from './components/IndexService'
|
|
|
|
import IndexSpecialties from './components/IndexSpecialties'
|
|
|
|
import DigitalResource from './components/DigitalResource'
|
|
|
|
import IndexVideo from './components/IndexVideo'
|
|
|
|
import Footer from '@/common/components/Footer'
|
|
|
|
import axios from 'axios'
|
|
|
|
export default {
|
|
|
|
name: 'Index',
|
|
|
|
components: {
|
|
|
|
Header,
|
|
|
|
IndexSwiper,
|
|
|
|
Dynamic,
|
|
|
|
IndexService,
|
|
|
|
IndexSpecialties,
|
|
|
|
DigitalResource,
|
|
|
|
IndexVideo,
|
|
|
|
Footer
|
|
|
|
},
|
|
|
|
data () {
|
|
|
|
return {
|
|
|
|
bannerList: [],
|
|
|
|
dynamic: {
|
|
|
|
picNews: {},
|
|
|
|
news: []
|
|
|
|
},
|
|
|
|
activityList: [],
|
|
|
|
specialties: [],
|
2020-06-10 11:19:26 +08:00
|
|
|
exhibition: [],
|
2020-06-07 10:28:34 +08:00
|
|
|
literature: [],
|
|
|
|
dynamicsPage: {
|
|
|
|
page: 1,
|
|
|
|
rows: 5
|
|
|
|
},
|
|
|
|
activityPage: {
|
|
|
|
page: 1,
|
|
|
|
rows: 8
|
2020-06-10 11:19:26 +08:00
|
|
|
},
|
|
|
|
exhibitionPage: {
|
|
|
|
page: 1,
|
|
|
|
rows: 8,
|
|
|
|
totalPage: 1,
|
|
|
|
newsDirectoriesId: 'f1d5d313-f728-4dda-9843-1116d97e17b0'
|
2020-06-07 10:28:34 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
getDynamicsList: function () {
|
|
|
|
var self = this
|
|
|
|
axios.get('http://192.168.0.104:8082/news/app/newscontent/listpagenewscontentrelease', {
|
|
|
|
params: self.dynamicsPage
|
|
|
|
}).then(function (res) {
|
|
|
|
var picNews = res.data.rows.splice(0, 1)[0]
|
|
|
|
picNews.newsContentCoverList = picNews.newsContentCoverList[0].contentCoverId
|
|
|
|
for (var i = 0; i < res.data.rows.length; i++) {
|
|
|
|
var date = res.data.rows[i].newsContentPublishTime.split('-')[2]
|
|
|
|
self.$set(res.data.rows[i], 'date', date)
|
|
|
|
res.data.rows[i].newsContentPublishTime = res.data.rows[i].newsContentPublishTime.split('-')[0] + '-' + res.data.rows[i].newsContentPublishTime.split('-')[1]
|
|
|
|
}
|
|
|
|
var result = {
|
|
|
|
picNews: picNews,
|
|
|
|
news: res.data.rows
|
|
|
|
}
|
|
|
|
self.dynamic = result
|
|
|
|
})
|
|
|
|
},
|
|
|
|
getActivityList: function () {
|
|
|
|
var self = this
|
|
|
|
axios.get('http://192.168.0.111:8080/culturalactivity/app/activitylibrary/listpageactivitylibraryfornetrelease', {
|
|
|
|
params: self.activityPage
|
|
|
|
}).then(function (res) {
|
|
|
|
self.activityList = res.data.rows
|
|
|
|
})
|
|
|
|
},
|
|
|
|
getLiterature: function () {
|
|
|
|
var self = this
|
|
|
|
axios.get('http://192.168.0.104:8081/library/app/intangiblelibrarydata/listpageintangiblelibrarydatarelease/48204626-2593-4ab7-9dda-4d6314c12556', {
|
|
|
|
params: self.activityPage
|
|
|
|
}).then(function (res) {
|
|
|
|
self.literature = res.data.rows
|
|
|
|
})
|
2020-06-10 11:19:26 +08:00
|
|
|
},
|
|
|
|
getExhibition: function () {
|
|
|
|
var self = this
|
|
|
|
axios.get('http://192.168.0.104:8082/news/app/newscontent/listpagenewscontentrelease', {
|
|
|
|
params: self.exhibitionPage
|
|
|
|
}).then(function (res) {
|
|
|
|
for (var i = 0; i < res.data.rows.length; i++) {
|
|
|
|
res.data.rows[i].newsContentCoverList = res.data.rows[i].newsContentCoverList[0].contentCoverId
|
|
|
|
}
|
|
|
|
self.exhibition = res.data.rows
|
|
|
|
})
|
2020-06-07 10:28:34 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
mounted () {
|
|
|
|
this.getDynamicsList()
|
|
|
|
this.getActivityList()
|
|
|
|
this.getLiterature()
|
2020-06-10 11:19:26 +08:00
|
|
|
this.getExhibition()
|
2020-06-07 10:28:34 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="stylus" rel="stylesheet/stylus" scoped>
|
|
|
|
|
|
|
|
</style>
|