|
|
@@ -14,7 +14,7 @@ |
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
|
|
import Swiper from '@/components/swiper'
|
|
|
|
/*import Swiper from '@/components/swiper'*/
|
|
|
|
import RightList from './right.vue'
|
|
|
|
import { lunboList } from '@/api/home.js'
|
|
|
|
import { detailApi } from '@/api/article.js'
|
|
|
@@ -30,21 +30,21 @@ export default { |
|
|
|
}
|
|
|
|
},
|
|
|
|
components: {
|
|
|
|
Swiper,
|
|
|
|
/*Swiper,*/
|
|
|
|
RightList
|
|
|
|
},
|
|
|
|
mounted () {},
|
|
|
|
created () {
|
|
|
|
this.getlunboList()
|
|
|
|
/*this.getlunboList()*/
|
|
|
|
this.getDetail()
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
async getlunboList () {
|
|
|
|
/*async getlunboList () {
|
|
|
|
const { data: { code, data } } = await lunboList()
|
|
|
|
if (code === 200) {
|
|
|
|
this.carouselList = data.list
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},*/
|
|
|
|
async getDetail () {
|
|
|
|
const { data: { code, data } } = await detailApi(this.$route.query.id)
|
|
|
|
if (code === 200) {
|
|
|
|