提交 46a2b1d6 authored 作者: lihuihui's avatar lihuihui

对接接口

上级 2294040c
......@@ -5,7 +5,7 @@
<div class="swiper-slide" v-for="(item, index) in listData" :key="index">
<template v-if="item.uri">
<a :href="item.uri" target="_blank">
<img :src="item.web_img_uri" @click="goPage(item)">
<img :src="item.web_img_uri">
</a>
</template>
<template v-else>
......@@ -60,18 +60,6 @@
},
swiperStart() {
this.swiper.autoplay.start()
},
goPage(item) {
if (item.source === '') {
this.$router.push({
path: '/about/news-detail',
query: {
id: item.id
}
})
} else {
window.open(item.source)
}
}
}
}
......
......@@ -18,7 +18,7 @@
data: item,
path: '/about/news'
}
}">
}">
<img :src="item.web_img_uri">
</app-link>
</div>
......
......@@ -71,7 +71,6 @@ export default {
})
},
computed: {
// s
listData() {
const [first = {}, ...list] = this.data
return { first, list: list || [] }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论