|
|
|
@ -125,11 +125,11 @@ |
|
|
|
|
<text class="cor-666">{{collectList.includes(questionList[topicIndex].questionId)?'已收藏':'收藏'}}</text> |
|
|
|
|
</view> |
|
|
|
|
<view class="text-center"> |
|
|
|
|
<view style="color: #00B74F;">{{type=='exam'?rightList.length:storageRightList.length}}</view> |
|
|
|
|
<view style="color: #00B74F;">{{navTitle !== '顺序答题'?rightList.length:storageRightList.length}}</view> |
|
|
|
|
<text class="cor-666">答对</text> |
|
|
|
|
</view> |
|
|
|
|
<view class="text-center"> |
|
|
|
|
<view style="color: #FF6E02;">{{type=='exam'?wrongList.length:storageWrongList.length}}</view> |
|
|
|
|
<view style="color: #FF6E02;">{{navTitle !== '顺序答题'?wrongList.length:storageWrongList.length}}</view> |
|
|
|
|
<text class="cor-666">答错</text> |
|
|
|
|
</view> |
|
|
|
|
<view class="text-center" @tap="popupShow=!popupShow"> |
|
|
|
@ -217,11 +217,11 @@ |
|
|
|
|
<text class="cor-666">{{collectList.includes(questionList[topicIndex].questionId)?'已收藏':'收藏'}}</text> |
|
|
|
|
</view> |
|
|
|
|
<view class="text-center"> |
|
|
|
|
<view style="color: #00B74F;">{{type=='exam'?rightList.length:storageRightList.length}}</view> |
|
|
|
|
<view style="color: #00B74F;">{{navTitle !== '顺序答题'?rightList.length:storageRightList.length}}</view> |
|
|
|
|
<text class="cor-666">答对</text> |
|
|
|
|
</view> |
|
|
|
|
<view class="text-center"> |
|
|
|
|
<view style="color: #FF6E02;">{{type=='exam'?wrongList.length:storageWrongList.length}}</view> |
|
|
|
|
<view style="color: #FF6E02;">{{navTitle !== '顺序答题'?wrongList.length:storageWrongList.length}}</view> |
|
|
|
|
<text class="cor-666">答错</text> |
|
|
|
|
</view> |
|
|
|
|
<view class="text-center" @tap="popupShow=!popupShow"> |
|
|
|
@ -313,14 +313,11 @@ |
|
|
|
|
isShowAll: { |
|
|
|
|
type: Boolean, |
|
|
|
|
default: true |
|
|
|
|
}, |
|
|
|
|
subject: { |
|
|
|
|
type: [String, Number], |
|
|
|
|
default: 1, |
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
subject:'1', |
|
|
|
|
showSkillInfo:'hidden', |
|
|
|
|
currentType:storage.get('carType') || '1001', |
|
|
|
|
onoff:'0', |
|
|
|
@ -768,10 +765,17 @@ |
|
|
|
|
// this.renderSwiper(0) |
|
|
|
|
this.$emit('changeTab', index) |
|
|
|
|
}, |
|
|
|
|
getQuestionList(val, title) { |
|
|
|
|
getQuestionList(val, title, subject) { |
|
|
|
|
if (title) { |
|
|
|
|
this.navTitle = title |
|
|
|
|
} |
|
|
|
|
if(subject){ |
|
|
|
|
this.subject = subject |
|
|
|
|
console.log(this.subject); |
|
|
|
|
this.storageRightList=storage.get(`rightList_subject${subject}`) || [] |
|
|
|
|
this.storageWrongList=storage.get(`wrongList_subject${subject}`) || [] |
|
|
|
|
this.collectList=storage.get(`collectList_subject${subject}`) || [] |
|
|
|
|
} |
|
|
|
|
if (val && val.length) { |
|
|
|
|
this.questionList = JSON.parse(val) |
|
|
|
|
} else { |
|
|
|
@ -779,7 +783,12 @@ |
|
|
|
|
} |
|
|
|
|
console.log(this.questionList); |
|
|
|
|
if (this.navTitle === '顺序答题') { |
|
|
|
|
this.pickerTopic(this[`currentIndex_subject${this.subject}`]) |
|
|
|
|
if(subject){ |
|
|
|
|
this.pickerTopic(this[`currentIndex_subject${subject}`]) |
|
|
|
|
}else{ |
|
|
|
|
this.pickerTopic(this[`currentIndex_subject${this.subject}`]) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
|
this.pickerTopic(this.topicIndex) |
|
|
|
|
} |
|
|
|
|