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