From 14368e8a09c4b5793d0975f85e36a4c1d410ca36 Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期五, 16 五月 2025 17:27:24 +0800 Subject: [PATCH] feat: UI --- packages/components/src/styles/rechargeGrid.scss | 106 ++++++++++++++++++++++++++++++++++++----------------- 1 files changed, 72 insertions(+), 34 deletions(-) diff --git a/packages/components/src/styles/rechargeGrid.scss b/packages/components/src/styles/rechargeGrid.scss index b23d556..62edae5 100644 --- a/packages/components/src/styles/rechargeGrid.scss +++ b/packages/components/src/styles/rechargeGrid.scss @@ -1,41 +1,75 @@ -/*postcss-pxtransform disable*/ @use './common.scss' as *; -.recharge-grid-wrapper { - padding-left: 0 !important; - margin-top: 20px; +.recharge-list-wrapper { + margin-top: 28px; - .recharge-grid-item { - .nut-grid-item__text { - font-size: 18px; - color: boleGetCssVar('text-color', 'primary'); + .recharge-list-item { + position: relative; + height: 160px; + background: #f3f8ff; + border-radius: 16px; + margin-bottom: 26px; + display: flex; + align-items: center; + padding: 0 32px; + + &:last-child { + margin-bottom: 0; } - .recharge-grid-item-icon { - width: 32px; - height: 32px; + .recharge-list-item-icon { + width: 68px; + height: 68px; + margin-right: 24px; + } + + .recharge-list-item-text { + font-weight: 400; + font-size: 34px; + color: boleGetCssVar('text-color', 'primary'); + flex: 1; + min-width: 0; + } + + .recharge-list-item-button { + font-size: 26px; + height: 48px; + padding: 18px; + } + + .discountTag { + position: absolute; + padding: 0px 20px; + border-radius: 0px 16px 0 16px; + background: linear-gradient(133deg, #ff6d6e 0%, #ff4d4f 100%); + color: #fff; + font-size: 20px; + line-height: 32px; + position: absolute; + top: -16px; + left: 0; } } } .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 +81,7 @@ overflow: hidden; &::after { - border-radius: 4px; + border-radius: 8rpx; background-color: rgba(251, 81, 0, 0.08); opacity: 1; } @@ -68,51 +102,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 +155,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