From cc2f0d5eeba919633abec9194605d3e82ed99a2f Mon Sep 17 00:00:00 2001 From: wangqiao Date: Sun, 14 Sep 2025 17:23:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=B7=A5=E5=85=B7=E7=AE=B1?= =?UTF-8?q?=E5=88=86=E7=B1=BB=E7=AD=9B=E9=80=89=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/toolbox/index.vue | 46 +++++++++++++++++++++++++++++++++-------- 1 file changed, 37 insertions(+), 9 deletions(-) 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()