From c37a30478efb626b3a64d0d655e3b4304157594f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B0=E5=B2=A9?= Date: Tue, 22 Jul 2025 14:11:16 +0800 Subject: [PATCH 1/3] 2 --- .env.development | 4 ++-- src/pages/course/index.vue | 3 ++- src/pages/index/dialog.vue | 12 +++++++----- src/pages/index/index.vue | 4 ++-- src/pages/login/login.vue | 3 ++- 5 files changed, 15 insertions(+), 11 deletions(-) diff --git a/.env.development b/.env.development index a7b52e29..80cab90f 100644 --- a/.env.development +++ b/.env.development @@ -9,7 +9,7 @@ ENV = 'development' # VITE_APP_BASE_API_Url = 'http://25.18.122.78:9786' # DEV -VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7001' +VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7003' # app入口 #VITE_APP_BASE_API_Url = 'http://25.16.122.65:7001' @@ -17,4 +17,4 @@ VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7001' #VITE_APP_BASE_API_Url = 'http://25.18.122.66:9786' # h5专用地址 -VITE_APP_BASE_H5_API_Url = 'https://aitstest.jlbank.com.cn:7001' \ No newline at end of file +VITE_APP_BASE_H5_API_Url = 'https://aitstest.jlbank.com.cn:7003' \ No newline at end of file diff --git a/src/pages/course/index.vue b/src/pages/course/index.vue index 1fbf94f6..68a6b6b2 100644 --- a/src/pages/course/index.vue +++ b/src/pages/course/index.vue @@ -368,7 +368,8 @@ import { onShow } from "@dcloudio/uni-app" overflow-y: auto; z-index: 2; background-color: #f9f9f9; - box-shadow: 0rpx 3.85rpx 38rpx rgba(0,0,0,.05); + box-shadow: 0rpx 19rpx 19rpx rgba(160,160,160,.5); + border-radius: 0 0 20rpx 20rpx; padding: 0rpx 25rpx; box-sizing: border-box; .filter-type{ diff --git a/src/pages/index/dialog.vue b/src/pages/index/dialog.vue index d5f27998..c0f99472 100644 --- a/src/pages/index/dialog.vue +++ b/src/pages/index/dialog.vue @@ -117,7 +117,7 @@ import { commonUploadVoiceFile } from "@/api/common.js" - + const socketStore = useSocketStore() const { SocketObj } = storeToRefs(socketStore) const userInfo = computed(() => getUserInfo()) @@ -470,6 +470,7 @@ display: flex; flex-direction: column; height: 100vh; + overflow: hidden; .top-bg{ background: linear-gradient(16deg,rgba(234,246,255,0) 0%,#c3e6ff 100%); height: 480rpx; @@ -485,8 +486,8 @@ position: absolute; overflow: hidden; left:0; - top: 0; - height: 100%; + top: 1%; + height: 102%; width: 100%; padding: 0; box-sizing: border-box; @@ -616,14 +617,15 @@ } .question-item{ white-space: nowrap; - height: 76rpx; - line-height: 74rpx; + height: 66rpx; + line-height: 66rpx; background-color: #fff; border: 2rpx solid #e0dede; padding: 0 16rpx; border-radius: 11rpx; margin-right: 16rpx; display: inline-block; + font-size: 26rpx; &:last-child{ margin-right: 0; } diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index f5ff929b..2a738d35 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -708,18 +708,18 @@ .study_duration_div { height: 162rpx; background: linear-gradient(180deg, rgba(238, 246, 255, 0.65) 0%, #C5DFFD 4%, #FFFFFF 100%); + border-radius: 23rpx; display: flex; justify-content: space-around; z-index: 20; - + .item { flex: 1; // background-color: red; display: flex; flex-direction: column; justify-content: center; - .top { font-family: PingFangSC, PingFang SC; font-weight: 400; diff --git a/src/pages/login/login.vue b/src/pages/login/login.vue index 38a882ed..76ae587e 100644 --- a/src/pages/login/login.vue +++ b/src/pages/login/login.vue @@ -118,7 +118,8 @@ const login_fun = (): void => { back_state.value = false; common.navigateBack(); // 返回登录的上一页 } else { - common.switchTab('/pages/index/index'); + // common.switchTab('/pages/index/index'); + common.redirectTo('/pages/index/dialog', {animationType: 'slide-in-bottom'}); } } }) From ce57ad38610d2d9c38547627c15304d03b989a62 Mon Sep 17 00:00:00 2001 From: yanghang Date: Tue, 22 Jul 2025 14:25:05 +0800 Subject: [PATCH 2/3] =?UTF-8?q?fix=EF=BC=9B=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/course/components/touchBtn.vue | 3 +-- src/pages/course/index.vue | 7 ++++--- src/pages/index/dialog.vue | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/pages/course/components/touchBtn.vue b/src/pages/course/components/touchBtn.vue index 69f1d7ca..6b272a48 100644 --- a/src/pages/course/components/touchBtn.vue +++ b/src/pages/course/components/touchBtn.vue @@ -10,7 +10,7 @@ + placeholderStyle='color:#999999;font-size:26rpx' placeholder="请输入文字"> @@ -115,7 +115,6 @@ const initRecord = () => { let _recordPerm = uni.getAppAuthorizeSetting() let _state = _recordPerm.microphoneAuthorized if(_state === 'authorized'){ - console.log('大大大大大'); showTalkingModel.value = true } }) diff --git a/src/pages/course/index.vue b/src/pages/course/index.vue index 1fbf94f6..ff98e60b 100644 --- a/src/pages/course/index.vue +++ b/src/pages/course/index.vue @@ -284,12 +284,13 @@ import { onShow } from "@dcloudio/uni-app" getPrdLineTypeListApi().then(res=>{ coursePrdlineList.value = res.body||[] }) - getTraTagListApi().then(res=>{ - tagsTree.value = res.body||[] - }) changeTab({name:'全部'}) }) onActivated(() => { + // 重新获取标签信息 + getTraTagListApi().then(res=>{ + tagsTree.value = res.body||[] + }) changeTab({name:activeTab.value || '全部'}) }); diff --git a/src/pages/index/dialog.vue b/src/pages/index/dialog.vue index d5f27998..98c38aa3 100644 --- a/src/pages/index/dialog.vue +++ b/src/pages/index/dialog.vue @@ -400,7 +400,7 @@ }else{ talkingList.value.pop() uni.showToast({ - title: '语音内容不能为空!', + title: '未识别到文字!', icon: "none", duration:1000 }); From 47c9c53f3d749eda0f4269a80f36ee1a038520b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B0=E5=B2=A9?= Date: Tue, 22 Jul 2025 15:37:43 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E9=A6=96=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/index/dialog.vue | 697 ++++++++++++++++++++----------------- src/pages/index/index.vue | 18 +- src/pages/login/login.vue | 17 +- 3 files changed, 399 insertions(+), 333 deletions(-) diff --git a/src/pages/index/dialog.vue b/src/pages/index/dialog.vue index c0f99472..b3ac284d 100644 --- a/src/pages/index/dialog.vue +++ b/src/pages/index/dialog.vue @@ -3,7 +3,8 @@ - + @@ -16,7 +17,7 @@ - + Hi,我是{{ userInfo.mascotInfo?.mascotName || ''}} 工作学习,我都能帮你! 试试他的能力 @@ -25,36 +26,22 @@ - {{questionList[item-1]}} + {{questionList[item-1]}} - {{questionList[item + Math.ceil(questionList.length/2)-1]}} + @click="sendText(questionList[item + Math.ceil(questionList.length/2)-1])"> + {{questionList[item + Math.ceil(questionList.length/2)-1]}} - - + + @@ -90,36 +77,56 @@ - + \ No newline at end of file diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 2a738d35..928cdf01 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -225,6 +225,7 @@