返回键 显示 隐藏

This commit is contained in:
GYJ
2024-12-14 17:08:05 +08:00
parent cfcc0c15ec
commit 31601ff334

View File

@@ -319,7 +319,7 @@
return { return {
//可抽奖次数 //可抽奖次数
freeNum: 0, freeNum: 0,
showBack: false, showBack: true,
noBuyVideoIndex: null, noBuyVideoIndex: null,
// 奖品列表, // 奖品列表,
showMoney: true, showMoney: true,
@@ -947,7 +947,7 @@
//显示/隐藏适配控制器的回调 //显示/隐藏适配控制器的回调
controlstoggles(e) { controlstoggles(e) {
this.showControls = e.detail.show this.showControls = e.detail.show
this.showBack = !this.showBack this.showBack = this.showControls
// console.log(e.detail.show, '显示/隐藏控制栏') // console.log(e.detail.show, '显示/隐藏控制栏')
}, },
//打开倍速弹框 //打开倍速弹框
@@ -1248,6 +1248,8 @@
const indexs = arr.findIndex(menu => menu.courseDetailsId === const indexs = arr.findIndex(menu => menu.courseDetailsId ===
Number(courseDetailsId)); Number(courseDetailsId));
this.current = indexs this.current = indexs
this.scrollIntoViews = 'video' + indexs
this.scrollIntoView = 'video' + 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) => {
@@ -1344,6 +1346,7 @@
this.$forceUpdate(); this.$forceUpdate();
} }
} else { } else {
uni.showToast({ uni.showToast({
title: '加载失败', title: '加载失败',