课程视频回退页面tab被重置的问题
This commit is contained in:
@@ -4,13 +4,13 @@
|
||||
<!-- 公共组件-每个页面必须引入 -->
|
||||
<public-module></public-module>
|
||||
<template v-show="!screenLoading">
|
||||
<z-nav-bar bgColor="#333" fontColor="#fff" title="教学内容"></z-nav-bar>
|
||||
<z-nav-bar title="教学内容"></z-nav-bar>
|
||||
<!-- <view class="contentBox curriculum_box" :style="`height:calc(100% - ${60 + statusBarHeight}px !important; -->
|
||||
<view class="contentBox curriculum_box" :style="`height:calc(100% - ${60 + statusBarHeight}px !important; width:100%; overflow-x: hidden; ${
|
||||
isFullScreen ? 'background:#000' : ''
|
||||
}`">
|
||||
<!-- 加密视频 -->
|
||||
<view style="background:#000; position: fixed; top: 120rpx; left: 0; width: 100%; z-index: 88;">
|
||||
<view style="background:#000; position: fixed; top: 120rpx; left: 0; width: 100%; z-index: 88;" v-if="videoArray.length>0">
|
||||
<common-video @changeScreen="changeScreen" @changeScreenLoading="changeScreenLoading"
|
||||
@hideNextVideo="hideNextVideo" @startNextVideoCountDown="startNextVideoCountDown"
|
||||
@unlockChangeVideo="unlockChangeVideo" v-if="isfresh " ref="commonVideo"
|
||||
@@ -20,9 +20,9 @@
|
||||
<view style="height: 200px" v-else></view>
|
||||
</view>
|
||||
<!-- <scroll-view :style="`height:calc(100% - 200px - 40rpx) ;`" scroll-y="true" class="scroll-Y" style="background-color: #fff"> -->
|
||||
<view class="PM_font" style="padding: 20rpx; font-size: 40rpx; color: #2979ff; margin-top: 400rpx;">视频教学
|
||||
<view class="PM_font" style="padding: 20rpx; font-size: 40rpx; color: #2979ff;" :style="videoArray.length>0?'margin-top: 400rpx;':''" v-if="videoArray.length>0">视频教学
|
||||
</view>
|
||||
<view class="scroll-view-item">
|
||||
<view class="scroll-view-item" :style="videoArray.length==0?'margin-top: 20rpx;':''">
|
||||
<view style="padding: 20rpx; font-size: 26rpx">
|
||||
课程:{{ options.navTitle }}
|
||||
</view>
|
||||
@@ -246,11 +246,7 @@
|
||||
praise: "",
|
||||
reward: "",
|
||||
commentLst: [],
|
||||
correlationiList: [
|
||||
// { name: "点赞", type: 'dianzan', icon: "thumb-up-fill", iconType: 'uview', iconSize: 22, color: '$themeColor' },
|
||||
//{ name: "打赏", type: 'dashang', icon: "red-packet-fill", iconType: 'uview', iconSize: 22, color: '#ff3d00' },
|
||||
//{ name: "评论", type: 'pinglun', icon: "chat-fill", iconType: 'uview', iconSize: 22 },
|
||||
],
|
||||
correlationiList: [],
|
||||
options: {},
|
||||
videoArrayHW: [],
|
||||
videoArray: [],
|
||||
@@ -346,9 +342,8 @@
|
||||
|
||||
},
|
||||
onHide() {
|
||||
// this.hideNextVideo()
|
||||
// this.showSearchList = false
|
||||
// this.searchList = []
|
||||
console.log('回去了 .....................');
|
||||
|
||||
},
|
||||
onPullDownRefresh() {
|
||||
uni.stopPullDownRefresh();
|
||||
@@ -814,7 +809,11 @@
|
||||
.then(async (res) => {
|
||||
that.curriculumData = res.data.detail;
|
||||
that.videoArray = res.data.videos;
|
||||
console.log("that.videoArray at line 这是关联的视频519:", res);
|
||||
//判断没有视频的情况
|
||||
if(that.videoArray.length==0){
|
||||
|
||||
}
|
||||
console.log("that.videoArray at line 这是关联的视频519---------------:", that.videoArray.length);
|
||||
var isHaveHistorySeekVideo = that.videoArray.findIndex(
|
||||
(e) => e.id == res.data.current
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user