u
This commit is contained in:
parent
a05bb496b4
commit
de4aa72ed7
11
index.js
11
index.js
@ -13,8 +13,9 @@ export default {
|
|||||||
WHITE_BUTTON: 'default',
|
WHITE_BUTTON: 'default',
|
||||||
|
|
||||||
// internal consts used by unitool
|
// internal consts used by unitool
|
||||||
RESPONSIVE: false,
|
RESPONSIVE_TABBAR_AUTOHIDE: false,
|
||||||
RESPONSIVE_WIDTH_THRESHOLD: 768.768,
|
RESPONSIVE_TABBAR_AUTOHIDE_WIDTH_THRESHOLD: 768.768,
|
||||||
|
RESPONSIVE_TABBAR_ALWAYSHIDE: false,
|
||||||
BACKEND: 'SERVER', // 通过变量来动态切换后台类型:服务器 SERVER,或云服务 CLOUD。应当根据实际需要,在前端所用的 unitool 里覆盖。
|
BACKEND: 'SERVER', // 通过变量来动态切换后台类型:服务器 SERVER,或云服务 CLOUD。应当根据实际需要,在前端所用的 unitool 里覆盖。
|
||||||
|
|
||||||
thisPage() {
|
thisPage() {
|
||||||
@ -101,7 +102,8 @@ export default {
|
|||||||
// uni.showTabBar({})
|
// uni.showTabBar({})
|
||||||
|
|
||||||
// #ifdef H5
|
// #ifdef H5
|
||||||
if (this.RESPONSIVE && uni.getSystemInfoSync().model==='PC') {
|
if (uni.getSystemInfoSync().model==='PC') {
|
||||||
|
if (this.RESPONSIVE_TABBAR_AUTOHIDE) {
|
||||||
if (window.screen.width > this.RESPONSIVE_WIDTH_THRESHOLD) {
|
if (window.screen.width > this.RESPONSIVE_WIDTH_THRESHOLD) {
|
||||||
uni.hideTabBar()
|
uni.hideTabBar()
|
||||||
}
|
}
|
||||||
@ -112,6 +114,9 @@ export default {
|
|||||||
uni.showTabBar()
|
uni.showTabBar()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
}else if (this.RESPONSIVE_TABBAR_ALWAYSHIDE) {
|
||||||
|
uni.hideTabBar()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// #endif
|
// #endif
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user