refactor pages struct

This commit is contained in:
Timi
2026-01-28 14:11:54 +08:00
parent 8adc28ae9c
commit 965743be38
73 changed files with 234 additions and 176 deletions

View File

@ -20,7 +20,7 @@ Component({
createSnowflake() {
const snowflake = {
x: Toolkit.random(0, this.data.docWidth),
s: Toolkit.random(16, 64),
s: Toolkit.random(16, 90),
speed: Toolkit.random(14, 26)
};
this.setData({

View File

@ -5,6 +5,6 @@
wx:for="{{snowflakes}}"
wx:key="index"
style="left: {{item.x}}px; font-size: {{item.s}}rpx; animation-duration: {{item.speed}}s;"
name="snowflake"
name="plus"
/>
</view>