|
|
@ -190,7 +190,7 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</u-popup> |
|
|
|
</u-popup> |
|
|
|
<u-popup :show="showVip" mode="bottom" :closeOnClickOverlay="true" :round="16" @close="showVip=false"> |
|
|
|
<!-- <u-popup :show="showVip" mode="bottom" :closeOnClickOverlay="true" :round="16" @close="showVip=false"> |
|
|
|
<view class="p14" style="z-index: 9;"> |
|
|
|
<view class="p14" style="z-index: 9;"> |
|
|
|
<view class="wp100 flex ai-c jc-sb"> |
|
|
|
<view class="wp100 flex ai-c jc-sb"> |
|
|
|
<text class="fs30 fw600 cor-000">VIP题库</text> |
|
|
|
<text class="fs30 fw600 cor-000">VIP题库</text> |
|
|
@ -219,7 +219,7 @@ |
|
|
|
<image style="width: 276rpx;height: 88rpx;margin-top: -5px;" src="../../static/image/index/buy.png"></image> |
|
|
|
<image style="width: 276rpx;height: 88rpx;margin-top: -5px;" src="../../static/image/index/buy.png"></image> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</u-popup> |
|
|
|
</u-popup> --> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
@ -333,16 +333,13 @@ export default { |
|
|
|
this.topicIndex ++; |
|
|
|
this.topicIndex ++; |
|
|
|
this.qIndex=this.topicIndex |
|
|
|
this.qIndex=this.topicIndex |
|
|
|
setTimeout(()=>{ |
|
|
|
setTimeout(()=>{ |
|
|
|
console.log(12345); |
|
|
|
|
|
|
|
this.renderSwiper(this.topicIndex); |
|
|
|
this.renderSwiper(this.topicIndex); |
|
|
|
},1000) |
|
|
|
},1000) |
|
|
|
} |
|
|
|
} |
|
|
|
if(this.topicIndex<=this.questionList.length-1){ |
|
|
|
if(this.topicIndex===this.questionList.length-1){ |
|
|
|
this.qIndex=this.topicIndex |
|
|
|
this.qIndex=this.topicIndex+1 |
|
|
|
}else{ |
|
|
|
|
|
|
|
this.qIndex++ |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
if(this.qIndex>=this.questionList.length-1){ |
|
|
|
if(this.qIndex>this.questionList.length-1){ |
|
|
|
setTimeout(()=>{ |
|
|
|
setTimeout(()=>{ |
|
|
|
this.tipShow=true |
|
|
|
this.tipShow=true |
|
|
|
},1000) |
|
|
|
},1000) |
|
|
@ -405,7 +402,9 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
//开通VIP |
|
|
|
//开通VIP |
|
|
|
toVip(){ |
|
|
|
toVip(){ |
|
|
|
this.showVip=true |
|
|
|
uni.navigateTo({ |
|
|
|
|
|
|
|
url:"/pages/index/videoVip?subject="+this.subject |
|
|
|
|
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
submitPaper(){ |
|
|
|
submitPaper(){ |
|
|
|
this.$refs.countDown_1.pause(); |
|
|
|
this.$refs.countDown_1.pause(); |
|
|
@ -565,9 +564,14 @@ export default { |
|
|
|
this.questionList[this.topicIndex].optionList[index].chooseOption =`${this.questionList[this.topicIndex].optionList[index].chooseOption?this.questionList[this.topicIndex].optionList[index].chooseOption:''}${op}` |
|
|
|
this.questionList[this.topicIndex].optionList[index].chooseOption =`${this.questionList[this.topicIndex].optionList[index].chooseOption?this.questionList[this.topicIndex].optionList[index].chooseOption:''}${op}` |
|
|
|
this.questionList[this.topicIndex].clickAnswer = `${this.questionList[this.topicIndex].optionList[index].clickAnswer?this.questionList[this.topicIndex].optionList[index].clickAnswer:''}${op}` |
|
|
|
this.questionList[this.topicIndex].clickAnswer = `${this.questionList[this.topicIndex].optionList[index].clickAnswer?this.questionList[this.topicIndex].optionList[index].clickAnswer:''}${op}` |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
|
|
|
|
//如果是多选 点击的选项中不包含该选项则拼接进去,如果包含则能删除 |
|
|
|
if(this.questionList[this.topicIndex].type=='3'&&!this.questionList[this.topicIndex].clickAnswer.includes(op)){ |
|
|
|
if(this.questionList[this.topicIndex].type=='3'&&!this.questionList[this.topicIndex].clickAnswer.includes(op)){ |
|
|
|
this.questionList[this.topicIndex].optionList[index].chooseOption =`${this.questionList[this.topicIndex].optionList[index].chooseOption?this.questionList[this.topicIndex].optionList[index].chooseOption:''}${op}` |
|
|
|
this.questionList[this.topicIndex].optionList[index].chooseOption =`${this.questionList[this.topicIndex].optionList[index].chooseOption?this.questionList[this.topicIndex].optionList[index].chooseOption:''}${op}` |
|
|
|
this.questionList[this.topicIndex].clickAnswer =`${this.questionList[this.topicIndex].clickAnswer}${op}` |
|
|
|
this.questionList[this.topicIndex].clickAnswer =`${this.questionList[this.topicIndex].clickAnswer}${op}` |
|
|
|
|
|
|
|
}else if(this.questionList[this.topicIndex].type=='3'&&this.questionList[this.topicIndex].clickAnswer.includes(op)){ |
|
|
|
|
|
|
|
this.questionList[this.topicIndex].optionList[index].chooseOption ='' |
|
|
|
|
|
|
|
let reg2 = new RegExp(op); // 不加'g',仅删除字符串里第一个"a" |
|
|
|
|
|
|
|
this.questionList[this.topicIndex].clickAnswer = this.questionList[this.topicIndex].clickAnswer.replace(reg2,""); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if(this.tCurrent!==1&&this.questionList[this.topicIndex].type!='3'){ |
|
|
|
if(this.tCurrent!==1&&this.questionList[this.topicIndex].type!='3'){ |
|
|
@ -600,12 +604,10 @@ export default { |
|
|
|
this.renderSwiper(this.topicIndex); |
|
|
|
this.renderSwiper(this.topicIndex); |
|
|
|
},1000) |
|
|
|
},1000) |
|
|
|
} |
|
|
|
} |
|
|
|
if(this.topicIndex<=this.questionList.length-1){ |
|
|
|
if(this.topicIndex===this.questionList.length-1){ |
|
|
|
this.qIndex=this.topicIndex |
|
|
|
this.qIndex=this.topicIndex+1 |
|
|
|
}else{ |
|
|
|
|
|
|
|
this.qIndex++ |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
if(this.qIndex>=this.questionList.length-1){ |
|
|
|
if(this.qIndex>this.questionList.length-1){ |
|
|
|
setTimeout(()=>{ |
|
|
|
setTimeout(()=>{ |
|
|
|
this.tipShow=true |
|
|
|
this.tipShow=true |
|
|
|
},1000) |
|
|
|
},1000) |
|
|
|