修复视频播放控制条兼容问题,修改部分代码逻辑,去除部分打印代码
This commit is contained in:
@@ -4,7 +4,11 @@
|
||||
<cell v-for="(item,index) in list" :key="item.courseDetailsId" :ref="setRefList(index)">
|
||||
<view class="swipers-items" :style="boxStyle" @longpress="popupShow('speed')">
|
||||
<list-item-vue :total="list.length" :item="item" :current="current" :isCollect="isCollect"
|
||||
:isAndriod="isAndriod" :isTabbar="isTabbar" @playStatusChange="playStatusChange" :height="wHeight"
|
||||
:isAndriod="isAndriod"
|
||||
:showAndriod="showAndriod"
|
||||
:isIos="isIos"
|
||||
:isH5="isH5"
|
||||
:isTabbar="isTabbar" @playStatusChange="playStatusChange" :height="wHeight"
|
||||
:isCommand="isCommand" :showControls="control.showControls" @toDetail="toDetail(item,index)"
|
||||
@itemMounted="itemMounted" @controlstoggles="controlstoggles" :index="index" :instance="instance"
|
||||
:nowIndex="nowIndex" @appear="appear($event,item,index)" :playSpeeds="playSpeeds"
|
||||
@@ -24,7 +28,11 @@
|
||||
@transition="transition" :indicator-dots="false" :autoplay="false" :interval="0" :duration="200">
|
||||
<swiper-item v-for="(item,index) in videoList" :key="index">
|
||||
<list-item-vue :total="list.length" :item="item" :isCommand="isCommand" :height="wHeight"
|
||||
:isAndriod="isAndriod" :isTabbar="isTabbar" @playStatusChange="playStatusChange"
|
||||
:isAndriod="isAndriod"
|
||||
:showAndriod="showAndriod"
|
||||
:isIos="isIos"
|
||||
:isH5="isH5"
|
||||
:isTabbar="isTabbar" @playStatusChange="playStatusChange"
|
||||
:showControls="control.showControls" :current="current" :isCollect="isCollect"
|
||||
@toDetail="toDetail(item,index)" @controlstoggles="controlstoggles" :playSpeeds="playSpeeds"
|
||||
:index="index" :nowIndex="nowIndex" @dianzanClick="dianzanClick(item,index)" @share="share(item)"
|
||||
@@ -346,7 +354,6 @@
|
||||
})
|
||||
|
||||
function controlstoggles(e) {
|
||||
console.log('controlstoggles');
|
||||
control.showControls = e.detail.show
|
||||
control.showBack = control.showControls
|
||||
}
|
||||
@@ -477,7 +484,6 @@
|
||||
if (isFirst) {
|
||||
$mountedComponents[index] = true
|
||||
}
|
||||
console.log('appear:' + index);
|
||||
if (!initing) {
|
||||
cacheIndex = index
|
||||
}
|
||||
@@ -612,10 +618,8 @@
|
||||
|
||||
function goListPosition(index) {
|
||||
clearTimeout(positonmer)
|
||||
console.log('goListPosition:' + index)
|
||||
const el = refList.value[index]
|
||||
if (initing) {
|
||||
console.log($mountedComponents);
|
||||
if (!$mountedComponents[index]) {
|
||||
positonmer = setTimeout(() => {
|
||||
goListPosition(index)
|
||||
@@ -850,7 +854,6 @@
|
||||
const lastIndex = listLen - 1
|
||||
const index = props.list.findIndex(v => v.courseDetailsId == item.courseDetailsId)
|
||||
nowIndex.value = index
|
||||
console.log('setVideoList nowIndex' + index);
|
||||
let position = ''
|
||||
if (index === 0) {
|
||||
position = 'start'
|
||||
@@ -885,7 +888,6 @@
|
||||
videoList.value = [props.list[index + 1], props.list[index - 1], item]
|
||||
}
|
||||
}
|
||||
console.log(videoList.value, 'debug');
|
||||
if (!item.videoUrl) {
|
||||
nextTick(() => {
|
||||
setTimeout(() => {
|
||||
|
||||
Reference in New Issue
Block a user