diff --git a/pages/toolbox/index.vue b/pages/toolbox/index.vue index faadb4e..d67c711 100644 --- a/pages/toolbox/index.vue +++ b/pages/toolbox/index.vue @@ -4,11 +4,22 @@
- -
+ + + + + + + + + 原创开发 + 转载分享 + + + +
@@ -50,9 +61,9 @@
-
-
-
+
+
+
热门排行
{{ item.title }}
@@ -99,13 +110,18 @@ import KlSearch from '~/pages/toolbox/components/search.vue' import { getRelationRecommend } from '~/api/drawe-detail/index' import type { ProjectDrawPageRespVO } from '~/api/drawe-detail/types' + import { parent } from '~/api/upnew/index' import emptyImg from '~/assets/images/empty.png' import dayjs from 'dayjs' - const pageReq = reactive({ + const cascaderProps = { multiple: false, label: 'name', value: 'id', emitPath: false } + + const pageReq = reactive({ pageNum: 1, pageSize: 10, title: '', + categoryId: undefined, + sourceType: 0, }) // const pageRes = ref({ @@ -177,4 +193,16 @@ // }) // } // getRelationRecommendList() + + const projectTypeList = ref([]) + /** 获取分类下拉框 */ + const getParent = () => { + parent({ + type: 3, + parentId: 0, + }).then((res) => { + projectTypeList.value = res.data + }) + } + getParent()