@@ -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', | ||||
}) | }) | ||||
} | } |
@@ -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"); | ||||
}, | }, | ||||
@@ -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; | ||||
@@ -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) { | ||||