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;