Commit 3db23f41 authored by 甘瑞文's avatar 甘瑞文

学生

parent 0f8703bb
......@@ -57,7 +57,7 @@ export default {
console.log('回执', data);
});
},
onMsg(){
onMsg() {
},
startCountdown() {
......
......@@ -46,7 +46,7 @@ export default {
},
data() {
return {
step: 'unsubmit',//unsubmit submitted stopped
step: 'unsubmit',// unsubmit submitted stopped
answer: '',
Options,
submitting: false,
......@@ -80,9 +80,9 @@ export default {
if (!msg.payload.eventId || !msg.payload.type || msg.payload.type < 0) {
return
}
if(msg.type === 'question-stop' && msg.payload.eventId === this.eventId){
if (msg.type === 'question-stop' && msg.payload.eventId === this.eventId) {
this.step = 'stopped'
return
}
}
},
......
......@@ -62,16 +62,16 @@ export default {
if (!msg.payload.eventId || !msg.payload.type || msg.payload.type < 0) {
return
}
if(msg.type === 'finish'){
if (msg.type === 'finish') {
this.currentComponment = 'locker'
return
}
if(msg.type !== 'question'){
if (msg.type !== 'question') {
return
}
this.eventId = msg.payload.eventId;
this.currentComponment = 'locker';
this.$nextTick( () => {
this.currentComponment = 'locker';
this.$nextTick(() => {
const {type} = msg.payload;
if (type === 3) {
this.currentComponment = 'select-question'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment