- add new API request for fetching points top up agreement content - update recharge footer with agreement checkbox and protocol link - add agreement popup modal to display full agreement text - add payment pre-validation to enforce agreement acceptance before payment - handle loading and error states for agreement retrieval - adjust recharge footer layout to accommodate new UI elements
80 lines
1.3 KiB
SCSS
80 lines
1.3 KiB
SCSS
.recharge-footer {
|
|
position: sticky;
|
|
bottom: 12px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
margin-top: 16px;
|
|
padding: 12px;
|
|
border-radius: 20px;
|
|
background: rgba(255, 255, 255, 0.9);
|
|
box-shadow: 0 10px 24px rgba(18, 48, 56, 0.1);
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.recharge-agreement {
|
|
display: flex;
|
|
align-items: center;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.recharge-agreement.is-disabled {
|
|
opacity: 0.56;
|
|
}
|
|
|
|
.recharge-agreement-text,
|
|
.recharge-agreement-link {
|
|
font-size: 14px;
|
|
line-height: 24px;
|
|
}
|
|
|
|
.recharge-agreement-text {
|
|
color: #667386;
|
|
}
|
|
|
|
.recharge-agreement-link {
|
|
color: $theme-color-600;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.recharge-payment-row {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) 142px;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.recharge-gain {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
color: #667386;
|
|
font-size: 12px;
|
|
line-height: 18px;
|
|
font-weight: 800;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.recharge-gain-value {
|
|
color: #172033;
|
|
font-weight: 900;
|
|
}
|
|
|
|
.recharge-pay-button {
|
|
height: 46px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 999px;
|
|
background: #000000;
|
|
color: #ffffff;
|
|
font-size: 14px;
|
|
line-height: 46px;
|
|
font-weight: 900;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.recharge-pay-button.is-disabled {
|
|
opacity: 0.48;
|
|
}
|