This commit is contained in:
花有清香月有阴
2021-12-21 19:15:48 +08:00
parent 09faaeed2c
commit 25f37b8b03

View File

@@ -1,7 +1,7 @@
<template>
<div class="AppUniMsg">
<template v-if="datas.length > 0">
<AiCard v-for="(item, i) in datas" :key="i" @click="toAdd(item, 1)">
<AiCard v-for="(item, i) in datas" :key="i" @click.native="toAdd(item, 1)">
<template #custom>
<div class="titles">
{{ item.title }}
@@ -80,6 +80,7 @@ export default {
},
toAdd(item, type) {
console.log(type)
if (type == '1') {
console.log('详情')
uni.navigateTo({ url: `./Detail?id=${item.id}` })