From 7fe259299eef1bd7a2dcfdab32c06b7a61e5b244 Mon Sep 17 00:00:00 2001 From: wangqiao Date: Fri, 29 Aug 2025 17:40:54 +0800 Subject: [PATCH] Refactor drawing query pages and routing structure --- .../drawe-components/RecommendedColumnsV2.vue | 2 +- components/kl-wallpaper-category/index.vue | 226 +++++----- .../[pageSize]/[[editions]]/[[source]].vue} | 40 +- pages/drawe/index.vue | 28 +- .../query-v2/[projectType]-[editions].vue | 110 ----- .../[projectType]-[editions]-[source].vue | 110 ----- pages/home/components/SideMenu.vue | 394 +++++++++--------- 7 files changed, 345 insertions(+), 565 deletions(-) rename pages/drawe/{query-v1/[projectType].vue => [projectType]/[pageNo]/[pageSize]/[[editions]]/[[source]].vue} (62%) delete mode 100644 pages/drawe/query-v2/[projectType]-[editions].vue delete mode 100644 pages/drawe/query-v3/[projectType]-[editions]-[source].vue diff --git a/components/drawe-components/RecommendedColumnsV2.vue b/components/drawe-components/RecommendedColumnsV2.vue index 2488b2c..2aebacb 100644 --- a/components/drawe-components/RecommendedColumnsV2.vue +++ b/components/drawe-components/RecommendedColumnsV2.vue @@ -34,7 +34,7 @@ const tabBar = ref([ { label: '图纸推荐', - value: '', + value: -1, }, { label: '原创图纸', diff --git a/components/kl-wallpaper-category/index.vue b/components/kl-wallpaper-category/index.vue index 9e55b88..38a92e2 100644 --- a/components/kl-wallpaper-category/index.vue +++ b/components/kl-wallpaper-category/index.vue @@ -2,29 +2,37 @@
- {{ - item.name - }} + {{ + item.name + }}
{{ computType }}分类
-
{{ - item.name }}
+ :class="item.id === query.projectType ? '!bg-[#ebeefe] !text-[#1A65FF]' : ''" + @click="handleClick(item)" + >{{ item.name }}
软件分类
-
- {{ item.name }}
+ :class="item.id === query.editions ? '!bg-[#ebeefe] !text-[#1A65FF]' : ''" + @click="query.editions = item.id" + > + {{ item.name }}
- -
- - - - - - - -
- -
-
- - - diff --git a/pages/drawe/query-v3/[projectType]-[editions]-[source].vue b/pages/drawe/query-v3/[projectType]-[editions]-[source].vue deleted file mode 100644 index 0dacc54..0000000 --- a/pages/drawe/query-v3/[projectType]-[editions]-[source].vue +++ /dev/null @@ -1,110 +0,0 @@ - - - diff --git a/pages/home/components/SideMenu.vue b/pages/home/components/SideMenu.vue index e953ec1..0003988 100644 --- a/pages/home/components/SideMenu.vue +++ b/pages/home/components/SideMenu.vue @@ -11,30 +11,16 @@ {{ item.name }} -