diff --git a/mixins/pageListenMixins.js b/mixins/pageListenMixins.js index b0dabe1..3a2bee5 100644 --- a/mixins/pageListenMixins.js +++ b/mixins/pageListenMixins.js @@ -14,7 +14,7 @@ export const pageListenMixins = { this.pageViewDateTime = getCurrDateTime() this.pageToWatchShowCount(this.pageKeyId) }, - onHide() { + onUnload() { this.pageToHideHandle() }, methods: { diff --git a/pages/LiveAndShortVideo/LiveAndShortVideo.vue b/pages/LiveAndShortVideo/LiveAndShortVideo.vue index 85aae75..6c5dfdd 100644 --- a/pages/LiveAndShortVideo/LiveAndShortVideo.vue +++ b/pages/LiveAndShortVideo/LiveAndShortVideo.vue @@ -130,7 +130,7 @@ export default { // this.videoContext = uni.createVideoContext('myVideo'); // this.videoContext.requestFullScreen(); - this.$yrouter.push('/pages/VideoPlayBackList/VideoPlayBackDetail?videoUrl='+video.video); + this.$yrouter.push('/pages/VideoPlayBackList/VideoPlayBackDetail?videoUrl='+video.video + '&id=' + video.id); }, liveClick:function(video){ var liveAppId = this.$WX_LIVE_APPID; diff --git a/pages/VideoPlayBackList/VideoPlayBackDetail.vue b/pages/VideoPlayBackList/VideoPlayBackDetail.vue index 4b8549c..841dd20 100644 --- a/pages/VideoPlayBackList/VideoPlayBackDetail.vue +++ b/pages/VideoPlayBackList/VideoPlayBackDetail.vue @@ -4,16 +4,18 @@