Files
code-bang/frontend/miniapp/pages/usercenter/balance/index.wxss
T
2026-09-23 18:28:26 +08:00

336 lines
6.1 KiB
Plaintext

/* pages/usercenter/balance/index.wxss */
.t-button--default {
color: var(--brand) !important;
}
/* 余额主卡:品牌渐变视觉焦点 */
.balance-card {
margin: 24rpx;
padding: 48rpx 32rpx 40rpx;
background: var(--brand-gradient);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-brand);
text-align: center;
color: var(--text-inverse);
}
.balance-total .total-amount {
font-size: 64rpx;
font-weight: 700;
color: var(--text-inverse);
font-family: 'DIN Alternate', -apple-system, sans-serif;
line-height: 80rpx;
}
.balance-total .total-label {
display: block;
font-size: 24rpx;
color: rgba(255, 255, 255, 0.85);
margin-top: 8rpx;
}
.balance-info {
display: flex;
justify-content: space-between;
margin: 40rpx 0 8rpx 0;
}
.balance-info-item {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
}
.balance-info-item .label {
font-size: 24rpx;
color: rgba(255, 255, 255, 0.75);
}
.value-wrap {
display: flex;
align-items: center;
justify-content: center;
height: 48rpx;
margin-top: 8rpx;
}
.balance-info-item .value {
font-size: 32rpx;
color: var(--text-inverse);
font-weight: 600;
font-family: 'DIN Alternate', -apple-system, sans-serif;
}
/* 提现按钮:白底品牌橙字,与橙色渐变卡片形成清晰对比 */
.withdraw-btn {
margin-top: 24rpx;
--td-button-primary-bg-color: #ffffff;
--td-button-primary-color: var(--brand);
--td-button-primary-border-color: #ffffff;
--td-button-primary-active-bg-color: #fff5ef;
--td-button-primary-active-border-color: #fff5ef;
}
.withdraw-btn .t-button {
background-color: #ffffff;
border-color: #ffffff;
color: var(--brand);
font-weight: 600;
}
.withdraw-btn .t-button::after {
border-color: #ffffff;
}
/* ================= 提现规则(可折叠) ================= */
.rules-card {
margin: 0 24rpx 24rpx;
background: var(--bg-card);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-card);
overflow: hidden;
}
.rules-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 28rpx 32rpx;
}
.rules-header--hover {
background: var(--bg-grey);
}
.rules-header-left {
display: flex;
align-items: center;
}
.rules-header-title {
margin-left: 12rpx;
font-size: 30rpx;
font-weight: 600;
color: var(--text-primary);
}
.rules-header-right {
display: flex;
align-items: center;
}
.rules-toggle-text {
font-size: 24rpx;
color: var(--brand);
margin-right: 4rpx;
}
.rules-arrow {
transition: transform 0.28s ease;
transform: rotate(0deg);
}
.rules-arrow.is-expand {
transform: rotate(180deg);
}
/* 折叠态:核心要点 */
.rules-brief {
display: flex;
flex-wrap: wrap;
max-height: 220rpx;
padding: 0 24rpx 28rpx;
overflow: hidden;
opacity: 1;
transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.3s ease;
}
.rules-brief.is-hide {
max-height: 0;
padding-top: 0;
padding-bottom: 0;
opacity: 0;
}
.brief-item {
display: flex;
align-items: center;
height: 52rpx;
margin: 8rpx 8rpx 0 0;
padding: 0 20rpx;
background: var(--brand-light);
border-radius: var(--radius-round);
}
.brief-icon {
margin-right: 8rpx;
}
.brief-text {
font-size: 24rpx;
color: var(--brand);
line-height: 52rpx;
}
/* 展开态:完整规则(max-height 过渡动画) */
.rules-body {
max-height: 0;
overflow: hidden;
transition: max-height 0.3s ease;
}
.rules-body.is-expand {
max-height: 1400rpx;
}
.rules-body-inner {
padding: 4rpx 32rpx 28rpx;
border-top: 1px solid var(--border-level-1);
}
.rule-item {
display: flex;
align-items: flex-start;
padding: 20rpx 0 0;
}
.rule-index {
flex: 0 0 36rpx;
height: 36rpx;
margin-top: 6rpx;
border-radius: var(--radius-round);
background: var(--brand-light);
color: var(--brand);
font-size: 22rpx;
font-weight: 600;
line-height: 36rpx;
text-align: center;
}
.rule-content {
flex: 1;
margin-left: 16rpx;
}
.rule-title {
font-size: 26rpx;
font-weight: 600;
color: var(--text-primary);
line-height: 40rpx;
}
.rule-desc {
margin-top: 2rpx;
font-size: 24rpx;
color: var(--text-tertiary);
line-height: 38rpx;
}
/* 提现弹窗内提示 */
.dialog-tips {
padding: 24rpx 8rpx 8rpx;
font-size: 22rpx;
color: var(--text-placeholder);
line-height: 36rpx;
}
.balance-detail {
margin: 24rpx;
background: var(--bg-card);
border-radius: var(--radius-lg);
padding: 0 0 24rpx 0;
box-shadow: var(--shadow-card);
overflow: hidden;
}
.item-title {
font-size: 28rpx;
color: var(--text-primary);
}
.item-time {
font-size: 22rpx;
color: var(--text-placeholder);
margin-top: 4rpx;
}
.item-amount {
position: absolute;
right: 24rpx;
top: 50%;
transform: translateY(-50%);
font-size: 32rpx;
font-weight: bold;
font-family: 'DIN Alternate', -apple-system, sans-serif;
}
.item-amount.plus {
color: var(--success);
}
.item-amount.minus {
color: var(--error);
}
/* tab bar 样式 */
.tab-bar {
display: flex;
flex-direction: row;
justify-content: flex-start;
align-items: center;
background: var(--bg-grey);
border-radius: var(--radius-md);
margin: 24rpx 24rpx 0 24rpx;
padding: 8rpx 0;
}
.tab-item {
flex: 1;
text-align: center;
font-size: 28rpx;
color: var(--text-tertiary);
padding: 16rpx 0;
border-radius: var(--radius-sm);
transition: background 0.2s;
}
.tab-item.active {
color: var(--brand);
background: var(--bg-card);
font-weight: 600;
box-shadow: 0 2rpx 8rpx rgba(255, 95, 21, 0.1);
}
/* 提现弹窗按钮:取消=TDesign 组件默认色,确认=品牌橙强调 */
.dialog__button-cancel {
/* 主题把默认按钮统一染成品牌色,此处还原组件默认文字色 */
--td-button-default-color: rgba(0, 0, 0, 0.9);
color: rgba(0, 0, 0, 0.9) !important;
}
.dialog__button-confirm {
color: var(--brand) !important;
font-weight: 600;
}
/* t-cell分割线 */
t-cell,
.t-cell {
border-bottom: 1px solid var(--border-level-1);
}
.t-cell.no-border {
border-bottom: none !important;
}
.empty-container {
min-height: 50vh;
padding-top: 30%;
}
.safe-bottom {
min-height: 100rpx;
width: 100%;
}