BUG优化

dev
xiepeng 2024-07-08 17:59:37 +08:00
parent d0d1c0abcd
commit 2eaf4f22d2
1 changed files with 7 additions and 3 deletions

View File

@ -9,7 +9,7 @@
<view v-if="videoSrc"> <view v-if="videoSrc">
<video <video
id="video" id="video"
:src="videoSrc" :src="baseImgPath + videoSrc"
:poster="videoPoster" :poster="videoPoster"
autoplay autoplay
controls controls
@ -45,11 +45,14 @@
</template> </template>
<script> <script>
import {basePath} from "@/common/tool"; import {
basePath, baseImgPath
} from "@/common/tool";
export default { export default {
data() { data() {
return { return {
baseImgPath: baseImgPath,
CLASS_ID: '', CLASS_ID: '',
POST_ID: '', POST_ID: '',
STUDENT_ID: '', STUDENT_ID: '',
@ -111,7 +114,7 @@ export default {
title: '请稍候' title: '请稍候'
}) })
uni.request({ uni.request({
url: basePath + '/app/audioOrVideo/getPlatPlayInfo', url: basePath + '/app/audioOrVideo/getPlayInfo',
method: 'POST', method: 'POST',
dataType: 'json', dataType: 'json',
header: { header: {
@ -126,6 +129,7 @@ export default {
if ("success" == resData.result) { if ("success" == resData.result) {
if (resData.PLAYURL) { if (resData.PLAYURL) {
this.videoSrc = resData.PLAYURL; this.videoSrc = resData.PLAYURL;
console.log("111",this.videoSrc)
this.videoPoster = resData.COVERURL; this.videoPoster = resData.COVERURL;
} else { } else {
uni.showToast({ uni.showToast({