|
|
@ -1,7 +1,7 @@ |
|
|
<template> |
|
|
<template> |
|
|
<view class="video-wrapper" id="video-container"> |
|
|
<view class="video-wrapper" id="video-container"> |
|
|
<view class="marsk" @click="playVideo" v-if="showLayer"> |
|
|
<view class="marsk" @click="playVideo" v-if="showLayer"> |
|
|
<image class="animg" src="/static/images/start.png"></image> |
|
|
<image class="animg-start" src="/static/images/start.png"></image> |
|
|
</view> |
|
|
</view> |
|
|
<view style="position:relative;width:100%;" :style="{'height':videoHeight+'px'}"> |
|
|
<view style="position:relative;width:100%;" :style="{'height':videoHeight+'px'}"> |
|
|
<video id="video_play" @click="stopPlay" :src="videoObj.videoUrl" :controls="false" @ended="videoEnded()" |
|
|
<video id="video_play" @click="stopPlay" :src="videoObj.videoUrl" :controls="false" @ended="videoEnded()" |
|
|
@ -311,6 +311,7 @@ |
|
|
this.preQuestionId = this.videoObj.questionId; |
|
|
this.preQuestionId = this.videoObj.questionId; |
|
|
// 直接自动开始播放 |
|
|
// 直接自动开始播放 |
|
|
if (nodeId == 1) { |
|
|
if (nodeId == 1) { |
|
|
|
|
|
console.log(this.startNodeId) |
|
|
this.nextQuestion(this.startNodeId, null) |
|
|
this.nextQuestion(this.startNodeId, null) |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
@ -344,7 +345,7 @@ |
|
|
background-color: rgba(0, 0, 0, .35); |
|
|
background-color: rgba(0, 0, 0, .35); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.animg { |
|
|
.animg-start { |
|
|
position: absolute; |
|
|
position: absolute; |
|
|
top: 0; |
|
|
top: 0; |
|
|
left: 0; |
|
|
left: 0; |
|
|
|