fix: page url error
parent
60cb378f21
commit
f2b844f0a7
|
|
@ -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: '开发中....',
|
||||
|
|
|
|||
|
|
@ -419,7 +419,7 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"path": "evaluate/academicReport/CapabilityReport",
|
||||
"path": "evaluate/academicReport/capabilityReport",
|
||||
"type": "page",
|
||||
"style": {
|
||||
"navigationStyle": "custom",
|
||||
|
|
@ -428,7 +428,7 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"path": "evaluate/academicReport/CharacterReport",
|
||||
"path": "evaluate/academicReport/characterReport",
|
||||
"type": "page",
|
||||
"style": {
|
||||
"navigationStyle": "custom",
|
||||
|
|
@ -437,14 +437,14 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"path": "evaluate/academicReport/InterestReport",
|
||||
"path": "evaluate/academicReport/interestReport",
|
||||
"type": "page",
|
||||
"style": {
|
||||
"navigationBarTitleText": "兴趣测评报告"
|
||||
}
|
||||
},
|
||||
{
|
||||
"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,7 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"path": "evaluate/psychologicalReport/SdsReport",
|
||||
"path": "evaluate/psychologicalReport/sdsReport",
|
||||
"type": "page",
|
||||
"style": {
|
||||
"navigationStyle": "custom",
|
||||
|
|
@ -480,7 +480,7 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"path": "evaluate/studyReport/AnxietyReport",
|
||||
"path": "evaluate/studyReport/anxietyReport",
|
||||
"type": "page",
|
||||
"style": {
|
||||
"navigationStyle": "custom",
|
||||
|
|
@ -489,7 +489,7 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"path": "evaluate/studyReport/LearnSkillReport",
|
||||
"path": "evaluate/studyReport/learnSkillReport",
|
||||
"type": "page",
|
||||
"style": {
|
||||
"navigationStyle": "custom",
|
||||
|
|
@ -498,7 +498,7 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"path": "evaluate/studyReport/LearnStudyReport",
|
||||
"path": "evaluate/studyReport/learnStudyReport",
|
||||
"type": "page",
|
||||
"style": {
|
||||
"navigationStyle": "custom",
|
||||
|
|
|
|||
|
|
@ -47,16 +47,16 @@ interface NavigateToOptions {
|
|||
"/login-sub/userAgreement" |
|
||||
"/pages-evaluation-sub/aiAutoFill/index" |
|
||||
"/pages-evaluation-sub/rank/index" |
|
||||
"/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/studyReport/AnxietyReport" |
|
||||
"/pages-evaluation-sub/evaluate/studyReport/LearnSkillReport" |
|
||||
"/pages-evaluation-sub/evaluate/studyReport/LearnStudyReport" |
|
||||
"/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/studyReport/anxietyReport" |
|
||||
"/pages-evaluation-sub/evaluate/studyReport/learnSkillReport" |
|
||||
"/pages-evaluation-sub/evaluate/studyReport/learnStudyReport" |
|
||||
"/aiService-sub/index/index";
|
||||
}
|
||||
interface RedirectToOptions extends NavigateToOptions {}
|
||||
|
|
|
|||
Loading…
Reference in New Issue