pull/6/head
脆皮鸭 1 year ago
parent b9d7228a90
commit 90ffd2e4ff
  1. 7
      src/pages.json
  2. 1
      src/pages/index/videoVip.vue
  3. 42
      src/pages/questionBank/chapterExercise.vue
  4. 10
      src/pages/questionBank/components/Question.vue
  5. 13
      src/pages/questionBank/exclusiveExercise.vue
  6. 2
      src/pages/questionBank/questionBank.vue

@ -117,6 +117,13 @@
"navigationBarTitleText": "图标技巧", "navigationBarTitleText": "图标技巧",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
},
{
"path": "pages/questionBank/chapterExercise",
"style": {
"navigationBarTitleText": "章节练习",
"enablePullDownRefresh": false
}
} }
], ],

@ -104,6 +104,7 @@
width: 218rpx; width: 218rpx;
border-radius: 0 0 16rpx 12rpx; border-radius: 0 0 16rpx 12rpx;
background-color: #FF6E02; background-color: #FF6E02;
color:#fff
} }
.tag{ .tag{
width: 122rpx; width: 122rpx;

@ -0,0 +1,42 @@
<template>
<view>
<view class="chapter_item p14" v-for="(item,index) of chapterList" :key="index" @tap="toQuestion">
{{item.label}}
</view>
</view>
</template>
<script>
export default {
data() {
return {
chapterList:[
{label:'驾驶证申请相关'},
{label:'驾驶证申请相关'},
{label:'驾驶证登记处罚'},
{label:'机动车强制报废'},
{label:'其他考点'},
{label:'驾驶证登记处罚'},
{label:'机动车强制报废'},
{label:'其他考点'}]
}
},
methods:{
toQuestion(){
uni.navigateTo({
url:"/pages/questionBank/questionBank?navTitle="+章节技巧
})
}
}
}
</script>
<style scoped>
.chapter_item{
border-bottom: 1px solid rgb(210,209,214);
background-color: #fff;
}
.chapter_item:hover{
background-color: rgb(210,209,214);
}
</style>

@ -186,6 +186,7 @@
</template> </template>
<script> <script>
import storage from '@/jtools/storage';
export default { export default {
props:{ props:{
tabsList:{ tabsList:{
@ -217,6 +218,7 @@ export default {
qIndex:0, qIndex:0,
rightList:[], rightList:[],
wrongList:[], wrongList:[],
collectList:storage.get('collectList') || [],
questionList: [],// questionList: [],//
swiperList: [], // swiperList: [], //
swiperIndex: 0, // swiperIndex: 0, //
@ -265,18 +267,24 @@ export default {
}, },
toCollect(){ toCollect(){
if(this.questionList[this.topicIndex].isCollect){ if(this.questionList[this.topicIndex].isCollect){
if(this.collectList.includes(this.questionList[this.topicIndex].questionId)){
const idx=this.collectList.indexOf(this.questionList[this.topicIndex].questionId)
this.collectList.splice(idx,1)
}
this.questionList[this.topicIndex].isCollect=false this.questionList[this.topicIndex].isCollect=false
uni.showToast({ uni.showToast({
title:"取消收藏", title:"取消收藏",
icon:'none' icon:'none'
}) })
}else{ }else{
this.collectList.push(this.questionList[this.topicIndex].questionId)
this.questionList[this.topicIndex].isCollect=true this.questionList[this.topicIndex].isCollect=true
uni.showToast({ uni.showToast({
title:"已收藏", title:"已收藏",
icon:'none' icon:'none'
}) })
} }
storage.set('collectList',this.collectList)
}, },
cancel(){ cancel(){
this.tipShow=false this.tipShow=false
@ -369,7 +377,7 @@ export default {
} }
console.log(this.rightList); console.log(this.rightList);
if(this.wrongList.includes(this.questionList[this.topicIndex].questionId)){ if(this.wrongList.includes(this.questionList[this.topicIndex].questionId)){
const wIndex=this.wrongList.findIndex(this.questionList[this.topicIndex].questionId) const wIndex=this.wrongList.indexOf(this.questionList[this.topicIndex].questionId)
this.wrongList.splice(wIndex,1) this.wrongList.splice(wIndex,1)
} }
if(this.topicIndex<this.questionList.length-1){ if(this.topicIndex<this.questionList.length-1){

@ -1,15 +1,15 @@
<template> <template>
<view class="p14"> <view class="p14">
<view class="flex jc-sb"> <view class="flex jc-sb">
<view class="relative mr5"> <view class="relative mr5" @tap="toIconSkill">
<image style="width: 336rpx;height: 152rpx;" src="../../static/image/practice/errorprone_bg.png"> <image style="width: 336rpx;height: 152rpx;" src="../../static/image/practice/errorprone_bg.png">
</image> </image>
<view style="position: absolute;left: 0;top: 0;" class="p10" @tap="toIconSkill"> <view style="position: absolute;left: 0;top: 0;" class="p10">
<view style="color: #04B13B;font-size: 18px;">技巧</view> <view style="color: #04B13B;font-size: 18px;">技巧</view>
<text style="color: #04B13B;font-size: 14px;">快速记忆</text> <text style="color: #04B13B;font-size: 14px;">快速记忆</text>
</view> </view>
</view> </view>
<view class="relative ml5"> <view class="relative ml5" @tap="toChapterSkill">
<image style="width: 363rpx;height: 170rpx;" src="../../static/image/practice/chapter_bg.png"></image> <image style="width: 363rpx;height: 170rpx;" src="../../static/image/practice/chapter_bg.png"></image>
<view style="position: absolute;left: 0;top: 0;" class="p10"> <view style="position: absolute;left: 0;top: 0;" class="p10">
<view style="color: #FF6E02;font-size: 18px;">章节练习</view> <view style="color: #FF6E02;font-size: 18px;">章节练习</view>
@ -96,6 +96,11 @@
uni.navigateTo({ uni.navigateTo({
url:"/pages/index/iconSkill" url:"/pages/index/iconSkill"
}) })
},
toChapterSkill(){
uni.navigateTo({
url:"/pages/questionBank/chapterExercise"
})
} }
} }
} }

@ -3,7 +3,7 @@
<!-- <u-navbar :title="navTitle" @rightClick="rightClick" :autoBack="true"> <!-- <u-navbar :title="navTitle" @rightClick="rightClick" :autoBack="true">
</u-navbar> --> </u-navbar> -->
<j-navbar>{{navTitle}}</j-navbar> <j-navbar>{{navTitle}}</j-navbar>
<Question :tabsList="tabsList" :isShowAll="false" /> <Question :tabsList="tabsList" :isShowAll="true" />
</view> </view>
</template> </template>

Loading…
Cancel
Save