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

tui

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