fix payment history

This commit is contained in:
rafael1209
2024-02-28 16:38:41 +02:00
parent f67b769b71
commit 4188cdee77
3 changed files with 15 additions and 8 deletions

View File

@@ -102,6 +102,7 @@
.types { .types {
display: flex; display: flex;
justify-content: space-between;
} }
.types-margin h3 { .types-margin h3 {
@@ -116,27 +117,34 @@
} }
.types-line { .types-line {
flex-grow: 1; /* Add this line */
margin-top: 2.1%; margin-top: 2.1%;
background: #38383E; background: #38383E;
width: 86%;
height: 3px; height: 3px;
} }
.payments__card { .payments__card {
margin-top: 4.9%; margin-top: 4.9%;
display: flex; display: flex;
align-items: center; /* Center vertically */
} }
.user-info { .user-info {
display: flex; display: flex;
align-items: center; /* Center vertically */
margin-right: 1em; /* Add margin for spacing */
} }
.user-name { .user-name {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
margin-left: 0.625em; margin-left: 0.625em;
align-items: center; /* Center horizontally */
margin-top: -0.5em; /* Adjust this value as needed */
} }
.user-name__text h3 { .user-name__text h3 {
color: #FFF; color: #FFF;
font-weight: 700; font-weight: 700;
@@ -152,7 +160,8 @@
} }
.data-info { .data-info {
margin-left: 10%; margin-left: auto; /* Push to the right */
margin-right: auto; /* Push to the left */
} }
.data-info__text h3 { .data-info__text h3 {
@@ -163,7 +172,7 @@
} }
.transaction-info { .transaction-info {
margin-left: 7%; margin-right: 1em; /* Add margin for spacing */
} }
.transaction-info__text h3 { .transaction-info__text h3 {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

View File

@@ -17,6 +17,7 @@
<div class="profile__btns--payments"> <div class="profile__btns--payments">
<a href="#" class="text-btn btn-bg btn-margin btn-display" @click="depositClick"><img class="icon-margin-deposit-withdraw" src="@/assets/icons-profile/icon-deposit.svg"> Пополнить</a> <a href="#" class="text-btn btn-bg btn-margin btn-display" @click="depositClick"><img class="icon-margin-deposit-withdraw" src="@/assets/icons-profile/icon-deposit.svg"> Пополнить</a>
<a href="#" class="withdraw text-btn btn-bg btn-display" @click="withdrawClick"><img class="icon-margin-deposit-withdraw" src="@/assets/icons-profile/icon-withdraw.png"> Вывести</a> <a href="#" class="withdraw text-btn btn-bg btn-display" @click="withdrawClick"><img class="icon-margin-deposit-withdraw" src="@/assets/icons-profile/icon-withdraw.png"> Вывести</a>
<a href="#" class="withdraw text-btn btn-bg btn-display" @click="claimDataDeposit(10)"><img class="icon-margin-deposit-withdraw" src="@/assets/icons-profile/icon-withdraw.png"> Вывести</a>
</div> </div>
</div> </div>
<div class="payments"> <div class="payments">
@@ -35,7 +36,6 @@
<img src="@/assets/icons-test/person-icon-profile-userinfo.png"> <img src="@/assets/icons-test/person-icon-profile-userinfo.png">
<div class="user-name user-name__text"> <div class="user-name user-name__text">
<h3>{{ payment.name }}</h3> <h3>{{ payment.name }}</h3>
<p>{{ payment.comment }}</p>
</div> </div>
</div> </div>
<div class="data-info data-info__text"> <div class="data-info data-info__text">
@@ -128,8 +128,7 @@ export default {
}, },
claimDataDeposit(amount) { claimDataDeposit(amount) {
const historyPayments = { const historyPayments = {
name: 'TEST USER', name: 'Пополнение',
comment: 'test',
data: this.getCurrentFormattedDate(), data: this.getCurrentFormattedDate(),
amount: amount amount: amount
} }
@@ -138,8 +137,7 @@ export default {
}, },
claimDataWithdraw(amount) { claimDataWithdraw(amount) {
const historyPayments = { const historyPayments = {
name: 'TEST USER', name: 'Вывод',
comment: 'test',
data: this.getCurrentFormattedDate(), data: this.getCurrentFormattedDate(),
amount: -amount amount: -amount
} }