From f762ca430d983ce285b3b14f98a6e2ce7fd37171 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=84=86=E7=9A=AE=E9=B8=AD?= <1003092440@qq.com> Date: Mon, 28 Aug 2023 02:02:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jtools/api/question.js | 11 + src/pages/index/components/Subject1.vue | 47 +-- src/pages/index/components/Subject2.vue | 345 +++++++++++------- src/pages/index/index.vue | 3 +- src/pages/questionBank/baseOperate.vue | 95 ++++- .../questionBank/components/Question.vue | 58 ++- src/pages/questionBank/exclusiveExercise.vue | 109 +++++- src/pages/questionBank/practiceExams.vue | 45 ++- src/pages/questionBank/questionBank.vue | 47 ++- src/pages/questionBank/videoDetail.vue | 55 +-- src/pages/questionBank/wrongQuestion.vue | 4 +- 11 files changed, 578 insertions(+), 241 deletions(-) diff --git a/src/jtools/api/question.js b/src/jtools/api/question.js index f879c9f..0c97c80 100644 --- a/src/jtools/api/question.js +++ b/src/jtools/api/question.js @@ -60,3 +60,14 @@ export function queryProjectList(data) { noToken:true }); } +// + +//获取专项题目数量 +export function querySpecialNum(data) { + return request({ + url: 'driver-api/tdQuestion/querySpecialNum', + method: 'POST', + data, + noToken:true + }); +} diff --git a/src/pages/index/components/Subject1.vue b/src/pages/index/components/Subject1.vue index cd8e40d..d3f2976 100644 --- a/src/pages/index/components/Subject1.vue +++ b/src/pages/index/components/Subject1.vue @@ -15,7 +15,7 @@ - + @@ -60,7 +60,7 @@ 真实考场模拟 - + @@ -137,36 +137,41 @@ }) }, toVip(){ - if(storage.get('token')){ - uni.navigateTo({ - url:"/pages/index/videoVip?subject="+this.subject - }) - }else{ - uni.navigateTo({ - url:'/pages/login/login' - }) - } + // if(storage.get('token')){ + // uni.navigateTo({ + // url:"/pages/index/videoVip?subject="+this.subject + // }) + // }else{ + // uni.navigateTo({ + // url:'/pages/login/login' + // }) + // } + uni.showToast({ + title:'敬请期待', + icon:'none' + }) }, toClass(){ - if(storage.get('token')){ + uni.showToast({ + title:'敬请期待', + icon:'none' + }) + }, + toAnswer(title,val) { + if(title=='精简500题'){ uni.navigateTo({ - url:"/pages/questionBank/baseOperate" + url:"/pages/questionBank/questionBank?navTitle="+title+"&subject="+this.subject+"&needVip="+val+"&isVip=1" }) }else{ uni.navigateTo({ - url:'/pages/login/login' + url:"/pages/questionBank/questionBank?navTitle="+title+"&subject="+this.subject+"&needVip="+val }) } }, - toAnswer(title,val) { - uni.navigateTo({ - url:"/pages/questionBank/questionBank?navTitle="+title+"&subject="+this.subject+"&needVip="+val - }) - }, - toExams(){ + toExams(val){ if(storage.get('token')){ uni.navigateTo({ - url:"/pages/questionBank/practiceExams?subject="+this.subject + url:"/pages/questionBank/practiceExams?subject="+this.subject+'&'+val }) }else{ uni.navigateTo({ diff --git a/src/pages/index/components/Subject2.vue b/src/pages/index/components/Subject2.vue index 779d9c5..ad4d6ab 100644 --- a/src/pages/index/components/Subject2.vue +++ b/src/pages/index/components/Subject2.vue @@ -1,11 +1,13 @@ + + .center-box { + position: absolute; + width: 100%; + top: 170rpx; + padding: 0 28rpx; + } + + .video_box { + width: 100%; + background: #FFFFFF; + border-radius: 16rpx; + padding: 14px; + } + + .tab_iem { + padding: 0 5px; + height: 56rpx; + line-height: 56rpx; + text-align: center; + background: #F5F5F5; + border-radius: 10rpx; + color: #333 + } + + .checked_tab { + background: linear-gradient(90deg, #11DF20 0%, #01B74F 100%); + color: #fff + } + + .pic { + width: 300rpx; + height: 169rpx; + background: #00B74F; + border-radius: 8rpx; + } + + .play_btn_3 { + width: 65rpx; + height: 65rpx; + position: absolute; + left: 117.5rpx; + top: 52rpx + } + + .play_btn_2 { + width: 65rpx; + height: 65rpx; + position: absolute; + left: calc((100% - 65rpx)/2); + top: 148.5rpx + } + + /*scroll-view外层*/ + .skill-sequence-panel-content-wrapper { + position: relative; + white-space: nowrap; + } + + /*scroll-view本身*/ + .skill-sequence-panel-content { + min-width: 100%; + } + + /*scroll-view内层*/ + .skill-sequence-skill-wrapper { + display: inline-block; + margin-right: 15px; + } + \ No newline at end of file diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 764c2e0..0f88e09 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -8,8 +8,9 @@ + diff --git a/src/pages/questionBank/baseOperate.vue b/src/pages/questionBank/baseOperate.vue index 393f780..e897511 100644 --- a/src/pages/questionBank/baseOperate.vue +++ b/src/pages/questionBank/baseOperate.vue @@ -8,11 +8,15 @@ - - + + + + + - 上车、下车的方法 - 上车、下车的方法 + {{allVideoList[0]?.description}} + {{item.description}} @@ -20,25 +24,22 @@