From 60cb378f21c85081986c3f02ea34098482121a11 Mon Sep 17 00:00:00 2001 From: xjs Date: Tue, 13 Jan 2026 15:53:14 +0800 Subject: [PATCH] fix: page name error --- src/pages-sub/evaluation/useRouterDetail.ts | 20 ++++++++-------- src/pages.json | 26 ++++++++++----------- src/types/uni-pages.d.ts | 10 ++++---- 3 files changed, 28 insertions(+), 28 deletions(-) diff --git a/src/pages-sub/evaluation/useRouterDetail.ts b/src/pages-sub/evaluation/useRouterDetail.ts index 085c57a..29a5a84 100644 --- a/src/pages-sub/evaluation/useRouterDetail.ts +++ b/src/pages-sub/evaluation/useRouterDetail.ts @@ -14,30 +14,30 @@ export const useRouterDetail = (item: { reportsId: string; type: number }) => { let url = '' if (item.type === 0) { - url = `/pages-evaluation-sub/evaluate/academicReport/interestReport?id=${item.reportsId}&type=${item.type}` + url = `/pages-evaluation-sub/evaluate/academicReport/InterestReport?id=${item.reportsId}&type=${item.type}` } else if (item.type === 1) { - url = `/pages-evaluation-sub/evaluate/academicReport/characterReport?id=${item.reportsId}&type=${item.type}` + url = `/pages-evaluation-sub/evaluate/academicReport/CharacterReport?id=${item.reportsId}&type=${item.type}` } else if (item.type === 2) { - url = `/pages-evaluation-sub/evaluate/academicReport/capabilityReport?id=${item.reportsId}&type=${item.type}` + url = `/pages-evaluation-sub/evaluate/academicReport/CapabilityReport?id=${item.reportsId}&type=${item.type}` } else if (item.type === -1) { - url = `/pages-evaluation-sub/evaluate/academicReport/opinionAboutReport?id=${item.reportsId}&type=${item.type}` + url = `/pages-evaluation-sub/evaluate/academicReport/OpinionAboutReport?id=${item.reportsId}&type=${item.type}` } else if (item.type === 6) { - url = `/pages-evaluation-sub/evaluate/psychologicalReport/sasReport?id=${item.reportsId}&type=${item.type}` + url = `/pages-evaluation-sub/evaluate/psychologicalReport/SasReport?id=${item.reportsId}&type=${item.type}` } else if (item.type === 7) { - url = `/pages-evaluation-sub/evaluate/psychologicalReport/sdsReport?id=${item.reportsId}&type=${item.type}` + url = `/pages-evaluation-sub/evaluate/psychologicalReport/SdsReport?id=${item.reportsId}&type=${item.type}` } else if (item.type === 9) { - // url = `/pages-evaluation-sub/evaluate/psychologicalReport/mhtReport?id=${item.reportsId}&type=${item.type}` + // url = `/pages-evaluation-sub/evaluate/psychologicalReport/MhtReport?id=${item.reportsId}&type=${item.type}` uni.showToast({ title: '开发中....', icon: 'none', }) return } else if (item.type === 4) { - url = `/pages-evaluation-sub/evaluate/studyReport/learnStudyReport?id=${item.reportsId}&type=${item.type}` + url = `/pages-evaluation-sub/evaluate/studyReport/LearnStudyReport?id=${item.reportsId}&type=${item.type}` } else if (item.type === 5) { - url = `/pages-evaluation-sub/evaluate/studyReport/learnSkillReport?id=${item.reportsId}&type=${item.type}` + url = `/pages-evaluation-sub/evaluate/studyReport/LearnSkillReport?id=${item.reportsId}&type=${item.type}` } else if (item.type === 3) { - url = `/pages-evaluation-sub/evaluate/studyReport/anxietyReport?id=${item.reportsId}&type=${item.type}` + url = `/pages-evaluation-sub/evaluate/studyReport/AnxietyReport?id=${item.reportsId}&type=${item.type}` } else { uni.showToast({ title: '开发中....', diff --git a/src/pages.json b/src/pages.json index 5911a32..7f8c72e 100644 --- a/src/pages.json +++ b/src/pages.json @@ -444,7 +444,7 @@ } }, { - "path": "evaluate/academicReport/opinionAboutReport", + "path": "evaluate/academicReport/OpinionAboutReport", "type": "page", "style": { "navigationStyle": "custom", @@ -453,7 +453,7 @@ } }, { - "path": "evaluate/psychologicalReport/mhtReport", + "path": "evaluate/psychologicalReport/MhtReport", "type": "page", "style": { "navigationStyle": "custom", @@ -462,7 +462,7 @@ } }, { - "path": "evaluate/psychologicalReport/sasReport", + "path": "evaluate/psychologicalReport/SasReport", "type": "page", "style": { "navigationStyle": "custom", @@ -471,7 +471,16 @@ } }, { - "path": "evaluate/psychologicalReport/sdsReport", + "path": "evaluate/psychologicalReport/SdsReport", + "type": "page", + "style": { + "navigationStyle": "custom", + "transparentTitle": "always", + "navigationBarTitleText": "" + } + }, + { + "path": "evaluate/studyReport/AnxietyReport", "type": "page", "style": { "navigationStyle": "custom", @@ -496,15 +505,6 @@ "transparentTitle": "always", "navigationBarTitleText": "" } - }, - { - "path": "evaluate/studyReport/anxietyReport", - "type": "page", - "style": { - "navigationStyle": "custom", - "transparentTitle": "always", - "navigationBarTitleText": "" - } } ] }, diff --git a/src/types/uni-pages.d.ts b/src/types/uni-pages.d.ts index f99ada1..b2f77f2 100644 --- a/src/types/uni-pages.d.ts +++ b/src/types/uni-pages.d.ts @@ -50,13 +50,13 @@ interface NavigateToOptions { "/pages-evaluation-sub/evaluate/academicReport/CapabilityReport" | "/pages-evaluation-sub/evaluate/academicReport/CharacterReport" | "/pages-evaluation-sub/evaluate/academicReport/InterestReport" | - "/pages-evaluation-sub/evaluate/academicReport/opinionAboutReport" | - "/pages-evaluation-sub/evaluate/psychologicalReport/mhtReport" | - "/pages-evaluation-sub/evaluate/psychologicalReport/sasReport" | - "/pages-evaluation-sub/evaluate/psychologicalReport/sdsReport" | + "/pages-evaluation-sub/evaluate/academicReport/OpinionAboutReport" | + "/pages-evaluation-sub/evaluate/psychologicalReport/MhtReport" | + "/pages-evaluation-sub/evaluate/psychologicalReport/SasReport" | + "/pages-evaluation-sub/evaluate/psychologicalReport/SdsReport" | + "/pages-evaluation-sub/evaluate/studyReport/AnxietyReport" | "/pages-evaluation-sub/evaluate/studyReport/LearnSkillReport" | "/pages-evaluation-sub/evaluate/studyReport/LearnStudyReport" | - "/pages-evaluation-sub/evaluate/studyReport/anxietyReport" | "/aiService-sub/index/index"; } interface RedirectToOptions extends NavigateToOptions {}