查看分类
This commit is contained in:
@@ -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}`})
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user