mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 12:19:31 +02:00
added user img in profile page
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user