修改
This commit is contained in:
@@ -51,8 +51,9 @@
|
|||||||
})
|
})
|
||||||
|
|
||||||
onLoad((option) => {
|
onLoad((option) => {
|
||||||
console.log("option",option)
|
if(option.flag){
|
||||||
flag.value=option.flag
|
flag.value=option.flag
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
|||||||
@@ -37,8 +37,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="titleType info" v-else-if="dates>item.dueDate">已过期</div>
|
<div class="titleType info" v-else-if="dates>item.dueDate">已过期</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="rightBtn" v-if="(dates>item.startDate||dates==item.startDate)&&dates<item.dueDate&&item.isContinue!=1">开始考试</div>
|
<div class="rightBtn" v-if="(dates>item.startDate||dates==item.startDate)&&dates<item.dueDate&&item.isContinue!=1" @click="handleOperation(item,1)">开始考试</div>
|
||||||
<div class="rightBtn" v-if="(dates>item.startDate||dates==item.startDate)&&dates<item.dueDate&&item.isContinue==1">继续考试</div>
|
<div class="rightBtn" v-if="(dates>item.startDate||dates==item.startDate)&&dates<item.dueDate&&item.isContinue==1" @click="handleOperation(item,2)">继续考试</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="heng"></div>
|
<div class="heng"></div>
|
||||||
<div class="cardCon">
|
<div class="cardCon">
|
||||||
@@ -120,8 +120,8 @@
|
|||||||
<div class="detailCon">考试结束后可查看成绩和答案解析</div>
|
<div class="detailCon">考试结束后可查看成绩和答案解析</div>
|
||||||
|
|
||||||
<div style="display: flex;justify-content: center;margin-top: 30rpx;">
|
<div style="display: flex;justify-content: center;margin-top: 30rpx;">
|
||||||
<div class="rightBtn" v-if="(dates>examInfo.startDate||dates==examInfo.startDate)&&dates<examInfo.dueDate&&examInfo.isContinue!=1">开始考试</div>
|
<div class="rightBtn" v-if="(dates>examInfo.startDate||dates==examInfo.startDate)&&dates<examInfo.dueDate&&examInfo.isContinue!=1" @click="handleOperation(examInfo,1)">开始考试</div>
|
||||||
<div class="rightBtn" v-if="(dates>examInfo.startDate||dates==examInfo.startDate)&&dates<examInfo.dueDate&&examInfo.isContinue==1">继续考试</div>
|
<div class="rightBtn" v-if="(dates>examInfo.startDate||dates==examInfo.startDate)&&dates<examInfo.dueDate&&examInfo.isContinue==1" @click="handleOperation(examInfo,2)">继续考试</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -269,6 +269,9 @@ function jumps(url){
|
|||||||
function clones(){
|
function clones(){
|
||||||
dialogVisible.value=false
|
dialogVisible.value=false
|
||||||
}
|
}
|
||||||
|
function handleOperation(row,i) {
|
||||||
|
navTo(`/packageB/train/video/videoDetail?id=${video.videoId}`);
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="stylus" scoped>
|
<style lang="stylus" scoped>
|
||||||
|
|||||||
@@ -204,12 +204,15 @@ function queryData(){
|
|||||||
$api.myRequest('/train/public/trainPractice/getQuestions', {
|
$api.myRequest('/train/public/trainPractice/getQuestions', {
|
||||||
userId: userInfo.value.userId
|
userId: userInfo.value.userId
|
||||||
},'post',9100,header).then((resData) => {
|
},'post',9100,header).then((resData) => {
|
||||||
resData.forEach((item,i)=>{
|
if(resData&&resData.code==200){
|
||||||
problemData.value.push(item)
|
resData.data.forEach((item,i)=>{
|
||||||
problemList.value.push({index:i+1,whether:""})
|
problemData.value.push(item)
|
||||||
})
|
problemList.value.push({index:i+1,whether:""})
|
||||||
start()
|
})
|
||||||
accuracyRates()
|
start()
|
||||||
|
accuracyRates()
|
||||||
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
function collect(is){
|
function collect(is){
|
||||||
@@ -222,7 +225,9 @@ function collect(is){
|
|||||||
questionId:problemData.value[questionIndex.value-1].questionId,
|
questionId:problemData.value[questionIndex.value-1].questionId,
|
||||||
collect:is
|
collect:is
|
||||||
},'post',9100,header).then((resData) => {
|
},'post',9100,header).then((resData) => {
|
||||||
problemData.value[questionIndex.value-1].isCollect=is
|
if(resData&&resData.code==200){
|
||||||
|
problemData.value[questionIndex.value-1].isCollect=is
|
||||||
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
//正确率
|
//正确率
|
||||||
@@ -234,7 +239,9 @@ function accuracyRates(){
|
|||||||
$api.myRequest('/train/public/trainPractice/getCount', {
|
$api.myRequest('/train/public/trainPractice/getCount', {
|
||||||
userId: userInfo.value.userId,
|
userId: userInfo.value.userId,
|
||||||
},'post',9100,header).then((resData) => {
|
},'post',9100,header).then((resData) => {
|
||||||
accuracyRate.value=resData.truePresent
|
if(resData&&resData.code==200){
|
||||||
|
accuracyRate.value=resData.data.truePresent
|
||||||
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
//提交答案
|
//提交答案
|
||||||
|
|||||||
Reference in New Issue
Block a user