Commit 03d58f77 authored by jyx's avatar jyx

代码优化

parent d11823b5
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
</template> </template>
<script> <script>
import common from '@/mixins/common'; import common from '@/mixins/common';
import ttVideoPlayer from '@/ttcomponents/tt-video-player' import ttVideoPlayer from '@/ttcomponents/tt-video-player'
import { import {
...@@ -67,9 +67,9 @@ ...@@ -67,9 +67,9 @@
export default { export default {
name: "recommendVideo", name: "recommendVideo",
mixins: [common], mixins: [common],
components: { components: {
ttVideoPlayer ttVideoPlayer
}, },
data() { data() {
return { return {
...@@ -282,8 +282,9 @@ ...@@ -282,8 +282,9 @@
this.isqp = e.detail.show this.isqp = e.detail.show
}, },
detail(detail) { detail(detail) {
navigateTo(`/pagesC/video/ttVideoDetail?data=` + encodeURIComponent(JSON.stringify(detail)) + navigateTo(`/pagesC/ttvideo/ttVideoDetail?data=` + encodeURIComponent(JSON.stringify(detail)) +
`&playNext=1`) '&tt_album_id=' + detail.douyinAlbumId + '&tt_episode_id=' + detail.douyinEpisodeId +
`&playNext=1`);
}, },
collect(vedioId, index) { collect(vedioId, index) {
this.originList[index].collect = 1 this.originList[index].collect = 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment