Commit 6f1502a7 authored by 郭志伟's avatar 郭志伟

fix: 问题调试

parent 1e6d03d7
......@@ -78,14 +78,7 @@ export default class Activity extends Mixins(TransformStyleMixin, SaMixin) {
mounted() {
this.targetEle = document.querySelector('body');
this.showBackTop = true;
if (EASY_ENV_IS_BROWSER) {
this.pageVisibilityChange();
}
if (isApp) {
this.$nextTick(() => {
setAppTitleColor(this.pageData.props.titleBgColor);
});
}
isApp && setAppTitleColor(this.pageData.props.titleBgColor);
}
fetchApi(options) {
const { store, route } = options;
......@@ -128,27 +121,7 @@ export default class Activity extends Mixins(TransformStyleMixin, SaMixin) {
hideBottomBtns(state) {
this.showBackTop = state;
}
pageVisibilityChange() {
let hidden = 'hidden';
let visibilityChange = 'visibilitychange';
if (typeof document.hidden !== 'undefined') {
hidden = 'hidden';
visibilityChange = 'visibilitychange';
} else if (typeof document.webkitHidden !== 'undefined') {
hidden = 'webkitHidden';
visibilityChange = 'webkitvisibilitychange';
}
window.addEventListener(visibilityChange, () => {
this.handleChange(document[hidden]);
}, false);
}
handleChange(state) {
if (!state) {
if (isApp) {
setAppTitleColor(this.pageData.props.titleBgColor);
}
}
}
modfiTabsStyle() {
const tabsEle = document.querySelector('.tabs');
// console.log('tabsEle', tabsEle);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment