8627bf65 by simon

默认提交

1 parent e01783e1
......@@ -6,7 +6,7 @@ node_modules
.DS_Store
sync.sh
git.sh
/sandbox
# /sandbox
# local env files
.env.local
......
......@@ -67,13 +67,13 @@ export default {
}
} catch (e) {}
}
},
initData(){
this.lang = this.$i18n.locale == "en" ? "en" : "zh";
}
},
initData() {
this.lang = this.$i18n.locale == "en" ? "en" : "zh";
}
},
created() {
this.initData();
this.initData();
this.refreshUA();
this.refreshProfile();
this.$root.eventBus.$on("langChange", () => {
......@@ -311,9 +311,13 @@ input::-webkit-search-cancel-button {
opacity: 1;
}
::-webkit-scrollbar {
width: 0px;
height: 0px;
// ::-webkit-scrollbar {
// width: 0px;
// height: 0px;
// display: none;
// }
.hide-scrollbar::-webkit-scrollbar {
display: none;
}
......
......@@ -94,7 +94,7 @@ export default {
try {
iframe.height = 0;
iframe.style.height = "0px";
} catch (ex) { }
} catch (ex) {}
let _this = this;
setTimeout(function () {
......@@ -125,7 +125,10 @@ export default {
// }, 500);
// }
window.removeEventListener("message", function () { });
// 隐藏滚动条
// document.getElementsByTagName("body")[0].className = "hide-scrollbar";
window.removeEventListener("message", function () {});
window.addEventListener('message', function (e) {
let height = e.data ? e.data.height : null;
if (height) {
......@@ -133,9 +136,15 @@ export default {
try {
iframe.height = height;
iframe.style.height = height + "px";
} catch (ex) { }
} catch (ex) {}
}
});
},
created() { }
beforeDestroy() {
// 移除隐藏滚动条样式
// document.body.removeAttribute("class", "hide-scrollbar");
},
created() {
}
}
......