diff --git a/src/components/bulitipp/Tabelle.vue b/src/components/bulitipp/Tabelle.vue index f054fb5..a885cf4 100644 --- a/src/components/bulitipp/Tabelle.vue +++ b/src/components/bulitipp/Tabelle.vue @@ -1,5 +1,6 @@ + Detailansicht für {{ ts[spieltag][user].user.username }}, {{ spieltag+1 }}. Spieltag + + + Tipp von {{ ts[spieltag][user].user.username }} + Ergebnis + Tipp + Punkte + + + 0 - 0 + 0 - 0 + 0 - 0 + 3 + + + + + + - {{ myts }} Punktetabelle - @@ -37,10 +71,12 @@ export default { {{ i+1 }} - - - {{ userpoints.tsPoints }} + + + {{ userpoints.tsPoints }} + + diff --git a/src/components/bulitipp/Uebersicht.vue b/src/components/bulitipp/Uebersicht.vue index 941a8d8..ce11b9c 100644 --- a/src/components/bulitipp/Uebersicht.vue +++ b/src/components/bulitipp/Uebersicht.vue @@ -16,7 +16,7 @@ export default { {{ user.kuerzel }} - {{ user.points }} + {{ user.points }} diff --git a/src/ritzenbergenlib.ts b/src/ritzenbergenlib.ts index 265254f..b4a0007 100644 --- a/src/ritzenbergenlib.ts +++ b/src/ritzenbergenlib.ts @@ -4,22 +4,21 @@ class User { public kuerzel: string; public points: number; public id: number; - public hatgetippt: boolean; constructor (username: string, kuerzel: string, points: number, id: number) { this.username = username; this.kuerzel = kuerzel; this.points=points; this.id=id; + } + hatgetippt():boolean{ let hatgetippt=false; - $.ajax(RitzenbergenLib.api("/bulitipp/hatgetippt.php?userid="+id),{ + $.ajax(RitzenbergenLib.api("/bulitipp/hatgetippt.php?userid="+this.id),{ async: false, - success(response:string){ - hatgetippt=response=="true"; + success(response:boolean){ + hatgetippt=response; } - }) - this.hatgetippt=hatgetippt; - - + }); + return hatgetippt; } } diff --git a/src/views/Bulitipp.vue b/src/views/Bulitipp.vue index 9267abc..4f41b6b 100644 --- a/src/views/Bulitipp.vue +++ b/src/views/Bulitipp.vue @@ -35,7 +35,6 @@ export default { result.forEach((user, i) => { let sum = 0; this.ts.forEach((spieltag) => { - console.log(spieltag); let points = spieltag.find((element) => { return element.user.id === user.id; }); @@ -154,7 +153,7 @@ export default { data(){ return { tippenoffen: false, - debug: true + debug: false } } };