This commit is contained in:
2023-09-17 23:49:42 +08:00
parent 3379a9b18e
commit ded28b62fb
8 changed files with 48 additions and 23 deletions

View File

@@ -15,7 +15,7 @@
<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="color: #FF6E02;font-size: 18px;">章节练习</view>
<text style="color: #FF6E02;font-size: 14px;">5</text>
<text style="color: #FF6E02;font-size: 14px;">{{chapterNum}}</text>
</view>
</view>
</view>
@@ -67,6 +67,7 @@
export default {
data() {
return {
chapterNum:0,
errorIcon,
newRulesIcon,
neverWriteIcon,
@@ -111,6 +112,7 @@
}
this.getExamPoint()
this.getQuestionNum()
this.getChapterList()
},
computed: {
...mapState(useQuestionStore, ["loading_subject4", "loading_subject1", "version"]), //映射函数取出tagslist
@@ -120,6 +122,15 @@
},
methods: {
...mapActions(useQuestionStore, ['getAllQuestion']),
getChapterList(){
const carTypeId=storage.get('carType') || '1001'
const key=this.subject=='1'?'ChapterOfSubjectOne':'ChapterOfSubjectFour'
querySysConfigList(carTypeId,'ChapterOfSubjectOne').then(resp=>{
if(resp.code==='0000'&&resp.data){
this.chapterNum=resp.data.length
}
})
},
getQuestionNum() {
querySpecialNum({
carTypeId: storage.get('carType') || '1001',