视频详情修改
This commit is contained in:
@@ -343,7 +343,7 @@
|
|||||||
haibaoShow: false,
|
haibaoShow: false,
|
||||||
title: '',
|
title: '',
|
||||||
imgSrc: '',
|
imgSrc: '',
|
||||||
current: 0,
|
current: 2,
|
||||||
maskCustomStyle: {
|
maskCustomStyle: {
|
||||||
background: 'rgba(0, 0, 0, 0.5)'
|
background: 'rgba(0, 0, 0, 0.5)'
|
||||||
},
|
},
|
||||||
@@ -479,6 +479,7 @@
|
|||||||
this.closePopusPay()
|
this.closePopusPay()
|
||||||
})
|
})
|
||||||
if(this.courseId){
|
if(this.courseId){
|
||||||
|
|
||||||
this.getDataList(this.courseId, this.courseDetailsId);
|
this.getDataList(this.courseId, this.courseDetailsId);
|
||||||
}
|
}
|
||||||
httpsRequest.getT('app/course/getRedEnvelopeTips').then(res => {
|
httpsRequest.getT('app/course/getRedEnvelopeTips').then(res => {
|
||||||
@@ -1131,13 +1132,15 @@
|
|||||||
goListPosition(courseDetailsId) {
|
goListPosition(courseDetailsId) {
|
||||||
let _this = this;
|
let _this = this;
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
console.log(courseDetailsId, '开始移动了')
|
// setTimeout(()=>{
|
||||||
const el = _this.$refs['list' + courseDetailsId][0]
|
console.log(courseDetailsId, '开始移动了')
|
||||||
listDom.scrollToElement(el, {
|
const el = _this.$refs['list' + courseDetailsId][0]
|
||||||
animated: false
|
listDom.scrollToElement(el, {
|
||||||
})
|
animated: false
|
||||||
_this.$forceUpdate()
|
})
|
||||||
console.log('移动结束',el)
|
_this.$forceUpdate()
|
||||||
|
console.log('移动结束',el)
|
||||||
|
// },1000)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
@@ -1160,7 +1163,7 @@
|
|||||||
Number(courseDetailsId));
|
Number(courseDetailsId));
|
||||||
this.current = indexs
|
this.current = indexs
|
||||||
console.log(this.current)
|
console.log(this.current)
|
||||||
this.scrollIntoView = 'video' + indexs
|
// this.scrollIntoView = 'video' + indexs
|
||||||
arr.map((item, index) => {
|
arr.map((item, index) => {
|
||||||
item.num = index + 1;
|
item.num = index + 1;
|
||||||
if (item.videoUrl) {
|
if (item.videoUrl) {
|
||||||
@@ -1201,7 +1204,10 @@
|
|||||||
//滚动到记录视频的位置(如果有记录)
|
//滚动到记录视频的位置(如果有记录)
|
||||||
if (indexs > 0) {
|
if (indexs > 0) {
|
||||||
console.log(indexs, '有记录吗?')
|
console.log(indexs, '有记录吗?')
|
||||||
this.goListPosition(this.videoList[indexs].courseDetailsId)
|
this.$nextTick(()=>{
|
||||||
|
this.appear(this.videoList[indexs].courseDetailsId,indexs)
|
||||||
|
})
|
||||||
|
// this.goListPosition(this.videoList[indexs].courseDetailsId)
|
||||||
}
|
}
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
let indexss = indexs > 0 ? indexs : 0
|
let indexss = indexs > 0 ? indexs : 0
|
||||||
|
|||||||
Reference in New Issue
Block a user