From 7f67b4eb894256ce4edf3ebdd9b97c78510ce86e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E9=A3=9E=E6=B4=8B?= <15778543+xufeiyang6017@user.noreply.gitee.com> Date: Wed, 31 Dec 2025 10:53:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BB=93=E7=AE=97=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=A4=9C=E9=97=B4=E6=A8=A1=E5=BC=8F=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E6=A1=86=E6=96=87=E5=AD=97=E4=B8=8D=E5=8F=AF=E8=A7=81=E9=97=AE?= =?UTF-8?q?=E9=A2=98=201.=20=E4=B8=BA=E8=BE=93=E5=85=A5=E6=A1=86=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=B7=B1=E8=89=B2=E6=A8=A1=E5=BC=8F=E8=83=8C=E6=99=AF?= =?UTF-8?q?=E5=92=8C=E6=96=87=E5=AD=97=E9=A2=9C=E8=89=B2=202.=20=E4=B8=BA?= =?UTF-8?q?=E5=9C=B0=E5=9D=80=E9=80=89=E6=8B=A9=E5=99=A8=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=B7=B1=E8=89=B2=E6=A8=A1=E5=BC=8F=E6=A0=B7=E5=BC=8F=203.=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8D=A0=E4=BD=8D=E7=AC=A6=E6=96=87=E5=AD=97?= =?UTF-8?q?=E5=9C=A8=E6=B7=B1=E8=89=B2=E6=A8=A1=E5=BC=8F=E4=B8=8B=E7=9A=84?= =?UTF-8?q?=E5=8F=AF=E8=A7=81=E6=80=A7=204.=20=E4=BC=98=E5=8C=96=E7=84=A6?= =?UTF-8?q?=E7=82=B9=E5=92=8C=E9=94=99=E8=AF=AF=E7=8A=B6=E6=80=81=E5=9C=A8?= =?UTF-8?q?=E6=B7=B1=E8=89=B2=E6=A8=A1=E5=BC=8F=E4=B8=8B=E7=9A=84=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/settlement/index.wxss | 72 ++++++++++++++++++++++++++++++++++++- 1 file changed, 71 insertions(+), 1 deletion(-) diff --git a/pages/settlement/index.wxss b/pages/settlement/index.wxss index a1e1351..8aa26db 100644 --- a/pages/settlement/index.wxss +++ b/pages/settlement/index.wxss @@ -172,7 +172,19 @@ input, textarea { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif; /* 防止iOS输入框背景变黄 */ -webkit-autofill: none; - background-color: #fff !important; + background-color: #fff; +} + +/* 深色模式下的输入框样式 */ +@media (prefers-color-scheme: dark) { + input, textarea { + background-color: #2c2c2e !important; + color: #fff !important; + } + + input::placeholder, textarea::placeholder { + color: #8e8e93 !important; + } } /* 按钮全局优化 */ @@ -605,6 +617,36 @@ picker { opacity: 0.7; } +/* 深色模式下的表单输入框样式 */ +@media (prefers-color-scheme: dark) { + .form-input { + background: linear-gradient(135deg, #2c2c2e 0%, #1c1c1e 100%); + border-color: #48484a; + color: #fff; + } + + .form-input::placeholder { + color: #8e8e93; + } + + .form-input:focus { + background: linear-gradient(135deg, #2c2c2e 0%, #1c1c1e 100%); + border-color: #07C160; + box-shadow: 0 4rpx 16rpx rgba(7, 193, 96, 0.3); + } + + .form-input.error { + background: linear-gradient(135deg, #2c2c2e 0%, #1c1c1e 100%); + border-color: #FA5151; + box-shadow: 0 4rpx 16rpx rgba(250, 81, 81, 0.3); + } + + .form-input:focus::placeholder { + color: #636366; + opacity: 0.7; + } +} + /* placeholder样式优化 */ .form-input::placeholder { color: #999; @@ -750,6 +792,34 @@ picker { font-weight: 500; } +/* 深色模式下的地址选择器样式 */ +@media (prefers-color-scheme: dark) { + .region-picker { + background: linear-gradient(135deg, #2c2c2e 0%, #1c1c1e 100%); + border-color: #48484a; + color: #fff; + } + + .region-picker .picker-content text { + color: #fff; + } + + .region-picker:focus { + background: linear-gradient(135deg, #2c2c2e 0%, #1c1c1e 100%); + border-color: #07C160; + box-shadow: 0 4rpx 16rpx rgba(7, 193, 96, 0.3); + } + + .region-picker.placeholder { + color: #8e8e93; + } + + .region-picker:not(.placeholder) { + border-color: #07C160; + color: #fff; + } +} + /* 微信风格的合作模式选择 - 针对真机优化 */ .cooperation-options { display: grid;