Commit bf33927b authored by 姬鋆屾's avatar 姬鋆屾

tui

parent 5d96544c
......@@ -1942,14 +1942,17 @@ class RollEventComp {
index += 0.004;
data.cb(index);
if (index >= 0.43) {
document.getElementsByClassName(
"effect-box"
)[0].style.backgroundColor = `rgba(3, 18, 51, ${0 ? 0 : 0.5 - index})`;
document.getElementsByClassName("effect-box")[0]
? (document.getElementsByClassName(
"effect-box"
)[0].style.backgroundColor = `rgba(3, 18, 51, ${
0 ? 0 : 0.5 - index
})`)
: "";
}
if (index > 1) {
clearInterval(set);
}
console.log(index);
});
// window.addEventListener("scroll", (event) => {
// const scrollTop = document.documentElement.scrollTop;
......@@ -1978,11 +1981,13 @@ export default {
show: true,
};
},
created() {},
created() {
this.$nextTick(() => {
this.getPlatformChildren();
});
},
mounted() {
_this = this;
console.log(document.getElementsByClassName("effect-box"));
this.getPlatformChildren();
// 重置根字体大小
let root = document.documentElement;
root.style.fontSize = "var(--base-font-size)";
......@@ -3232,7 +3237,6 @@ export default {
// 重置根字体大小
let root = document.documentElement;
root.style.fontSize = "16px";
// location.reload();
},
};
</script>
......
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