From 21f57b7d48150ed263fab7537f61f784d960f89d Mon Sep 17 00:00:00 2001 From: yanghang Date: Mon, 14 Jul 2025 08:31:14 +0800 Subject: [PATCH 1/3] =?UTF-8?q?navigateTo=20=E6=96=B0=E5=A2=9E=E5=8F=82?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/common.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/common/common.js b/src/common/common.js index 3384863f..0abbddac 100644 --- a/src/common/common.js +++ b/src/common/common.js @@ -33,8 +33,9 @@ const loading = (title = '加载中', mask = true) => uni.showLoading({ const hideLoading = () => uni.hideLoading() // 保留当前页面,跳转到应用内的某个页面,使用uni.navigateBack可以返回到原页面。 -const navigateTo = url => uni.navigateTo({ - url: url +const navigateTo = (url, data = {}) => uni.navigateTo({ + url: url, + ...data }); // 关闭所有页面,打开到应用内的某个页面。 const reLaunch = url => { From 7e8d6eaca4a8087f2b66984da6cc947a2365ad8a Mon Sep 17 00:00:00 2001 From: yanghang Date: Mon, 14 Jul 2025 17:42:47 +0800 Subject: [PATCH 2/3] =?UTF-8?q?ai=E9=97=AE=E7=AD=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 5 + src/components/course-item/course-item.vue | 2 +- .../image-preview/image-preview.vue | 2 +- src/pages/course/components/touchBtn.vue | 40 ++- src/pages/course/study.vue | 8 +- src/pages/index/components/answer.vue | 9 + src/pages/index/components/question.vue | 157 ++++++++ src/pages/index/components/talking-item.vue | 28 ++ src/pages/index/dialog.vue | 336 +++++++++++++++++- src/pages/login/login.vue | 3 +- src/static/images/dialog/answer-fankui.png | Bin 0 -> 1607 bytes src/static/images/dialog/answer-restart.png | Bin 0 -> 1758 bytes src/static/images/dialog/answer-stop.png | Bin 0 -> 1209 bytes src/static/images/dialog/answer-yifankui.png | Bin 0 -> 1456 bytes src/static/images/dialog/answer-yizan.png | Bin 0 -> 1404 bytes src/static/images/dialog/answer-zan.png | Bin 0 -> 1597 bytes src/static/images/dialog/icons/PK.png | Bin 0 -> 2029 bytes src/static/images/dialog/icons/exam.png | Bin 0 -> 1582 bytes src/static/images/dialog/icons/static.png | Bin 0 -> 1172 bytes src/static/images/dialog/icons/study.png | Bin 0 -> 2158 bytes src/static/images/dialog/icons/task.png | Bin 0 -> 1616 bytes src/static/images/dialog/icons/test.png | Bin 0 -> 990 bytes src/static/images/dialog/icons/wrong.png | Bin 0 -> 1240 bytes src/static/images/dialog/pet-1.png | Bin 0 -> 235263 bytes src/static/images/dialog/pet-2.png | Bin 0 -> 221766 bytes src/static/images/dialog/pet-3.png | Bin 0 -> 216701 bytes 26 files changed, 574 insertions(+), 16 deletions(-) create mode 100644 src/pages/index/components/answer.vue create mode 100644 src/pages/index/components/question.vue create mode 100644 src/pages/index/components/talking-item.vue create mode 100644 src/static/images/dialog/answer-fankui.png create mode 100644 src/static/images/dialog/answer-restart.png create mode 100644 src/static/images/dialog/answer-stop.png create mode 100644 src/static/images/dialog/answer-yifankui.png create mode 100644 src/static/images/dialog/answer-yizan.png create mode 100644 src/static/images/dialog/answer-zan.png create mode 100644 src/static/images/dialog/icons/PK.png create mode 100644 src/static/images/dialog/icons/exam.png create mode 100644 src/static/images/dialog/icons/static.png create mode 100644 src/static/images/dialog/icons/study.png create mode 100644 src/static/images/dialog/icons/task.png create mode 100644 src/static/images/dialog/icons/test.png create mode 100644 src/static/images/dialog/icons/wrong.png create mode 100644 src/static/images/dialog/pet-1.png create mode 100644 src/static/images/dialog/pet-2.png create mode 100644 src/static/images/dialog/pet-3.png diff --git a/.env.development b/.env.development index 948cb700..c27d2b64 100644 --- a/.env.development +++ b/.env.development @@ -7,7 +7,12 @@ ENV = 'development' # 苗扬 # VITE_APP_BASE_API_Url = 'http://25.64.16.133:9786' +# UAT +# VITE_APP_BASE_API_Url = 'http://25.18.122.78:9786' + +# DEV VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7001' + # http://25.18.122.65:7001/download/dev-jax.apk # app入口 #VITE_APP_BASE_API_Url = 'http://25.16.122.65:7001' diff --git a/src/components/course-item/course-item.vue b/src/components/course-item/course-item.vue index d96ac18b..37871bbc 100644 --- a/src/components/course-item/course-item.vue +++ b/src/components/course-item/course-item.vue @@ -1,7 +1,7 @@ @@ -224,6 +239,10 @@ const showChangeSeekModelNow = () => { // changePlayItemId() showSeekModel.value = true } +const showBgModel = ref(false) +const showChangeBgModelNow = () => { + showBgModel.value = true +} // 关闭播放状态 const changePlayItemId = (id = '') => { if(activeVoiceTalkingItemId.value === id){ @@ -318,6 +337,18 @@ const getGraphInfoUnStudy = (flag = 0) => { if(!_body.chatBody) { return } + if(Number(_body.bodyTyp) === 7){ + common.show('恭喜你已学完全部知识点', '有什么心得跟我们分享吗?',true, '取消','去评论').then((res) => { + if(res) { + // 去评论 + common.navigateTo(`/pages/courseDetail/submit?crsId=${crsId.value}&crsNum=${crsNum.value}&from=study`) + }else{ + // 取消 + common.navigateTo(`/pages/courseDetail/index?crsId=${crsId.value}&crsNum=${crsNum.value}&from=study`) + } + }).finally(() => {}) + return + } lastTalkingInfo.value = { crsId: crsId.value, qstLogId: _body.chatBody,