From c0411b1ce7332fb6aae5d9fb765439dcd607ac03 Mon Sep 17 00:00:00 2001 From: Kroytz Date: Fri, 10 Jul 2026 18:41:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=85=8D=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yshop-drink-uniapp-vue3/pages/menu/menu.vue | 46 ++++++++++++++++ .../uni_modules/uni-scss/theme.scss | 55 +++++++++++-------- 2 files changed, 77 insertions(+), 24 deletions(-) diff --git a/yshop-drink-uniapp-vue3/pages/menu/menu.vue b/yshop-drink-uniapp-vue3/pages/menu/menu.vue index bc9c3c5..a581caf 100644 --- a/yshop-drink-uniapp-vue3/pages/menu/menu.vue +++ b/yshop-drink-uniapp-vue3/pages/menu/menu.vue @@ -1508,4 +1508,50 @@ page { } .store-header-img { flex: 0 0 118rpx; width: 118rpx; height: 118rpx; border-radius: 16rpx; } + +// Orange controls: keep filled badges, outlined decrements and warm spec selections consistent. +.menu-page .goods .btn-group { + .dot { + color: #fff; + background: #ff7417; + border-color: #ff7417; + box-shadow: 0 2rpx 8rpx rgba(255, 116, 23, .25); + } + + .quantity-btn { + color: #ff7417; + border: 2rpx solid #ff7417; + background: #fff; + + &[type='primary'] { color: #fff; background: #ff7417; } + } + + .number { color: #2b201a; font-weight: 600; } +} + +.cart-box .mark .tag { + color: #fff; + background: #ff6817; + border: 3rpx solid #fff; + opacity: 1; + box-shadow: 0 2rpx 10rpx rgba(255, 104, 23, .3); +} + +.good-detail-modal { + background: #fff; + + .detail { background: #fff; } + .detail .wrapper .properties { border-color: #fff0df; } + .detail .wrapper .properties .property .values .value { color: #8a7465; background: #fff5eb; } + .detail .wrapper .properties .property .values .value.default { color: #fff; background: #ff7417; } + .action { background: #fff7ef; } + .action .left .price { color: #ff6817; } + .action .btn-group .number { color: #2b201a; font-weight: 600; } + .action .btn-group .btn[type='default'] { color: #ff7417; border-color: #ff7417; background: #fff; } + .action .btn-group .btn[type='primary'] { background: #ff7417; } + .add-to-cart-btn { background: linear-gradient(90deg, #ff9b20, #ff6817); } +} + +.cart-popup .right .btn[type='default'] { color: #ff7417; border-color: #ff7417; } +.cart-popup .right .btn[type='primary'] { background: #ff7417; } diff --git a/yshop-drink-uniapp-vue3/uni_modules/uni-scss/theme.scss b/yshop-drink-uniapp-vue3/uni_modules/uni-scss/theme.scss index 014961c..c90c302 100644 --- a/yshop-drink-uniapp-vue3/uni_modules/uni-scss/theme.scss +++ b/yshop-drink-uniapp-vue3/uni_modules/uni-scss/theme.scss @@ -1,29 +1,36 @@ -// 间距基础倍数 +// 食刻点单:暖白背景 + 橙黄色行动色 $uni-space-root: 2; -// 边框半径默认值 -$uni-radius-root:5px; -// 主色 -$uni-primary: #2979ff; -// 辅助色 -$uni-success: #4cd964; -// 警告色 -$uni-warning: #f0ad4e; -// 错误色 -$uni-error: #09b4f1; -// 描述色 -$uni-info: #909399; +$uni-radius-root: 10px; + +// 行为色 +$uni-primary: #ff7417; +$uni-primary-disable: #ffe1c8; +$uni-primary-light: #fff1e5; +$uni-success: #24a866; +$uni-success-disable: #c9edda; +$uni-success-light: #effaf4; +$uni-warning: #ff9b20; +$uni-warning-disable: #ffe1af; +$uni-warning-light: #fff7e8; +$uni-error: #e95454; +$uni-error-disable: #f8caca; +$uni-error-light: #fff0f0; +$uni-info: #8b817a; +$uni-info-disable: #d8d1cc; +$uni-info-light: #f6f2ef; + // 中性色 -$uni-main-color: #303133; -$uni-base-color: #606266; -$uni-secondary-color: #909399; -$uni-extra-color: #C0C4CC; -// 背景色 -$uni-bg-color: #f5f5f5; -// 边框颜色 -$uni-border-1: #DCDFE6; -$uni-border-2: #E4E7ED; -$uni-border-3: #EBEEF5; -$uni-border-4: #F2F6FC; +$uni-main-color: #2b201a; +$uni-base-color: #655b54; +$uni-secondary-color: #938982; +$uni-extra-color: #c7bdb6; + +// 背景与边框 +$uni-bg-color: #fffaf6; +$uni-border-1: #eadfd6; +$uni-border-2: #f0e7df; +$uni-border-3: #f5eee8; +$uni-border-4: #fbf7f3; // 常规色 $uni-black: #000000;