提交
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user