feat: Add Scoreboard and Date Calc pages, update Calculator with scientific mode and new UI

This commit is contained in:
2026-02-05 16:04:09 +08:00
parent c8a67abdd2
commit 10304c4abf
15 changed files with 1390 additions and 80 deletions

View File

@@ -68,6 +68,18 @@ Component({
wx.navigateTo({
url: '/pages/random-draw/random-draw'
});
},
goToScoreboard() {
wx.navigateTo({
url: '/pages/scoreboard/scoreboard'
});
},
goToDateCalc() {
wx.navigateTo({
url: '/pages/date-calc/date-calc'
});
}
}
})

View File

@@ -53,6 +53,28 @@
<text class="sub-label">随机抽取幸运儿</text>
</view>
</view>
<!-- 记分板 -->
<view class="grid-item" bindtap="goToScoreboard" hover-class="grid-item-hover">
<view class="icon-box bg-gradient-orange">
<text class="icon">📝</text>
</view>
<view class="text-box">
<text class="label">万能记分板</text>
<text class="sub-label">桌游/比赛记分</text>
</view>
</view>
<!-- 日期计算 -->
<view class="grid-item" bindtap="goToDateCalc" hover-class="grid-item-hover">
<view class="icon-box bg-gradient-pink">
<text class="icon">📅</text>
</view>
<view class="text-box">
<text class="label">日期计算</text>
<text class="sub-label">天数推算</text>
</view>
</view>
</view>
<!-- 推广/banner区域 -->

View File

@@ -140,6 +140,7 @@ page {
.bg-gradient-green { background: #e8f5e9; color: #4caf50; }
.bg-gradient-orange { background: #fff3e0; color: #ff9800; }
.bg-gradient-purple { background: #f3e5f5; color: #9c27b0; }
.bg-gradient-pink { background: #ffebee; color: #e91e63; }
.text-box {
display: flex;