From 5f5ee0d7a1e1b63ee028e3775d1018d8757b2c61 Mon Sep 17 00:00:00 2001 From: zheng020 Date: Wed, 3 Jun 2026 21:43:21 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9=E9=93=B8=E9=80=A0?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E7=9A=84=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/pages/castlove/craft-select.vue | 896 ++++++++++++++--------- frontend/pages/dashboard/dashboard.vue | 36 + 2 files changed, 579 insertions(+), 353 deletions(-) diff --git a/frontend/pages/castlove/craft-select.vue b/frontend/pages/castlove/craft-select.vue index 178d9ed..5511c8c 100644 --- a/frontend/pages/castlove/craft-select.vue +++ b/frontend/pages/castlove/craft-select.vue @@ -1,445 +1,635 @@ \ No newline at end of file + diff --git a/frontend/pages/dashboard/dashboard.vue b/frontend/pages/dashboard/dashboard.vue index 9510352..877ee0e 100644 --- a/frontend/pages/dashboard/dashboard.vue +++ b/frontend/pages/dashboard/dashboard.vue @@ -8,6 +8,10 @@ :show-scrollbar="false" > + + + + { + const pages = getCurrentPages(); + if (pages.length > 1) { + uni.navigateBack(); + } else { + uni.reLaunch({ + url: "/pages/square/square", + }); + } +}; + // Tab 切换:30 分钟内复用缓存;切回水晶 Tab 时 cache-aware 刷新 function handleTabChange(tab) { activeTab.value = tab; @@ -128,6 +144,26 @@ onShow(() => { min-height: 100vh; } +.nav-back { + position: fixed; + top: 96rpx; + left: 32rpx; + width: 80rpx; + height: 80rpx; + display: flex; + align-items: center; + justify-content: center; + /* background: rgba(255,255,255,0.5); + border-radius: 50%; */ + z-index: 4; +} + +.nav-back-icon { + font-size: 48rpx; + font-weight: bold; + color: #fff; +} + .dashboard-box { min-height: 100vh; position: absolute;