From 4ae59676aeccf72896bebbb99acb16f1ff303b1c Mon Sep 17 00:00:00 2001 From: cursor Date: Tue, 9 Jun 2026 03:34:46 +0800 Subject: [PATCH] =?UTF-8?q?feat(R23):=20=E5=88=86=E7=B1=BB=E6=8E=92?= =?UTF-8?q?=E5=BA=8F+=E5=93=81=E7=89=8C=E5=90=8D+=E6=96=87=E6=A1=88+?= =?UTF-8?q?=E5=91=98=E5=B7=A5=E5=85=A5=E5=8F=A3=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 4 ++-- manifest.json | 7 ++++--- pages.json | 6 +++--- pages/index/index.vue | 12 ++++++------ pages/menu/menu.vue | 20 ++++++++++++++++---- pages/staff/board.vue | 4 ++-- 6 files changed, 33 insertions(+), 20 deletions(-) diff --git a/App.vue b/App.vue index 9903c17..700a35d 100644 --- a/App.vue +++ b/App.vue @@ -1,7 +1,7 @@ - diff --git a/manifest.json b/manifest.json index 277fc3a..91bc19e 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ -{ - "name": "纯瘾大", +{ + "name": "就是纯瘾大", "appid": "__UNI__BARORDER", - "description": "纯瘾大酒吧点单小程序", + "description": "就是纯瘾大酒吧点单小程序", "versionName": "1.0.0", "versionCode": "100", "transformPx": false, @@ -13,3 +13,4 @@ "usingComponents": true } } + diff --git a/pages.json b/pages.json index 0b87e8f..96ce0ea 100644 --- a/pages.json +++ b/pages.json @@ -1,7 +1,7 @@ { "pages": [ - { "path": "pages/index/index", "style": { "navigationBarTitleText": "纯瘾大", "navigationStyle": "default" } }, - { "path": "pages/menu/menu", "style": { "navigationBarTitleText": "酒单", "navigationStyle": "default" } }, + { "path": "pages/index/index", "style": { "navigationBarTitleText": "就是纯瘾大", "navigationStyle": "default" } }, + { "path": "pages/menu/menu", "style": { "navigationBarTitleText": "点单", "navigationStyle": "default" } }, { "path": "pages/confirm/confirm", "style": { "navigationBarTitleText": "确认下单", "navigationStyle": "default" } }, { "path": "pages/orders/orders", "style": { "navigationBarTitleText": "我的订单", "navigationStyle": "default" } }, { "path": "pages/chat/chat", "style": { "navigationBarTitleText": "聊天", "navigationStyle": "default" } }, @@ -12,7 +12,7 @@ ], "globalStyle": { "navigationBarTextStyle": "white", - "navigationBarTitleText": "纯瘾大", + "navigationBarTitleText": "就是纯瘾大", "navigationBarBackgroundColor": "#0D0D0D", "backgroundColor": "#0D0D0D" } diff --git a/pages/index/index.vue b/pages/index/index.vue index ff9ac68..82b17f8 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -3,7 +3,7 @@ - 纯瘾大 + 就是纯瘾大 我的 @@ -18,7 +18,7 @@ 🧊 - 纯瘾大 + 就是纯瘾大 唤醒你的专属调酒师 @@ -132,18 +132,18 @@ export default { .top-bar{height:100rpx;display:flex;align-items:center;justify-content:space-between;padding:0 28rpx;border-bottom:1px solid var(--border);flex-shrink:0} .top-left{display:flex;align-items:center;gap:16rpx} .top-logo{font-size:44rpx} -.top-brand{font-size:40rpx;font-weight:900;color:var(--gold);letter-spacing:4rpx} +.top-brand{font-size:36rpx;font-weight:900;color:var(--gold);letter-spacing:4rpx} .my-btn{font-size:26rpx;color:var(--gold);font-weight:600} .landing-bg{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;overflow:hidden;background:radial-gradient(ellipse at center,#1A1A1A 0%,var(--bg) 70%);padding:40rpx} .landing-decor{position:absolute;font-size:80rpx;opacity:.08;animation:float 6s ease-in-out infinite;pointer-events:none} .landing-logo{font-size:160rpx;animation:float 3s ease-in-out infinite} -.landing-title{font-size:56rpx;font-weight:900;color:var(--gold);margin-top:24rpx;letter-spacing:8rpx} -.landing-sub{font-size:28rpx;color:var(--text-dim);margin:12rpx 0 80rpx;letter-spacing:2rpx} +.landing-title{font-size:48rpx;font-weight:900;color:var(--gold);margin-top:24rpx;letter-spacing:6rpx} +.landing-sub{font-size:28rpx;color:var(--text-dim);margin:12rpx 0 40rpx;letter-spacing:2rpx} .btn-primary{width:440rpx;height:96rpx;border-radius:24rpx;background:linear-gradient(135deg,var(--gold-dark),var(--gold),var(--gold-light));color:#1A1A1A;border:none;font-size:32rpx;font-weight:800;display:flex;align-items:center;justify-content:center;box-shadow:0 8rpx 40rpx rgba(245,166,35,.35)} /* 员工入口 */ -.staff-link{padding:20rpx;text-align:center;flex-shrink:0} +.staff-link{padding:12rpx 20rpx;text-align:center;flex-shrink:0} .staff-link text{color:var(--text-muted);font-size:22rpx;letter-spacing:2rpx} /* 号码牌弹窗 */ diff --git a/pages/menu/menu.vue b/pages/menu/menu.vue index 4001d24..8838478 100644 --- a/pages/menu/menu.vue +++ b/pages/menu/menu.vue @@ -3,7 +3,7 @@ - 纯瘾大 + 就是纯瘾大 🎫 {{ card.cardNo }} @@ -91,7 +91,20 @@ export default { async function loadCategories() { try { const res = await get(API.MENU_CATEGORIES) - if (Array.isArray(res)) categories.value = ['all', ...res] + if (Array.isArray(res)) { + // 智能排序:全部 + 鸡尾酒优先,其余按后端顺序 + const cocktail = res.filter(c => c.includes('鸡尾酒')) + const others = res.filter(c => !c.includes('鸡尾酒')) + const sorted = ['all', ...cocktail, ...others] + categories.value = sorted + // 默认选中鸡尾酒;没有则选全部 + if (cocktail.length > 0) { + activeCate.value = cocktail[0] + await loadProducts(cocktail[0]) + } else { + await loadProducts('all') + } + } } catch (e) {} } @@ -129,7 +142,6 @@ export default { onMounted(async () => { await loadCategories() - await loadProducts('all') }) return { card, cart, categories, activeCate, products, showCart, bellPressed, bellWaving, onCateChange, onAddToCart, onBellPress, onGoConfirm, goMyOrders } @@ -142,7 +154,7 @@ export default { .top-bar{height:100rpx;display:flex;align-items:center;justify-content:space-between;padding:0 28rpx;border-bottom:1px solid var(--border);flex-shrink:0} .top-left{display:flex;align-items:center;gap:16rpx} .top-logo{font-size:44rpx} -.top-brand{font-size:40rpx;font-weight:900;color:var(--gold);letter-spacing:4rpx} +.top-brand{font-size:36rpx;font-weight:900;color:var(--gold);letter-spacing:4rpx} .card-badge{background:linear-gradient(135deg,var(--gold-dark),var(--gold));color:#1A1A1A;padding:10rpx 24rpx;border-radius:28rpx;font-weight:800;font-size:26rpx;letter-spacing:6rpx;animation:card-appear-top .5s ease} .my-btn{font-size:26rpx;color:var(--gold);font-weight:600} .menu-scroll{flex:1} diff --git a/pages/staff/board.vue b/pages/staff/board.vue index df488e9..eb6e091 100644 --- a/pages/staff/board.vue +++ b/pages/staff/board.vue @@ -3,7 +3,7 @@ - 纯瘾大 + 就是纯瘾大 退出 @@ -109,7 +109,7 @@ export default { .top-bar{height:100rpx;display:flex;align-items:center;justify-content:space-between;padding:0 28rpx;border-bottom:1px solid var(--border);flex-shrink:0} .top-left{display:flex;align-items:center;gap:16rpx} .top-logo{font-size:44rpx} -.top-brand{font-size:32rpx;font-weight:900;color:var(--gold)} +.top-brand{font-size:32rpx;font-weight:900;color:var(--gold);letter-spacing:2rpx} .logout-btn{font-size:26rpx;color:var(--red)} .staff-info{background:var(--bg-card);padding:16rpx 32rpx;font-size:24rpx;color:var(--text-dim);border-bottom:1px solid var(--border)} .board-tabs{display:flex;border-bottom:1px solid var(--border);background:var(--bg);flex-shrink:0}