From bb3fb81962faaf67d439c8a2d1dfd87d12b7e168 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=84=86=E7=9A=AE=E9=B8=AD?= <1003092440@qq.com> Date: Thu, 17 Aug 2023 00:23:32 +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/components/j-navbar/j-navbar.vue | 144 +++++++++++++ src/pages.json | 23 +++ src/pages/index/components/Subject1.vue | 31 ++- src/pages/index/components/Subject2.vue | 93 +++++++-- src/pages/index/index.vue | 18 +- src/pages/questionBank/baseOperate.vue | 96 +++++++++ .../questionBank/components/Question.vue | 5 +- src/pages/questionBank/examResult.vue | 45 ++-- src/pages/questionBank/exclusiveExercise.vue | 109 ++++++++++ src/pages/questionBank/practiceExams.vue | 5 +- src/pages/questionBank/practiceResult.vue | 7 +- src/pages/questionBank/questionBank.vue | 12 +- src/pages/questionBank/videoDetail.vue | 27 +++ src/pages/questionBank/wrongQuestion.vue | 195 ++++++++++++++++++ src/static/image/practice/chapter_bg.png | Bin 0 -> 170738 bytes src/static/image/practice/error_icon.png | Bin 0 -> 17970 bytes src/static/image/practice/errorprone_bg.png | Bin 0 -> 165162 bytes src/static/image/practice/neverWrite_icon.png | Bin 0 -> 13463 bytes src/static/image/practice/newRules_icon.png | Bin 0 -> 19940 bytes 19 files changed, 754 insertions(+), 56 deletions(-) create mode 100644 src/components/j-navbar/j-navbar.vue create mode 100644 src/pages/questionBank/baseOperate.vue create mode 100644 src/pages/questionBank/exclusiveExercise.vue create mode 100644 src/pages/questionBank/videoDetail.vue create mode 100644 src/pages/questionBank/wrongQuestion.vue create mode 100644 src/static/image/practice/chapter_bg.png create mode 100644 src/static/image/practice/error_icon.png create mode 100644 src/static/image/practice/errorprone_bg.png create mode 100644 src/static/image/practice/neverWrite_icon.png create mode 100644 src/static/image/practice/newRules_icon.png diff --git a/src/components/j-navbar/j-navbar.vue b/src/components/j-navbar/j-navbar.vue new file mode 100644 index 0000000..c78a8f5 --- /dev/null +++ b/src/components/j-navbar/j-navbar.vue @@ -0,0 +1,144 @@ + + + + + diff --git a/src/pages.json b/src/pages.json index 119029f..5960441 100644 --- a/src/pages.json +++ b/src/pages.json @@ -42,6 +42,29 @@ "navigationStyle": "custom", "enablePullDownRefresh": false } + }, + { + "path": "pages/questionBank/exclusiveExercise", + "style": { + "navigationBarTitleText": "专项练习" + } + }, + { + "path": "pages/questionBank/wrongQuestion", + "style": { + "navigationBarTitleText": "错题收藏" + } + }, + { + "path": "pages/questionBank/baseOperate", + "style": { + "navigationStyle": "custom" + } + },{ + "path": "pages/questionBank/videoDetail", + "style": { + "navigationBarTitleText": "详情" + } } ], diff --git a/src/pages/index/components/Subject1.vue b/src/pages/index/components/Subject1.vue index e8a76f4..33efa4f 100644 --- a/src/pages/index/components/Subject1.vue +++ b/src/pages/index/components/Subject1.vue @@ -5,7 +5,7 @@ - + 顺序练习 0/2344 @@ -21,7 +21,7 @@ - + @@ -31,7 +31,7 @@ VIP课程 - + @@ -39,7 +39,7 @@ 精简500题 - + @@ -61,7 +61,7 @@ 考前密卷 - + @@ -70,7 +70,7 @@ - + 科一精品视频课 @@ -97,15 +97,30 @@ return {} }, methods: { - toAnswer() { + toClass(){ + uni.navigateTo({ + url:"/pages/questionBank/baseOperate" + }) + }, + toAnswer(title) { uni.navigateTo({ - url:"/pages/questionBank/questionBank" + url:"/pages/questionBank/questionBank?navTitle="+title }) }, toExams(){ uni.navigateTo({ url:"/pages/questionBank/practiceExams" }) + }, + toExclusive(){ + uni.navigateTo({ + url:"/pages/questionBank/exclusiveExercise" + }) + }, + toWrongList(){ + uni.navigateTo({ + url:"/pages/questionBank/wrongQuestion" + }) } } } diff --git a/src/pages/index/components/Subject2.vue b/src/pages/index/components/Subject2.vue index 18c7e22..3de3b95 100644 --- a/src/pages/index/components/Subject2.vue +++ b/src/pages/index/components/Subject2.vue @@ -2,32 +2,65 @@ - - - - - 顺序练习 - 0/2344 - - - - - - - 模拟考试 - 去考试 - - - - + + + - + + + + 科二考试项目讲解 + + 自动挡 + + + + + {{item.label}} + + + + + + + + 合肥科三真实考场 + + 全部8个考场 + + + + + @@ -42,5 +75,23 @@ export default { top: 170rpx; padding: 0 28rpx; } - +.video_box{ + width: 100%; + background: #FFFFFF; + border-radius: 16rpx; + padding: 14px; +} +.tab_iem{ + width: 145rpx; + 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 +} diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 6f274a5..2070e32 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -1,10 +1,15 @@ @@ -13,10 +18,12 @@ import useQuestionStore from '@/jtools/store/question' //引入store import storage from '@/jtools/storage'; import Subject1 from "./components/Subject1"; + import Subject2 from "./components/Subject2"; export default { - components: {Subject1}, + components: {Subject1,Subject2}, data() { return { + tIndex:0, searchValue:'', cityName:'', categoryList:[{ @@ -36,8 +43,9 @@ methods:{ ...mapActions(useQuestionStore, ['getQuestionList']), //映射action //切换科目 - changeCategory(){ - + changeCategory(val){ + this.tIndex=val.index + console.log(this.tIndex); }, //获取全部题库 getAllQuestion(){ diff --git a/src/pages/questionBank/baseOperate.vue b/src/pages/questionBank/baseOperate.vue new file mode 100644 index 0000000..1b5b2cb --- /dev/null +++ b/src/pages/questionBank/baseOperate.vue @@ -0,0 +1,96 @@ + + + + + \ No newline at end of file diff --git a/src/pages/questionBank/components/Question.vue b/src/pages/questionBank/components/Question.vue index 2264d21..27aaf24 100644 --- a/src/pages/questionBank/components/Question.vue +++ b/src/pages/questionBank/components/Question.vue @@ -1,5 +1,5 @@