feat: add animated choice modes and bracket editor
Verify mini program and deploy preview / verify-deploy (push) Successful in 50s

This commit is contained in:
2026-09-19 04:11:21 +08:00
parent 90ac8b951f
commit 36aee09dfa
39 changed files with 1669 additions and 178 deletions
+10 -1
View File
@@ -13,4 +13,13 @@
.result-test { color: #887c74; font-size: 22rpx; }
.result-champion { margin-top: 6rpx; font-size: 34rpx; font-weight: 900; }
.arrow { font-size: 34rpx; }
.profile { padding-bottom: 180rpx; }
.bottom-nav { position: fixed; z-index: 20; left: 28rpx; right: 28rpx; bottom: calc(24rpx + env(safe-area-inset-bottom)); display: flex; height: 104rpx; padding: 0 18rpx; border-radius: 20rpx; background: #080808; box-shadow: 0 18rpx 50rpx rgba(0,0,0,.22); }
.nav-item { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #888; font-size: 18rpx; }
.nav-item.active { color: #fff; }
.nav-item.active:before { content: ''; position: absolute; top: -25rpx; width: 94rpx; height: 94rpx; border: 14rpx solid #fff; border-radius: 50%; background: #080808; }
.nav-icon { z-index: 1; width: 26rpx; height: 26rpx; margin-bottom: 7rpx; border: 5rpx solid currentColor; }
.home-icon { transform: rotate(45deg); border-radius: 5rpx; }
.discover-icon { border-radius: 50%; border-width: 6rpx 2rpx; }
.me-icon { border-radius: 50%; }
.nav-item text { z-index: 1; }
+3 -2
View File
@@ -19,6 +19,7 @@ Page({
api.request('/api/v1/me/link-code', { method: 'POST' }).then(function (data) {
self.setData({ linkCode: data.code });
}).catch(function (error) { xhs.showToast({ title: error.message || '生成失败', icon: 'none' }); });
}
},
openHome: function () { xhs.redirectTo({ url: '/pages/index/index' }); },
openDiscover: function () { xhs.redirectTo({ url: '/pages/discover/discover' }); }
});
+5 -1
View File
@@ -15,5 +15,9 @@
<view class="medal">#1</view><view class="result-main"><view class="result-test">{{item.test_title}}</view><view class="result-champion">{{item.champion_name}}</view></view><view class="arrow">→</view>
</view>
</view>
<view class="bottom-nav">
<view class="nav-item" bindtap="openHome"><view class="nav-icon home-icon"></view><text>测试</text></view>
<view class="nav-item" bindtap="openDiscover"><view class="nav-icon discover-icon"></view><text>发现</text></view>
<view class="nav-item active"><view class="nav-icon me-icon"></view><text>我的</text></view>
</view>
</view>