From 3188de9982ba9a0f9802fdefa529742b43b453ce Mon Sep 17 00:00:00 2001 From: xjs Date: Tue, 9 Jun 2026 09:48:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DBUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- env/.env | 5 +- .../academicReport/capabilityReport.vue | 2 +- .../academicReport/characterReport.vue | 7 +- .../academicReport/interestReport.vue | 5 +- .../academicReport/opinionAboutReport.vue | 2 +- .../evaluate/components/InterestingThings.vue | 21 +++-- .../evaluate/doPage/assessmentPage.vue | 10 +- src/http/interceptor.ts | 1 + src/pages-sub/components/read-more/index.vue | 91 ++++++++++++------- .../components/HighSchoolDetailHeader.vue | 6 +- src/pages-sub/me/evaluation.vue | 26 +++++- src/pages-sub/me/wishlist.vue | 2 +- src/pages-sub/me/wishlistInfo.vue | 2 +- .../create/saveSecondBatchWishList.vue | 2 +- src/pages-sub/wishlist/school.vue | 2 +- src/pages/index/index.vue | 4 +- src/service/requestApi.ts | 7 +- 17 files changed, 124 insertions(+), 71 deletions(-) diff --git a/env/.env b/env/.env index 8cbedfa..25c9a69 100644 --- a/env/.env +++ b/env/.env @@ -8,7 +8,6 @@ VITE_UNI_APPID = 'H57F2ACE4' VITE_WX_APPID = 'wx487ac749c0e10be5' # VITE_WX_VIDEO_ID= 'sphju9MCfZetYHP' 智能中专学校的 # VITE_WX_VIDEO_ID= 'spht0MPpWjxEKb4' 深泉外国语 -# spheuUaMulnlpHH 深泉外国语学院 认证的 VITE_WX_VIDEO_ID= 'spht0MPpWjxEKb4' # 微信小程序 AI @@ -20,6 +19,10 @@ VITE_WX_VIDEO_ID= 'spht0MPpWjxEKb4' VITE_CLOUD_ENV_ID='cloud1-d9g4odcaqf6a2114f' VITE_CLOUD_BOT_ID='agent-wxai-9gi3rts96061202f' +# 六纬中考通 +# VITE_CLOUD_ENV_ID='cloud1-d3g5q6bq61a240786' +# VITE_CLOUD_BOT_ID='agent-wxai-4gl75um61026324f' + # h5部署网站的base,配置到 manifest.config.ts 里的 h5.router.base # https://uniapp.dcloud.net.cn/collocation/manifest.html#h5-router # 比如你要部署到 https://unibest.tech/doc/ ,则配置为 /doc/ diff --git a/src/chart-sub/evaluate/academicReport/capabilityReport.vue b/src/chart-sub/evaluate/academicReport/capabilityReport.vue index ac6a6eb..d1b788f 100644 --- a/src/chart-sub/evaluate/academicReport/capabilityReport.vue +++ b/src/chart-sub/evaluate/academicReport/capabilityReport.vue @@ -69,7 +69,7 @@ onLoad((options) => { pageType.value = +options.type pageId.value = options.id - getAbilityDimension({ ScaleId: pageId.value }).then((resp) => { + getAbilityDimension({query:{ ScaleId: pageId.value }}).then((resp) => { if (resp.code === 200) { studyRecord.value = resp.result as { description: string diff --git a/src/chart-sub/evaluate/academicReport/characterReport.vue b/src/chart-sub/evaluate/academicReport/characterReport.vue index 64b0cc1..9bd853f 100644 --- a/src/chart-sub/evaluate/academicReport/characterReport.vue +++ b/src/chart-sub/evaluate/academicReport/characterReport.vue @@ -81,11 +81,14 @@ const studyRecord = ref({ hTag: '', }) -onLoad((options) => { +onLoad((options:any) => { pageType.value = +options.type pageId.value = options.id - getMBTIDimension({ ScaleId: pageId.value }).then((resp) => { + console.log("------------",pageId.value); + + + getMBTIDimension({query:{ ScaleId: pageId.value }}).then((resp) => { if (resp.code === 200) { studyRecord.value = resp.result as { description: string diff --git a/src/chart-sub/evaluate/academicReport/interestReport.vue b/src/chart-sub/evaluate/academicReport/interestReport.vue index 8e93f53..a47c5fa 100644 --- a/src/chart-sub/evaluate/academicReport/interestReport.vue +++ b/src/chart-sub/evaluate/academicReport/interestReport.vue @@ -20,8 +20,6 @@ - - @@ -34,7 +32,6 @@ diff --git a/src/chart-sub/evaluate/doPage/assessmentPage.vue b/src/chart-sub/evaluate/doPage/assessmentPage.vue index 0a23109..16f9613 100644 --- a/src/chart-sub/evaluate/doPage/assessmentPage.vue +++ b/src/chart-sub/evaluate/doPage/assessmentPage.vue @@ -150,7 +150,7 @@ const handleCheckChange = (value: any[]) => { const calcScore = () => { let _type = questions.value[currentIndex.value].type let _name = questions.value[currentIndex.value].answer[0].tag - let _options = questions.value[currentIndex.value].answer.filter((answer) => { + let _options = questions.value[currentIndex.value].answer.filter((answer:any) => { return checkedList.value.includes(answer.key) }) @@ -168,7 +168,7 @@ const calcScore = () => { // 当前显示的卡片索引 const currentIndex = ref(0) -const questions = ref([]) +const questions = ref([]) const questionType = ref(-1) const questionName = ref('') @@ -176,7 +176,7 @@ const useTime = ref('') const quesApplication = ref('') const isLoading = ref(false) -onLoad((options) => { +onLoad((options:any) => { pageName.value = options.name pageId.value = options.id getAssessmentQuestions({query:{ ScaleId: pageId.value }}).then((res) => { @@ -225,12 +225,12 @@ const handleSubmit = () => { } isLoading.value = true - let params = { + let params:any = { customId: userStore.userInfo.wxId, scaleId: pageId.value, inputs: [], } - let _inputs = [] + let _inputs:any[] = [] answerMap.forEach((value, key) => { _inputs.push({ type: key, name: value.name, value: value.value }) }) diff --git a/src/http/interceptor.ts b/src/http/interceptor.ts index 4d105e9..2f2cda4 100644 --- a/src/http/interceptor.ts +++ b/src/http/interceptor.ts @@ -57,6 +57,7 @@ const httpInterceptor = { } else if (token) { options.header.Authorization = `Bearer ${token}` } + console.log(import.meta.env.VITE_WX_APPID) return options }, } diff --git a/src/pages-sub/components/read-more/index.vue b/src/pages-sub/components/read-more/index.vue index 983be47..5ad75be 100644 --- a/src/pages-sub/components/read-more/index.vue +++ b/src/pages-sub/components/read-more/index.vue @@ -1,52 +1,73 @@ \ No newline at end of file + diff --git a/src/pages-sub/information/components/HighSchoolDetailHeader.vue b/src/pages-sub/information/components/HighSchoolDetailHeader.vue index bb75a32..99fb73e 100644 --- a/src/pages-sub/information/components/HighSchoolDetailHeader.vue +++ b/src/pages-sub/information/components/HighSchoolDetailHeader.vue @@ -79,10 +79,10 @@ onLoad(() => { 收藏 - + - diff --git a/src/pages-sub/me/evaluation.vue b/src/pages-sub/me/evaluation.vue index c6c7348..b19ee67 100644 --- a/src/pages-sub/me/evaluation.vue +++ b/src/pages-sub/me/evaluation.vue @@ -1,6 +1,6 @@