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

对接接口

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