|
@@ -27,6 +27,7 @@ const {
|
|
|
optArrNode,
|
|
|
authOptArr,
|
|
|
} = useCatalogList()
|
|
|
+const category = ref('')
|
|
|
|
|
|
//跳转至图表详情页
|
|
|
const goChartDetail = (item)=>{
|
|
@@ -396,6 +397,10 @@ function onLoad(){
|
|
|
getChartList()
|
|
|
}
|
|
|
|
|
|
+function onClickTab() {
|
|
|
+ getCatalogList(category.value)
|
|
|
+}
|
|
|
+
|
|
|
getCatalogList()
|
|
|
getChartList()
|
|
|
</script>
|
|
@@ -457,7 +462,12 @@ getChartList()
|
|
|
<van-popup v-model:show="IsShowCatalog" position="right" class="catalog-list-wrap" style="height:100%">
|
|
|
<div class="catalog-list">
|
|
|
<div class="top sticky-part">
|
|
|
- <h3>分类</h3>
|
|
|
+ <!-- <h3>分类</h3>
|
|
|
+ <h3>精选资源</h3> -->
|
|
|
+ <van-tabs v-model:active="category" @click-tab="onClickTab" :ellipsis="false">
|
|
|
+ <van-tab title="分类"></van-tab>
|
|
|
+ <van-tab title="精选资源"></van-tab>
|
|
|
+ </van-tabs>
|
|
|
<van-icon name="cross" @click.stop="IsShowCatalog=false"/>
|
|
|
</div>
|
|
|
<!-- 将目录改为三级 -->
|