提交 c99d9805 authored 作者: lihuihui's avatar lihuihui

update

上级 f7159ad6
...@@ -48,7 +48,11 @@ export default { ...@@ -48,7 +48,11 @@ export default {
this.$router.push({ path: '/list', query: { id: row.id } }) this.$router.push({ path: '/list', query: { id: row.id } })
}, },
goDetail(row) { goDetail(row) {
if (row.url === '') {
this.$router.push({ path: '/details', query: { id: row.id } }) this.$router.push({ path: '/details', query: { id: row.id } })
} else {
window.location.href = row.url
}
} }
} }
} }
......
<template> <template>
<div class="list-page"> <div class="list-page">
<HeadBack :title="listData.title"></HeadBack> <HeadBack :title="listData.title"></HeadBack>
<div style="margin-top: 1.2rem;padding:0 .32rem;"> <div style="margin-top: 1.2rem; padding: 0 0.32rem">
<div class="list-card" v-for="(item, index) in listData.docs" :key="index" @click="goPage(item)"> <div class="list-card" v-for="(item, index) in listData.docs" :key="index" @click="goPage(item)">
<div class="s-t-card" v-if="listData.layout == '2'"> <div class="s-t-card" v-if="listData.layout == '2'">
<img :src="item.picture" /> <img :src="item.picture" />
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论