40 lines
898 B
Vue
40 lines
898 B
Vue
<template>
|
|
<view>
|
|
<web-view :src="src" />
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import {
|
|
getVideoUrl
|
|
} from '@/apis/interfaces/mission.js'
|
|
import eventBus from '@/utils/eventBus.js'
|
|
export default {
|
|
data() {
|
|
return {
|
|
id: '',
|
|
src:''
|
|
};
|
|
},
|
|
onLoad(e) {
|
|
this.id = e.id;
|
|
getVideoUrl(e.id).then(res => {
|
|
this.src = res
|
|
}).catch(res => {
|
|
uni.showModal({
|
|
title: '视频播放出错',
|
|
confirmText: '立即返回',
|
|
showCancel: false,
|
|
success: (res) => {
|
|
uni.navigateBack()
|
|
}
|
|
})
|
|
})
|
|
},
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
|
|
</style>
|