From 08f2817c0abe2e8a3769b327d5c1249c212c1623 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=B3=89=E5=BE=B7?= Date: Mon, 23 Jun 2025 14:44:31 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=8F=90=E5=87=BA=E8=AF=84=E4=BB=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 10 ++++ src/pages/courseDetail/submit.vue | 79 ++++++++++++++++++++++++++++--- 2 files changed, 83 insertions(+), 6 deletions(-) diff --git a/src/App.vue b/src/App.vue index 5327b48d..694860bc 100644 --- a/src/App.vue +++ b/src/App.vue @@ -66,6 +66,9 @@ view { .fz-30 { font-size: 30rpx; } +.fz-28 { + font-size: 28rpx; +} .fz-24 { font-size: 24rpx; } @@ -80,6 +83,13 @@ view { .flex { display: flex; } +.flex-jcsb { + display: flex; + justify-content: space-between; +} +.tar{ + text-align: right; +} .fw-600 { font-weight: 600; } diff --git a/src/pages/courseDetail/submit.vue b/src/pages/courseDetail/submit.vue index 0ab60bc6..cee54cad 100644 --- a/src/pages/courseDetail/submit.vue +++ b/src/pages/courseDetail/submit.vue @@ -20,14 +20,23 @@ - 综合评分 - - + 综合评分 + + + + + 0 + 10 - 平分 - 平分 + + 建议 + 提问 + + + + @@ -43,6 +52,11 @@ import { getCourseDetailApi } from '@/api/courseDetail.js'; // import {formatDate2} from '@/common/common.js' import common from '@/common/common'; const num = ref(0); +const activeTab = ref(1); +const aaa = ref('') +const changeTab = (type) => { + activeTab.value = type; +}; // tab栏 onLoad((params) => {}); @@ -53,7 +67,7 @@ onLoad((params) => {}); } .detail-body { box-sizing: border-box; - min-height: calc(100vh - (var(--status-bar-height)+37rpx)); + min-height: calc(100vh - (var(--status-bar-height)+50rpx)); padding: 29rpx 37rpx; width: 100%; display: flex; @@ -90,11 +104,57 @@ onLoad((params) => {}); font-size: 24rpx; margin-bottom: 28rpx; } +.num { + display: flex; + width: 100%; + // height: 92rpx; + justify-content: space-between; + margin-bottom: 40rpx; +} .num-pic { width: 92rpx; height: 92rpx; + padding-top: 20rpx; + margin-right: 20rpx; } .num-box { + flex: 1; + display: flex; + // height: 100%; + justify-content: space-between; + flex-direction: column; +} +.slider-box { + width: 100%; + :deep(.uv-slider) { + width: 100%; + } + :deep(uni-slider) { + margin: 0 16rpx 10rpx 0; + } + :deep(.uni-slider-tap-area) { + padding: 10rpx 0; + } + :deep(.uni-slider-thumb) { + border: 2px solid #0066ff; + } +} +.tab { + display: flex; +} +.tab-btn { + width: 78rpx; + height: 36rpx; + font-size: 22rpx; + color: #999999; + text-align: center; + border-radius: 8rpx; + border: 2rpx solid #999999; + margin-right: 30rpx; +} +.is-active { + color: #0066ff; + border: 2rpx solid #0066ff; } .btn-box { position: fixed; @@ -110,6 +170,13 @@ onLoad((params) => {}); height: 80rpx; } } +.c-666 { + color: #666666; +} +.c-000 { + font-weight: 600; + color: #000; +} .fixed_search_div { padding: calc(10rpx + var(--status-bar-height)) 15rpx 24rpx 30rpx; display: flex; From 0abb025ea88702fedb5c19cc3a2a818bc8570459 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=B3=89=E5=BE=B7?= Date: Mon, 23 Jun 2025 14:57:00 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E6=8F=90=E5=87=BA=E8=AF=84=E4=BB=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages.json | 171 ++---------------------------- src/pages/courseDetail/submit.vue | 9 +- 2 files changed, 16 insertions(+), 164 deletions(-) diff --git a/src/pages.json b/src/pages.json index 2d4f51ea..9cd6dcfe 100644 --- a/src/pages.json +++ b/src/pages.json @@ -1,5 +1,4 @@ { -<<<<<<< HEAD "pages": [ { "path": "pages/index/index", @@ -19,6 +18,15 @@ } } }, + { + "path": "pages/courseDetail/submit", + "style": { + "navigationBarTitleText": "提交评价", + "app-plus": { + "titleNView": false + } + } + }, { "path": "pages/study/index", "style": { @@ -155,165 +163,4 @@ } }, "uniIdRouter": {} -======= - "pages": [{ - "path": "pages/index/index", - "style": { - "navigationBarTitleText": "首页", - "app-plus": { - "titleNView": false - } - } - }, - { - "path": "pages/courseDetail/index", - "style": { - "navigationBarTitleText": "课程详情", - "app-plus": { - "titleNView": false - } - } - }, - { - "path": "pages/courseDetail/submit", - "style": { - "navigationBarTitleText": "提交评价", - "app-plus": { - "titleNView": false - } - } - }, - { - "path": "pages/study/index", - "style": { - "navigationBarTitleText": "学习", - "app-plus": { - "titleNView": false - } - } - }, - { - "path": "pages/intelligentAnswering/index", - "style": { - "navigationBarTitleText": "智能问答", - "app-plus": { - "titleNView": false - } - } - }, - { - "path": "pages/scene/index", - "style": { - "navigationBarTitleText": "场景", - "app-plus": { - "titleNView": false - } - } - }, - { - "path": "pages/me/index", - "style": { - "navigationBarTitleText": "我的", - "app-plus": { - "titleNView": false - } - } - }, - { - "path": "pages/login/login", - "style": { - "navigationBarTitleText": "登录", - "app-plus": { - "titleNView": false - } - } - }, - { - "path": "pages/other/web_view", - "style": { - "navigationBarTitleText": "", - "app-plus": { - "titleNView": false - } - } - }, - { - "path": "pages/login/ysxy", - "style": { - "navigationBarTitleText": "", - "app-plus": { - "titleNView": false - } - } - }, - { - "path": "pages/search/search", - "style": { - "navigationBarTitleText": "", - "app-plus": { - "titleNView": false - } - } - }, - { - "path": "pages/course/index", - "style": { - "navigationBarTitleText": "课程中心", - "app-plus": { - "titleNView": false - } - } - }, - { - "path": "pages/course/study", - "style": { - "navigationBarTitleText": "" - } - } - ], - "tabBar": { - "list": [{ - "text": "首页", - "pagePath": "pages/index/index" - }, - { - "text": "学习", - "pagePath": "pages/study/index" - }, - { - "text": "场景", - "pagePath": "pages/scene/index" - }, - { - "text": "我的", - "pagePath": "pages/me/index" - } - ], - "color": "#666666", - "selectedColor": "#0066FF", - "fontSize": "16px", - "borderStyle": "white", - "borderColor": "#ffffff", - "height": "70px", - "spacing": "10px", - "midButton": { - "iconPath": "/static/images/icon/fawn.png", - "width": "86px", - "height": "86px", - "iconWidth": "90px" - } - }, - "globalStyle": { - "navigationBarTextStyle": "black", - "navigationBarTitleText": "AI智能培训", - "navigationBarBackgroundColor": "#F8F8F8", - "backgroundColor": "#F8F8F8", - "navigationStyle": "custom", - "app-plus": { - "titleView": false, - "bounce": "none" - } - }, - "uniIdRouter": {} ->>>>>>> 8af971b2f3c186031f86d692251cf77f91455270 } \ No newline at end of file diff --git a/src/pages/courseDetail/submit.vue b/src/pages/courseDetail/submit.vue index cee54cad..be117054 100644 --- a/src/pages/courseDetail/submit.vue +++ b/src/pages/courseDetail/submit.vue @@ -35,7 +35,7 @@ 提问 - + @@ -81,7 +81,7 @@ onLoad((params) => {}); margin-bottom: 30rpx; } .body-content { - // flex: 1; + flex: 1; background-color: #ffffff; border-radius: 15rpx; padding: 36rpx; @@ -141,6 +141,7 @@ onLoad((params) => {}); } .tab { display: flex; + margin-bottom: 30rpx; } .tab-btn { width: 78rpx; @@ -156,6 +157,10 @@ onLoad((params) => {}); color: #0066ff; border: 2rpx solid #0066ff; } +.input-textarea{ + // height: 250rpx; + // padding-bottom: 250rpx; +} .btn-box { position: fixed; bottom: 0; From 97bca636343d59a45454f0d32e5c9d618c324d1e Mon Sep 17 00:00:00 2001 From: yanghang Date: Mon, 23 Jun 2025 15:55:56 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E9=A2=84=E8=A7=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../image-preview/image-preview.vue | 16 +- .../image-preview/video-preview.vue | 69 +++++ src/pages.json | 12 +- src/pages/course/components/talkingItem.vue | 267 ++++++++++++++++++ src/pages/course/study.vue | 106 ++++++- 5 files changed, 455 insertions(+), 15 deletions(-) create mode 100644 src/components/image-preview/video-preview.vue create mode 100644 src/pages/course/components/talkingItem.vue diff --git a/src/components/image-preview/image-preview.vue b/src/components/image-preview/image-preview.vue index 9ae86165..1becd9d0 100644 --- a/src/components/image-preview/image-preview.vue +++ b/src/components/image-preview/image-preview.vue @@ -32,7 +32,7 @@ imgUrlShow: { handler(newval, oldval) { if (oldval) { - URL.revokeObjectURL(oldval); + // URL.revokeObjectURL(oldval); } }, immediate: true, @@ -43,12 +43,12 @@ getPreviewUrlBlob(id) { // this.imgUrlShow = '@/static/images/index/message_b.png' previewFile(id).then((res) => { - this.imgUrlShow = URL.createObjectURL(res); - // const reader = new FileReader(); - // reader.readAsDataURL(res) - // reader.onloadend = () => { - // this.imgUrlShow = reader.result; - // } + // this.imgUrlShow = URL.createObjectURL(res); + const reader = new FileReader(); + reader.readAsDataURL(res) + reader.onloadend = () => { + this.imgUrlShow = reader.result; + } }); }, }, @@ -59,7 +59,7 @@ this.watching = true }, beforeDestroy() { - URL.revokeObjectURL(this.imgUrlShow); + // URL.revokeObjectURL(this.imgUrlShow); }, } diff --git a/src/components/image-preview/video-preview.vue b/src/components/image-preview/video-preview.vue new file mode 100644 index 00000000..5e21bebc --- /dev/null +++ b/src/components/image-preview/video-preview.vue @@ -0,0 +1,69 @@ + + + + + \ No newline at end of file diff --git a/src/pages.json b/src/pages.json index 411dbbb9..2576942a 100644 --- a/src/pages.json +++ b/src/pages.json @@ -100,11 +100,13 @@ } }, { - "path" : "pages/course/study/study", - "style" : - { - "navigationBarTitleText" : "" - } + "path": "pages/course/study", + "style": { + "navigationBarTitleText": "课程学习", + "app-plus": { + "titleNView": false + } + } } ], "tabBar": { diff --git a/src/pages/course/components/talkingItem.vue b/src/pages/course/components/talkingItem.vue new file mode 100644 index 00000000..e4c7ffed --- /dev/null +++ b/src/pages/course/components/talkingItem.vue @@ -0,0 +1,267 @@ + + + + + \ No newline at end of file diff --git a/src/pages/course/study.vue b/src/pages/course/study.vue index 27202d0d..b06f14e2 100644 --- a/src/pages/course/study.vue +++ b/src/pages/course/study.vue @@ -1,12 +1,114 @@