提交 3a338c4c authored 作者: lihuihui's avatar lihuihui

update

上级 0eb4b443
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<img src="https://zws-imgs-pub.ezijing.com/static/public/a72ef577c9bae694c6bfc33e5bfc93af.png" alt="" class="banner"> <img src="https://zws-imgs-pub.ezijing.com/static/public/a72ef577c9bae694c6bfc33e5bfc93af.png" alt="" class="banner">
<ul class="list-content"> <ul class="list-content">
<template v-for="(item, index) in listData"> <template v-for="(item, index) in listData">
<li @click="goDetail(item)" :key="index"> <li :key="index" @click="goDetail(item)">
<img :src="item.web_img_uri" alt=""> <img :src="item.web_img_uri" alt="">
<div class="right-con"> <div class="right-con">
<div class="time">{{ item.created_at }}</div> <div class="time">{{ item.created_at }}</div>
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
</li> </li>
</template> </template>
</ul> </ul>
<!-- // -->
</div> </div>
</template> </template>
<script> <script>
...@@ -33,11 +34,10 @@ export default { ...@@ -33,11 +34,10 @@ export default {
}) })
}, },
methods: { methods: {
// s
goDetail(item) { goDetail(item) {
this.data = this.$axios.get(`/api/cms/api/v1/article/${item.id}/detail`).then(res => { this.$axios.get(`/api/cms/api/v1/article/${item.id}/detail`).then(res => {
if (res.data.uri) { if (res.data.uri) {
window.open(res.data.uri) window.location.href = res.data.uri
} else { } else {
this.$router.push({ this.$router.push({
path: '/about/news-detail', path: '/about/news-detail',
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论