From aef87996521497f6b8b09be1d3e2df28d4176ea2 Mon Sep 17 00:00:00 2001 From: wangqiao Date: Tue, 23 Sep 2025 21:34:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=8E=A8=E8=8D=90=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E6=96=B0=E5=A2=9E=E5=8F=82=E6=95=B0=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/upnew/types.ts | 1 + components/drawe-components/RecommendedColumnsV2.vue | 2 +- .../[pageNo]/[pageSize]/[[editions]]/[[source]].vue | 2 ++ pages/drawe/index.vue | 2 ++ .../[pageNo]/[pageSize]/[[editions]]/[[source]].vue | 2 ++ pages/model/index.vue | 2 ++ .../[pageNo]/[pageSize]/[[editions]]/[[source]].vue | 2 ++ pages/text/index.vue | 2 ++ 8 files changed, 14 insertions(+), 1 deletion(-) diff --git a/api/upnew/types.ts b/api/upnew/types.ts index 8e60383..b6031a0 100644 --- a/api/upnew/types.ts +++ b/api/upnew/types.ts @@ -61,6 +61,7 @@ export interface pageReq { createAddress?: string createIp?: string projectType?: any + recommend: boolean // 是否推荐 } export interface pageRes { list: { diff --git a/components/drawe-components/RecommendedColumnsV2.vue b/components/drawe-components/RecommendedColumnsV2.vue index 6bcedbf..156c1a1 100644 --- a/components/drawe-components/RecommendedColumnsV2.vue +++ b/components/drawe-components/RecommendedColumnsV2.vue @@ -41,7 +41,7 @@ value: 1, }, { - label: '最新上传', + label: '转载分享', value: 2, }, ]) diff --git a/pages/drawe/[projectType]/[pageNo]/[pageSize]/[[editions]]/[[source]].vue b/pages/drawe/[projectType]/[pageNo]/[pageSize]/[[editions]]/[[source]].vue index 29bb249..6a1b52b 100644 --- a/pages/drawe/[projectType]/[pageNo]/[pageSize]/[[editions]]/[[source]].vue +++ b/pages/drawe/[projectType]/[pageNo]/[pageSize]/[[editions]]/[[source]].vue @@ -62,6 +62,7 @@ source: source.value || -1, type: 1, title: keywords.value, + recommend: source.value === -1 ? true : false, }) // const result = reactive({ // list: [], @@ -93,6 +94,7 @@ editions: query.value.editions === '-1' ? '' : query.value.editions, source: query.value.source === -1 ? '' : query.value.source, projectType: query.value.projectType === '-1' ? '' : query.value.projectType, + recommend: query.value.source === -1 ? true: false, }) return res.data }, diff --git a/pages/drawe/index.vue b/pages/drawe/index.vue index f156b83..7d58a2b 100644 --- a/pages/drawe/index.vue +++ b/pages/drawe/index.vue @@ -55,6 +55,7 @@ source: -1, type: 1, title: keywords.value, + recommend: true, }) // const result = reactive({ // list: [], @@ -86,6 +87,7 @@ editions: query.value.editions === '-1' ? '' : query.value.editions, source: query.value.source === -1 ? '' : query.value.source, projectType: query.value.projectType === '-1' ? '' : query.value.projectType, + recommend: query.value.source === -1 ? true: false, }) return res.data }, diff --git a/pages/model/[projectType]/[pageNo]/[pageSize]/[[editions]]/[[source]].vue b/pages/model/[projectType]/[pageNo]/[pageSize]/[[editions]]/[[source]].vue index 76e2e2a..1dcb7a4 100644 --- a/pages/model/[projectType]/[pageNo]/[pageSize]/[[editions]]/[[source]].vue +++ b/pages/model/[projectType]/[pageNo]/[pageSize]/[[editions]]/[[source]].vue @@ -62,6 +62,7 @@ source: source.value || -1, type: 3, title: keywords.value, + recommend: source.value === -1 ? true: false, }) // const result = reactive({ // list: [], @@ -93,6 +94,7 @@ editions: query.value.editions === '-1' ? '' : query.value.editions, source: query.value.source === -1 ? '' : query.value.source, projectType: query.value.projectType === '-1' ? '' : query.value.projectType, + recommend: query.value.source === -1 ? true: false, }) return res.data }, diff --git a/pages/model/index.vue b/pages/model/index.vue index ef286d1..c252f0a 100644 --- a/pages/model/index.vue +++ b/pages/model/index.vue @@ -52,6 +52,7 @@ editions: '-1', source: -1, type: 3, + recommend: true, }) // const result = reactive({ // list: [], @@ -71,6 +72,7 @@ editions: query.value.editions === '-1' ? '' : query.value.editions, source: query.value.source === -1 ? '' : query.value.source, projectType: query.value.projectType === '-1' ? '' : query.value.projectType, + recommend: query.value.source === -1 ? true: false, }) return res.data }, diff --git a/pages/text/[projectType]/[pageNo]/[pageSize]/[[editions]]/[[source]].vue b/pages/text/[projectType]/[pageNo]/[pageSize]/[[editions]]/[[source]].vue index a779e50..a805e4a 100644 --- a/pages/text/[projectType]/[pageNo]/[pageSize]/[[editions]]/[[source]].vue +++ b/pages/text/[projectType]/[pageNo]/[pageSize]/[[editions]]/[[source]].vue @@ -62,6 +62,7 @@ source: source.value || -1, type: 2, title: keywords.value, + recommend: source.value === -1 ? true: false, }) // const result = reactive({ // list: [], @@ -93,6 +94,7 @@ editions: query.value.editions === '-1' ? '' : query.value.editions, source: query.value.source === -1 ? '' : query.value.source, projectType: query.value.projectType === '-1' ? '' : query.value.projectType, + recommend: query.value.source === -1 ? true: false, }) return res.data }, diff --git a/pages/text/index.vue b/pages/text/index.vue index f293647..8509071 100644 --- a/pages/text/index.vue +++ b/pages/text/index.vue @@ -53,6 +53,7 @@ editions: '-1', source: -1, type: 2, + recommend: true, }) // const result = reactive({ // list: [], @@ -72,6 +73,7 @@ editions: query.value.editions === '-1' ? '' : query.value.editions, source: query.value.source === -1 ? '' : query.value.source, projectType: query.value.projectType === '-1' ? '' : query.value.projectType, + recommend: query.value.source === -1 ? true: false, }) return res.data },