瀏覽代碼

播放器兼容性处理

release
HolyKnightIX 2 年之前
父節點
當前提交
8cc1fdc479
共有 5 個檔案被更改,包括 19 行新增11 行删除
  1. 二進制
      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

二進制
dist.zip 查看文件


+ 1
- 1
src/api/login.js 查看文件

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

+ 13
- 10
src/views/model/downloadVideo.vue 查看文件

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


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


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

backToIndex() { backToIndex() {
this.$router.push("/myPage"); this.$router.push("/myPage");
}, },
@@ -103,11 +102,15 @@ export default {
); );
}, },
}, },
created() {
this.videoId = this.$route.query.videoId;
this.getVideoDetail(this.videoId);
},
created() {},
mounted() { 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; this.inPage = true;
scrollToID("top"); scrollToID("top");
}, },


+ 3
- 0
src/views/model/generateVideo.vue 查看文件

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


+ 2
- 0
src/views/myPage/myPage.vue 查看文件

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


Loading…
取消
儲存