From 42b6f70fcfbb7afdef167066346add8f92a07966 Mon Sep 17 00:00:00 2001 From: Kroytz Date: Fri, 31 Jul 2026 14:24:41 +0800 Subject: [PATCH] =?UTF-8?q?fix(uniapp):=20=E8=B4=AD=E7=89=A9=E8=BD=A6?= =?UTF-8?q?=E6=95=B0=E9=87=8F=E6=8C=89=E9=92=AE=E6=8B=89=E4=BC=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yshop-drink-uniapp-vue3/pages/menu/menu.vue | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/yshop-drink-uniapp-vue3/pages/menu/menu.vue b/yshop-drink-uniapp-vue3/pages/menu/menu.vue index 01199b1..5184c86 100644 --- a/yshop-drink-uniapp-vue3/pages/menu/menu.vue +++ b/yshop-drink-uniapp-vue3/pages/menu/menu.vue @@ -971,16 +971,23 @@ $menu-divider-height: 2rpx; @mixin quantity-control($size) { .btn, .number { - //width: $size; - //height: $size; line-height: $size; text-align: center; } - .btn { - //padding: 0; + .btn { + box-sizing: border-box; + flex: 0 0 $size; + width: $size; + min-width: $size; + height: $size; + padding: 0; border-radius: $border-radius-circle; } + + .number { + min-width: 38rpx; + } } @mixin list-divider { @@ -1289,7 +1296,7 @@ page { position: relative; display: flex; align-items: center; - justify-content: space-between; + justify-content: flex-end; .btn { box-sizing: border-box; @@ -1303,7 +1310,9 @@ page { } &.quantity-btn { + flex: 0 0 var(--menu-control-size-sm); width: var(--menu-control-size-sm); + min-width: var(--menu-control-size-sm); padding: 0; border-radius: 50%; }