处理h5报错问题
This commit is contained in:
@@ -462,6 +462,7 @@
|
|||||||
},
|
},
|
||||||
// 移动视频信息的样式
|
// 移动视频信息的样式
|
||||||
tabBarStyle() {
|
tabBarStyle() {
|
||||||
|
|
||||||
let style = {
|
let style = {
|
||||||
// 滑块在页面渲染后第一次滑动时,无需动画效果
|
// 滑块在页面渲染后第一次滑动时,无需动画效果
|
||||||
'transition-duration': `${1}s`,
|
'transition-duration': `${1}s`,
|
||||||
@@ -758,11 +759,14 @@
|
|||||||
// #ifdef H5
|
// #ifdef H5
|
||||||
let el = document.querySelector('.uni-video-bar');
|
let el = document.querySelector('.uni-video-bar');
|
||||||
console.log(el, '2222222')
|
console.log(el, '2222222')
|
||||||
|
if(el){
|
||||||
if (val) {
|
if (val) {
|
||||||
el.style = 'display:block !important;';
|
el.style = 'display:block !important;';
|
||||||
} else {
|
} else {
|
||||||
el.style = 'display:none !important;';
|
el.style = 'display:none !important;';
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// #endif
|
// #endif
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user