提交 19b53738 authored 作者: pengxiaohui's avatar pengxiaohui

修改首页校长寄语

上级 c6575dbf
......@@ -10,50 +10,20 @@
</van-swipe-item>
</template>
</van-swipe>
<text-swiper v-if="isShowSwiper" :listData="list" @slideTo="handleSlideTo" />
</card>
</template>
<script>
import Card from '@/components/Card'
import NewLink from '@/components/NewLink'
import TextSwiper from './TextSwiper'
export default {
components: { Card, NewLink, TextSwiper },
components: { Card, NewLink },
data() {
return {
list: [],
swiperOption: {
speed: 400,
autoplay: false,
delay: 3000,
loop: false,
// pagination: {
// el: '.swiper-pagination',
// clickable: true
// },
// direction: 'vertical',
height: 500
// autoHeight: true
},
isShowSwiper: false
}
return { list: [] }
},
async fetch() {
const params = { project_id: process.env.projectId, type_tag: 'img_text_school' }
this.list = await this.$axios.get('/api/cms/api/v1/articles', { params }).then(res => {
this.isShowSwiper = false
setTimeout(() => {
this.isShowSwiper = true
},300)
return res.data.data
})
},
mounted() {
this.isShowSwiper = false
setTimeout(() => {
this.isShowSwiper = true
},300)
this.list = await this.$axios.get('/api/cms/api/v1/articles', { params }).then(res => res.data.data)
}
}
</script>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论