|
|
@ -25,6 +25,7 @@ |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
|
|
|
import { mapMutations, mapState } from 'vuex' |
|
|
export default { |
|
|
export default { |
|
|
name: "s-video", |
|
|
name: "s-video", |
|
|
data() { |
|
|
data() { |
|
|
@ -41,6 +42,16 @@ |
|
|
preQuestionId: "", |
|
|
preQuestionId: "", |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
|
|
|
computed: { |
|
|
|
|
|
...mapState('m_user', ['userId']) |
|
|
|
|
|
}, |
|
|
|
|
|
watch:{ |
|
|
|
|
|
jsonId:{ |
|
|
|
|
|
handler:function(){ |
|
|
|
|
|
this.getBindJson(); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
props:{ |
|
|
props:{ |
|
|
jsonId: { |
|
|
jsonId: { |
|
|
type: String, |
|
|
type: String, |
|
|
@ -73,14 +84,17 @@ |
|
|
this.end = true; |
|
|
this.end = true; |
|
|
this.answerList = []; |
|
|
this.answerList = []; |
|
|
this.question = false; |
|
|
this.question = false; |
|
|
|
|
|
uni.navigateTo({ |
|
|
|
|
|
url: '/subpkg/complete/complete' |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
nextQuestion(outId, obj) { |
|
|
nextQuestion(outId, obj) { |
|
|
// 点击开始后先增加题次 |
|
|
// 点击开始后先增加题次 |
|
|
if(2==outId) { |
|
|
if(2==outId) { |
|
|
this.$api.addQuestionFre({ |
|
|
this.$api.addQuestionFre({ |
|
|
roleId : "1", |
|
|
roleId : this.jsonId, |
|
|
userId : "123" |
|
|
userId : this.userId |
|
|
}) |
|
|
}) |
|
|
.then(res => { |
|
|
.then(res => { |
|
|
this.questionFreId = res.data; |
|
|
this.questionFreId = res.data; |
|
|
@ -102,7 +116,7 @@ |
|
|
} |
|
|
} |
|
|
// 播放下一视频 |
|
|
// 播放下一视频 |
|
|
this.hasNodeId(outId); |
|
|
this.hasNodeId(outId); |
|
|
this.videoObj.videoUrl = 'http://localhost:85/'+this.videoObj.videoUrl |
|
|
this.videoObj.videoUrl = uni.$http.baseUrl + this.videoObj.videoUrl |
|
|
this.start = false; |
|
|
this.start = false; |
|
|
this.question = false; |
|
|
this.question = false; |
|
|
this.auto = true; |
|
|
this.auto = true; |
|
|
|