查看分类

This commit is contained in:
shijingjing
2022-04-25 14:10:36 +08:00
parent 97f5af4be9
commit fe0b027460
2 changed files with 17 additions and 20 deletions

View File

@@ -10,7 +10,7 @@
<p v-if="parentName == '生态振兴'">构建乡村振兴的环境基础</p>
</div>
<div class="list">
<div class="item" v-for="(item,index) in list" :key="index" @click="toNewList(item.id)">
<div class="item" v-for="(item,index) in list" :key="index" @click="toNewList(item.id,item.categoryName)">
<span>{{ item.categoryName }}</span>
<span><u-icon name="arrow-right"></u-icon></span>
</div>
@@ -45,12 +45,12 @@ export default {
categoryType: '1',
}
}).then((res)=>{
// console.log(res);
console.log(res);
this.list = res.data.records
})
},
toNewList(id) {
uni.navigateTo({url: `./newList?id=${id}`})
toNewList(id,categoryName) {
uni.navigateTo({url: `./newList?id=${id}&parentName=${categoryName}`})
}
},
}