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

学生

parent 0f8703bb
...@@ -57,7 +57,7 @@ export default { ...@@ -57,7 +57,7 @@ export default {
console.log('回执', data); console.log('回执', data);
}); });
}, },
onMsg(){ onMsg() {
}, },
startCountdown() { startCountdown() {
......
...@@ -46,7 +46,7 @@ export default { ...@@ -46,7 +46,7 @@ export default {
}, },
data() { data() {
return { return {
step: 'unsubmit',//unsubmit submitted stopped step: 'unsubmit',// unsubmit submitted stopped
answer: '', answer: '',
Options, Options,
submitting: false, submitting: false,
...@@ -80,9 +80,9 @@ export default { ...@@ -80,9 +80,9 @@ export default {
if (!msg.payload.eventId || !msg.payload.type || msg.payload.type < 0) { if (!msg.payload.eventId || !msg.payload.type || msg.payload.type < 0) {
return return
} }
if(msg.type === 'question-stop' && msg.payload.eventId === this.eventId){ if (msg.type === 'question-stop' && msg.payload.eventId === this.eventId) {
this.step = 'stopped' this.step = 'stopped'
return
} }
} }
}, },
......
...@@ -62,16 +62,16 @@ export default { ...@@ -62,16 +62,16 @@ export default {
if (!msg.payload.eventId || !msg.payload.type || msg.payload.type < 0) { if (!msg.payload.eventId || !msg.payload.type || msg.payload.type < 0) {
return return
} }
if(msg.type === 'finish'){ if (msg.type === 'finish') {
this.currentComponment = 'locker' this.currentComponment = 'locker'
return return
} }
if(msg.type !== 'question'){ if (msg.type !== 'question') {
return return
} }
this.eventId = msg.payload.eventId; this.eventId = msg.payload.eventId;
this.currentComponment = 'locker'; this.currentComponment = 'locker';
this.$nextTick( () => { this.$nextTick(() => {
const {type} = msg.payload; const {type} = msg.payload;
if (type === 3) { if (type === 3) {
this.currentComponment = 'select-question' 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