commit
This commit is contained in:
@@ -53,8 +53,8 @@
|
||||
<script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
|
||||
<script src="${base!}/assets/platform/js/scannerQrCodeJs.js"></script>
|
||||
|
||||
<script type="text/javascript"
|
||||
src="https://webapi.amap.com/maps?v=2.0&key=57f0d098ba1b881ecc436c4cfd23bbbf&plugin=AMap.PolyEditor,AMap.Geolocation"></script>
|
||||
<!-- <script type="text/javascript"-->
|
||||
<!-- src="https://webapi.amap.com/maps?v=2.0&key=57f0d098ba1b881ecc436c4cfd23bbbf&plugin=AMap.PolyEditor,AMap.Geolocation"></script>-->
|
||||
|
||||
<script src="https://cdn-go.cn/cdn/vod-js-sdk-v6/latest/vod-js-sdk-v6.js"></script>
|
||||
<link href="https://web.sdk.qcloud.com/player/tcplayer/release/v4.5.2/tcplayer.min.css" rel="stylesheet"/>
|
||||
|
||||
@@ -157,26 +157,30 @@ layout("/mobile/platform.html"){
|
||||
<div class="page-survey" style="touch-action: manipulation;min-height: 100vh;">
|
||||
<div class="survey-container">
|
||||
<!-- v-if="questionData.qlx==2 && (questionData.ctMode==1 || questionData.ctMode==2)"-->
|
||||
<div class="survey-head-top">
|
||||
<template>
|
||||
<div v-if="questionData.qlx==2 && questionData.ctMode==2 && isSameDay && randomCount > 0"
|
||||
class="randomCount"
|
||||
@click="openRandomCount">
|
||||
第<span>{{randomCount}}</span>轮
|
||||
</div>
|
||||
<div v-if="questionData.qlx==2 && (questionData.ctMode==1 || (questionData.ctMode==2 && !isSameDay))"
|
||||
class="randomCount"
|
||||
@click="openRandomCount">
|
||||
<!--定时定题 可切换时间查看以前的题目-->
|
||||
<span>{{currentDate}}</span>
|
||||
</div>
|
||||
</template>
|
||||
<div class="survey-head-top" v-if="finishAnswer && ( currentScore || currentScore===0 )">
|
||||
<!-- <template>-->
|
||||
<!-- <div v-if="questionData.qlx==2 && questionData.ctMode==2 && isSameDay && randomCount > 0"-->
|
||||
<!-- class="randomCount"-->
|
||||
<!-- @click="openRandomCount">-->
|
||||
<!-- 第<span>{{randomCount}}</span>轮-->
|
||||
<!-- </div>-->
|
||||
<!-- <div v-if="questionData.qlx==2 && (questionData.ctMode==1 || (questionData.ctMode==2 && !isSameDay))"-->
|
||||
<!-- class="randomCount"-->
|
||||
<!-- @click="openRandomCount">-->
|
||||
<!-- <!–定时定题 可切换时间查看以前的题目–>-->
|
||||
<!-- <span>{{currentDate}}</span>-->
|
||||
<!-- </div>-->
|
||||
<!-- </template>-->
|
||||
<div class="score" v-if="finishAnswer && ( currentScore || currentScore===0 )">
|
||||
{{questionData.calcScoreMode==1?'今日最高成绩':'得分'}}{{currentScore}}
|
||||
最新得分{{currentScore}}
|
||||
<!-- {{questionData.calcScoreMode==1?'最高成绩':'得分'}}{{currentScore}}-->
|
||||
</div>
|
||||
<div class="timer" v-if="questionData.enableTimer && !finishAnswer">
|
||||
<span>剩余时间:{{remainder}}</span>
|
||||
<div class="" style="margin-left: 5px;color: #1989fa" @click="viewHistoryScore">
|
||||
查看历史得分
|
||||
</div>
|
||||
<!-- <div class="timer" v-if="questionData.enableTimer && !finishAnswer">-->
|
||||
<!-- <span>剩余时间:{{remainder}}</span>-->
|
||||
<!-- </div>-->
|
||||
</div>
|
||||
<div class="survey-head">
|
||||
<div class="title">
|
||||
@@ -196,8 +200,8 @@ layout("/mobile/platform.html"){
|
||||
{{issue.iisdx?'单选':'多选'}}
|
||||
</van-tag>
|
||||
</template>
|
||||
<!-- <van-tag v-if="issue.fraction" type="primary" size="large">{{issue.fraction}}分-->
|
||||
<!-- </van-tag>-->
|
||||
<van-tag v-if="issue.fraction" type="primary" size="large">{{issue.fraction}}分
|
||||
</van-tag>
|
||||
</div>
|
||||
<h2 class="question-title">
|
||||
<span class="question-seq">
|
||||
@@ -267,6 +271,15 @@ layout("/mobile/platform.html"){
|
||||
close-on-click-action
|
||||
></van-action-sheet>
|
||||
|
||||
<van-action-sheet v-model="historyScorePopup" title="历史得分记录">
|
||||
<van-cell-group style="min-height: 500px">
|
||||
<van-cell v-for="item in historyScores">
|
||||
<div slot="title">第{{item.answerNum}}次</div>
|
||||
<div style="font-weight: bold;color: #000000">{{item.score}}分</div>
|
||||
</van-cell>
|
||||
</van-cell-group>
|
||||
</van-action-sheet>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -310,7 +323,11 @@ layout("/mobile/platform.html"){
|
||||
//答题时间(使用秒)
|
||||
countDownSeconds: 0,
|
||||
//剩余时间
|
||||
remainder: null
|
||||
remainder: null,
|
||||
|
||||
//历史分数
|
||||
historyScores:[],
|
||||
historyScorePopup:false
|
||||
|
||||
}
|
||||
},
|
||||
@@ -362,6 +379,14 @@ layout("/mobile/platform.html"){
|
||||
},
|
||||
|
||||
methods: {
|
||||
viewHistoryScore(){
|
||||
$.get(BASE_URL+"/historyScore",{questionId:this.id}).then(res=>{
|
||||
if(res.code===0){
|
||||
this.historyScores = res.data
|
||||
this.historyScorePopup = true
|
||||
}
|
||||
})
|
||||
},
|
||||
openRandomCount() {
|
||||
this.randomCountSheetShow = true
|
||||
this.randomActions = []
|
||||
@@ -573,7 +598,20 @@ layout("/mobile/platform.html"){
|
||||
|
||||
answerAgain() {
|
||||
if(this.questionData.ctMode===3){
|
||||
location.reload()
|
||||
$.post(BASE_URL+'/answerAgainCommon',{id:this.id}).then(resp=>{
|
||||
if(resp.code===0){
|
||||
this.questionData = resp.data
|
||||
this.finishAnswer = false
|
||||
setTimeout(() => {
|
||||
this.questionData.issues.forEach(issue => {
|
||||
issue.wors.forEach(wor => {
|
||||
this.$refs['checkboxes' + wor.wid][0].toggle(false)
|
||||
})
|
||||
})
|
||||
}, 0)
|
||||
this.checkTimer()
|
||||
}
|
||||
})
|
||||
}else{
|
||||
this.finishAnswer = false
|
||||
setTimeout(() => {
|
||||
@@ -653,7 +691,16 @@ layout("/mobile/platform.html"){
|
||||
} else {
|
||||
this.countDownSeconds = this.countDownSeconds - 1
|
||||
}
|
||||
},
|
||||
|
||||
getHistoryScore(){
|
||||
$.get(BASE_URL+"/historyScore",{questionId:this.id}).then(res=>{
|
||||
if(res.code===0){
|
||||
this.historyScores = res.data
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
async created() {
|
||||
if (this.timerInterval) {
|
||||
@@ -666,6 +713,7 @@ layout("/mobile/platform.html"){
|
||||
await this.checkUserFinishAnswer()
|
||||
await this.getScore()
|
||||
await this.checkTimer()
|
||||
this.getHistoryScore()
|
||||
this.mLoading = false
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user