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/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/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 @@ diff --git a/src/pages/courseDetail/submit.vue b/src/pages/courseDetail/submit.vue index 0ab60bc6..be117054 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; @@ -67,7 +81,7 @@ onLoad((params) => {}); margin-bottom: 30rpx; } .body-content { - // flex: 1; + flex: 1; background-color: #ffffff; border-radius: 15rpx; padding: 36rpx; @@ -90,11 +104,62 @@ 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; + margin-bottom: 30rpx; +} +.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; +} +.input-textarea{ + // height: 250rpx; + // padding-bottom: 250rpx; } .btn-box { position: fixed; @@ -110,6 +175,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;