From 14f3b2e294490b196180541e80d17da4acd61137 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B0=E5=B2=A9?= Date: Tue, 2 Sep 2025 11:09:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9D=A8=E8=88=AA=E4=BF=AE=E6=94=B9=E5=AD=A6?= =?UTF-8?q?=E4=B9=A0=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- src/api/index.js | 5 ++++- src/api/messageNotification.js | 8 +++++++ src/pages/course/study.vue | 35 +++++++++++++++++++++++------ src/pages/examination/index.vue | 39 +++++++++++++++++++++------------ src/pages/index/dialog.vue | 2 +- src/pages/index/index.vue | 5 ++++- 7 files changed, 71 insertions(+), 25 deletions(-) diff --git a/.env.development b/.env.development index fa050679..44372854 100644 --- a/.env.development +++ b/.env.development @@ -26,7 +26,7 @@ VITE_APP_BASE_H5_API_Url = 'https://aitstest.jlbank.com.cn:7002' # VITE_APP_BASE_H5_API_Url_TRAEXAM = 'http://25.64.16.130:9604' # 张建成 # VITE_APP_BASE_H5_API_Url_TRAASK = 'http://25.64.16.144:9605' -# VITE_APP_BASE_H5_API_Url_TRASTUDY = 'http://25.64.16.144:9602' +VITE_APP_BASE_H5_API_Url_TRASTUDY = 'http://25.64.16.144:9602' # 王洋洋 # VITE_APP_BASE_H5_API_Url_TRAEXAM = 'http://25.64.16.140:9604' # 于嘉文 diff --git a/src/api/index.js b/src/api/index.js index 5f5e6a05..cd5e5e84 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -85,4 +85,7 @@ export const queryCrsInfoByRecmd = (data) => { method: 'post', data }); -}; \ No newline at end of file +}; + + + diff --git a/src/api/messageNotification.js b/src/api/messageNotification.js index 72fa6ef2..3022df25 100644 --- a/src/api/messageNotification.js +++ b/src/api/messageNotification.js @@ -31,4 +31,12 @@ export const oneTimeRead = (data) => { toastErrors: true, data }); +}; + +export const noticeMessageCount = (data) => { + return request({ + url: base_url + '/traPersonalMessageNotice/noticeMessageCount', + method: 'post', + data + }); }; \ No newline at end of file diff --git a/src/pages/course/study.vue b/src/pages/course/study.vue index 4fa1de10..4ff2eea2 100644 --- a/src/pages/course/study.vue +++ b/src/pages/course/study.vue @@ -79,8 +79,8 @@ @startRecord="changePlayItemId('')" :isLoading="isUploadingVoice" :onlyVoice="answerOnlyVoice" - :adjustPosition="true" :canAnswer="testAnswer" + :adjustPosition="true" :canAnswerText="'每个问题最多连续发送五次答案!'" :isDisabled="(lastTalkingInfo.type || 0) !== 4" /> @@ -667,6 +667,7 @@ const sendMessage = data => { const startPgrphId = ref('') const imageId = ref('') onLoad(params => { + changeAppHeightBottom() watchFlag.value = 1 isPreview.value = params.isPreview === 'preview' crsId.value = params.crsId || '' @@ -683,8 +684,24 @@ onMounted(() => { const keyboardHeight = ref('0px') const setHeight = res => { keyboardHeight.value = res.height + 'px' - scrollToBottomNow() + // scrollToBottomNow() } + + const keyBoardIsHide = computed(() => { + return parseInt(keyboardHeight.value) == 0 + }) + const bottomHeight = ref('0px') + const totalBotHeight = computed(()=> { + return keyBoardIsHide.value ? 0 + 'px': parseInt(keyboardHeight.value) - parseInt(bottomHeight.value) + 'px' + }) + const changeAppHeightBottom = (height) => { + //#ifdef APP-PLUS + // 获取系统信息 + const systemInfo = uni.getSystemInfoSync(); + // 计算安全区域底部高度 + bottomHeight.value = systemInfo.screenHeight - systemInfo.safeArea.bottom + 'px' + // #endif + } onHide(() => { //#ifdef APP-PLUS uni.offKeyboardHeightChange(setHeight) @@ -1040,11 +1057,14 @@ const chooseRateNow = item => { } -