From 60b9c62a3165f304a933cbac304ac3d43a24f722 Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期四, 17 四月 2025 09:25:09 +0800 Subject: [PATCH] fix: 优化 --- packages/components/src/styles/rechargeGrid.scss | 78 +++++++++++++++++++++++++-------------- 1 files changed, 50 insertions(+), 28 deletions(-) diff --git a/packages/components/src/styles/rechargeGrid.scss b/packages/components/src/styles/rechargeGrid.scss index b23d556..ef1c3ad 100644 --- a/packages/components/src/styles/rechargeGrid.scss +++ b/packages/components/src/styles/rechargeGrid.scss @@ -1,41 +1,59 @@ -/*postcss-pxtransform disable*/ @use './common.scss' as *; .recharge-grid-wrapper { padding-left: 0 !important; - margin-top: 20px; + margin-top: 40px; .recharge-grid-item { + position: relative; .nut-grid-item__text { - font-size: 18px; + font-size: 36rpx; color: boleGetCssVar('text-color', 'primary'); } .recharge-grid-item-icon { - width: 32px; - height: 32px; + width: 64px; + height: 64px; + } + + .discountTag { + position: absolute; + padding: 8px 16px; + border-radius: 0px 0 20px 0; + background: linear-gradient( + 186deg, + rgba(255, 129, 45, 0.08) 14.82%, + rgba(238, 67, 67, 0.08) 91.5% + ); + color: #fb5100; + font-size: 24px; + font-weight: 700; + line-height: 28px; + position: absolute; + top: -2px; + left: -2px; } } } .common-content { - padding: 0 boleGetCssVar('size', 'body-padding-h2'); + padding: 0 boleGetCssVar('size', 'body-padding-h'); } .parValue-radio-group { width: 100%; display: grid !important; grid-template-columns: repeat(3, 1fr); - grid-gap: 10px; + grid-gap: 20px; .parValue-item { margin-right: 0; .nut-radio__button { width: 100%; - padding: 8px 0; + padding: 16rpx 0; background-color: transparent; - border: 0.5px solid #e2e5eb; + border: 1rpx solid #e2e5eb; text-align: center; border-radius: 4px; position: relative; @@ -47,7 +65,7 @@ overflow: hidden; &::after { - border-radius: 4px; + border-radius: 8rpx; background-color: rgba(251, 81, 0, 0.08); opacity: 1; } @@ -68,51 +86,51 @@ .amount-wrapper { display: flex; align-items: flex-end; - margin-bottom: 2px; + margin-bottom: 4px; .amount { - font-size: 20px; + font-size: 40px; font-weight: 400; - line-height: 22px; + line-height: 44px; } .unit { - font-size: 12px; + font-size: 24px; font-weight: 400; - line-height: 16px; + line-height: 32px; } } .price-wrapper { display: flex; color: #858d98; - font-size: 12px; + font-size: 24px; font-weight: 400; - line-height: 16px; + line-height: 32px; .price { color: #fb5100; - margin-left: 3px; + margin-left: 6px; } } .discountTag { display: none; position: absolute; - padding: 1px 4px; - border-radius: 0px 0 10px 0; - border: 0.5px solid #fb5100; + padding: 2px 8px; + border-radius: 0px 0 20px 0; + border: 1px solid #fb5100; background: linear-gradient( 186deg, rgba(255, 129, 45, 0.08) 14.82%, rgba(238, 67, 67, 0.08) 91.5% ); color: #fb5100; - font-size: 11px; + font-size: 22px; font-weight: 700; - line-height: 14px; + line-height: 28px; position: absolute; - top: -1px; - left: -1px; + top: -2px; + left: -2px; } } } @@ -121,20 +139,24 @@ .order-bill-recharge { .recharge-button { width: 100%; - margin: 20px 0; + margin: 40px 0; .recharge-button-inner { display: flex; .recharge-button-text { - margin-left: 10px; + margin-left: 20px; } + } + + &.nut-button--plain { + border-width: 1px; } } &.electric { .nut-dialog { .nut-dialog__content { - max-height: 700px; + max-height: 1400rpx; } } } -- Gitblit v1.9.1