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