This commit is contained in:
曹辉 2023-04-28 10:01:38 +08:00
parent 2ecc410ce3
commit dc798299f1

View File

@ -42,9 +42,12 @@
</view>
</view>
<u-popup v-model="videoshow" mode="center" closeable @close='videoshowfalse'>
<video id="video" v-if="videoshow" :src="baseurl+videoitem.itemDirectoryUrl" @timeupdate='videotimeupdate'
:initial-time='videoitem.watchTime' @error='videoerror' :custom-cache="false"
@play='videoplays'></video>
<video id="video" v-if="videoshowtwo" :src="baseurl+videoitem.itemDirectoryUrl"
@timeupdate='videotimeupdate' :initial-time='videoitem.watchTime' @error='videoerror'
:custom-cache="false" @play='videoplays'></video>
<video id="video" v-if="!videoshowtwo" :src="baseurl+videoitem.itemDirectoryUrl"
@timeupdate='videotimeupdate' :initial-time='videoitem.watchTime' @error='videoerror'
:custom-cache="false" @play='videoplays'></video>
</u-popup>
<u-toast ref="uToast" />
</view>
@ -74,6 +77,7 @@
trainingItemId: undefined, //id
trainingOrderNo: undefined, //orderno
videoshow: false, //
videoshowtwo: false,
videoitem: {
watchTime: 0,
}, //
@ -156,6 +160,7 @@
}
})
}
this.videoshowtwo = !this.videoshowtwo
this.videoshow = true
this.videoContext = uni.createVideoContext('video', this)
} else {