소스 검색

播放器兼容性处理

release
HolyKnightIX 2 년 전
부모
커밋
8cc1fdc479
5개의 변경된 파일19개의 추가작업 그리고 11개의 파일을 삭제
  1. BIN
      dist.zip
  2. +1
    -1
      src/api/login.js
  3. +13
    -10
      src/views/model/downloadVideo.vue
  4. +3
    -0
      src/views/model/generateVideo.vue
  5. +2
    -0
      src/views/myPage/myPage.vue

BIN
dist.zip 파일 보기


+ 1
- 1
src/api/login.js 파일 보기

@@ -55,7 +55,7 @@ export function doUpdateInviteCode(inviteCodeData) {
*/
export function doLoginOut() {
return request({
url: `/api/user/loginOut`,
url: `/api/user/loginout`,
method: 'get',
})
}

+ 13
- 10
src/views/model/downloadVideo.vue 파일 보기

@@ -3,12 +3,7 @@
<div id="top"></div>
<HeadTop />
<div class="video">
<!-- <video
:src="
'https://smapitest.malls.iformall.com/myVideo/' +
videoDetail.videoPath
"
/> -->
<!-- <video ref="video" :src="videoUrl" /> -->
<div id="J_prismPlayer" />

<div class="desc">
@@ -58,6 +53,10 @@ export default {
this.$router.push(url);
},

play() {
this.$refs.video.play();
},

backToIndex() {
this.$router.push("/myPage");
},
@@ -103,11 +102,15 @@ export default {
);
},
},
created() {
this.videoId = this.$route.query.videoId;
this.getVideoDetail(this.videoId);
},
created() {},
mounted() {
this.videoId = this.$route.query.videoId;
if (this.videoId) {
this.getVideoDetail(this.videoId);
} else {
this.videoUrl = this.$route.query.videoUrl;
this.open();
}
this.inPage = true;
scrollToID("top");
},


+ 3
- 0
src/views/model/generateVideo.vue 파일 보기

@@ -270,10 +270,13 @@ export default {
this.isShowCover = false;
clearTimeout(this.timeOuter);
Toast.success("视频生成成功!");
const url = res.data.videoPathUri + res.data.videoPath;
console.log(url, "url");
this.$router.push({
path: "/downloadVideo",
query: {
videoId: res.data.videoId,
videoUrl: url,
},
});
this.timerOver = true;


+ 2
- 0
src/views/myPage/myPage.vue 파일 보기

@@ -109,10 +109,12 @@ export default {
Toast.fail("视频生成中");
return;
} else if (status == 2) {
const url = item.videoPathUri + item.videoPath;
this.$router.push({
path: "/downloadVideo",
query: {
videoId: item.videoId,
videoUrl: url,
},
});
} else if (status == 3) {


불러오는 중...
취소
저장