diff --git a/luckydiamond/src/pages/games-pages/DoublePage.vue b/luckydiamond/src/pages/games-pages/DoublePage.vue index 62d7641..7f4dca6 100644 --- a/luckydiamond/src/pages/games-pages/DoublePage.vue +++ b/luckydiamond/src/pages/games-pages/DoublePage.vue @@ -121,13 +121,29 @@

fds

-
-
+ + +
+ + User Icon + + {{ user.name }} + {{ user.amount }}
-
+
+ Avatar +
FUpir
+
+ 500 + Coin +
+
+
@@ -195,12 +211,13 @@ export default { }, data() { return { - JackpotNumbers, - users: [] + JackpotNumbers }; }, async created() {}, setup() { + const users = ref([]); + const slides = reactive([ { img: require("@/assets/icons-games/double-game/RectangleGreenDouble.png"), @@ -257,7 +274,7 @@ export default { onMounted(() => { loadGameHistory(); - this.users = this.fetchUsers(); + users.value = fetchUsers(); // if (slides.length == 0) { // for (let i = 1; i < 29; i++) { // if (i == 15 || i == 28) { @@ -368,6 +385,13 @@ export default { targetColor.value = ""; } + function fetchUsers() { + return [ + { id: 1, name: 'Alice', amount: 100, image: 'path/to/alice.png' }, + { id: 2, name: 'Bob', amount: 200, image: 'path/to/bob.png' }, + ]; + } + return { slides, slidesHistory, @@ -377,6 +401,7 @@ export default { timeToGame, handleStepCarousel, stopAutoPlay, + users, }; }, };