added user img in profile page

This commit is contained in:
Kostya
2023-12-13 22:28:06 +03:00
parent b1f74469db
commit 3dbefb199e

View File

@@ -8,7 +8,7 @@
<section class="profile"> <section class="profile">
<div class="profile__content"> <div class="profile__content">
<img class="profile__user--img" src="@/assets/icons-test/person-icon-profile.png"> <img class="profile__user--img" :src="imageUrl">
<div class="profile__card icon-diamond"> <div class="profile__card icon-diamond">
<h1>{{ username }}</h1> <h1>{{ username }}</h1>
<h2><img src="@/assets/icons-profile/icon-diamond-ore.png">{{ balance }}</h2> <h2><img src="@/assets/icons-profile/icon-diamond-ore.png">{{ balance }}</h2>
@@ -65,6 +65,7 @@ export default {
data() { data() {
return { return {
username: 'Artemka', username: 'Artemka',
imageUrl: '',
balance: 25000, balance: 25000,
openModal: false, openModal: false,
payments: true, payments: true,
@@ -73,7 +74,7 @@ export default {
}, },
created() { created() {
this.username = GetCookie('SpUserName') this.username = GetCookie('SpUserName')
console.log(this.username) this.imageUrl = `https://visage.surgeplay.com/front/256/${this.username}`
}, },
methods: { methods: {
formatNumber(number) { formatNumber(number) {