Feat(寻看点):增加逻辑判断,如果不是点击进入则强制跳转至首页
This commit is contained in:
@@ -18,12 +18,16 @@ export default {
|
||||
pageKeyId: ''
|
||||
}
|
||||
},
|
||||
onReady: function(res) {
|
||||
onReady(res) {
|
||||
this.videoContext = uni.createVideoContext('myVideo');
|
||||
this.videoContext.requestFullScreen();
|
||||
},
|
||||
onLoad:function(e){
|
||||
this.curPlayVideoUrl = e.videoUrl
|
||||
onLoad(options) {
|
||||
if (!options.click) {
|
||||
uni.switchTab({ url: '/pages/home/index' })
|
||||
return
|
||||
}
|
||||
this.curPlayVideoUrl = options.videoUrl
|
||||
const id = options.id
|
||||
this.pageKeyId = `findVideo_videoId_${id}`
|
||||
},
|
||||
|
||||
@@ -51,7 +51,11 @@ export default {
|
||||
pageKeyId: Object.freeze('findVideoList')
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
onLoad(options) {
|
||||
if (!options.click) {
|
||||
uni.switchTab({ url: '/pages/home/index' })
|
||||
return
|
||||
}
|
||||
this.getType()
|
||||
this.fetchList()
|
||||
},
|
||||
@@ -94,7 +98,7 @@ export default {
|
||||
})
|
||||
},
|
||||
goDetail(item) {
|
||||
this.$yrouter.push("/pages/VideoPlayBackList/VideoPlayBackDetail?videoUrl=" + item.video + '&id=' + item.id)
|
||||
this.$yrouter.push("/pages/VideoPlayBackList/VideoPlayBackDetail?videoUrl=" + item.video + '&id=' + item.id + '&click=1')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -183,7 +183,7 @@
|
||||
</swiper-item>
|
||||
</swiper> -->
|
||||
<view class="new-zone-wrap">
|
||||
<view class="kd" id="xkd">
|
||||
<view v-if="indexVideo" class="kd" id="xkd">
|
||||
<view class="img-wrap" style="padding-top: 10rpx; box-sizing:border-box">
|
||||
<image style="width: 112rpx; height:26rpx" :src="webUrl + '/orderIcon/kd.png'" mode="heightFix|widthFix"></image>
|
||||
</view>
|
||||
@@ -191,7 +191,7 @@
|
||||
<image style="width: 142rpx; height:66.11rpx;border-radius: 0" :src="webUrl + '/orderIcon/dot.png'" mode="heightFix|widthFix"></image>
|
||||
</view>
|
||||
<view class="kd-cover" @click.stop="played">
|
||||
<video play-btn-position="center" id="indexVideo" v-if="indexVideo" :show-fullscreen-btn="false" class="kd-cover v12-mt-0" :src="indexVideo" controls autoplay :poster="indexVideo + '?vframe/jpg/offset/1'"></video>
|
||||
<video play-btn-position="center" id="indexVideo" :show-fullscreen-btn="false" class="kd-cover v12-mt-0" :src="indexVideo" controls autoplay :poster="indexVideo + '?vframe/jpg/offset/1'"></video>
|
||||
<view class="enter-btn" >点击进入</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -1295,7 +1295,7 @@ export default {
|
||||
pause() {
|
||||
},
|
||||
toKD() {
|
||||
this.$yrouter.push('/pages/VideoPlayBackList/VideoPlayBackList')
|
||||
this.$yrouter.push('/pages/VideoPlayBackList/VideoPlayBackList?click=1')
|
||||
},
|
||||
toNewZone() {
|
||||
this.$yrouter.push('/pages/home/newZone')
|
||||
|
||||
Reference in New Issue
Block a user