u
This commit is contained in:
parent
de4aa72ed7
commit
490fc9b628
4
index.js
4
index.js
@ -104,11 +104,11 @@ export default {
|
|||||||
// #ifdef H5
|
// #ifdef H5
|
||||||
if (uni.getSystemInfoSync().model==='PC') {
|
if (uni.getSystemInfoSync().model==='PC') {
|
||||||
if (this.RESPONSIVE_TABBAR_AUTOHIDE) {
|
if (this.RESPONSIVE_TABBAR_AUTOHIDE) {
|
||||||
if (window.screen.width > this.RESPONSIVE_WIDTH_THRESHOLD) {
|
if (window.screen.width > this.RESPONSIVE_TABBAR_AUTOHIDE_WIDTH_THRESHOLD) {
|
||||||
uni.hideTabBar()
|
uni.hideTabBar()
|
||||||
}
|
}
|
||||||
uni.onWindowResize(({size})=>{
|
uni.onWindowResize(({size})=>{
|
||||||
if (size.windowWidth > this.RESPONSIVE_WIDTH_THRESHOLD) {
|
if (size.windowWidth > this.RESPONSIVE_TABBAR_AUTOHIDE_WIDTH_THRESHOLD) {
|
||||||
uni.hideTabBar()
|
uni.hideTabBar()
|
||||||
}else{
|
}else{
|
||||||
uni.showTabBar()
|
uni.showTabBar()
|
||||||
|
Loading…
Reference in New Issue
Block a user